All Projects → jr-cologne → Gulp Starter Kit

jr-cologne / Gulp Starter Kit

Licence: mit
A simple Gulp 4 Starter Kit for modern web development.

Programming Languages

javascript
184084 projects - #8 most used programming language
stylus
462 projects

Projects that are alternatives of or similar to Gulp Starter Kit

Compile Hero
🔰Visual Studio Code Extension For Compiling Language
Stars: ✭ 169 (+26.12%)
Mutual labels:  gulp, scss, sass, less, pug
Glup
Some of the gulp tutorial -《gulp笔记》
Stars: ✭ 136 (+1.49%)
Mutual labels:  gulp, babel, scss, sass, less
Gulp Pug Starter
Frontend development with pleasure. Pug + SCSS version
Stars: ✭ 228 (+70.15%)
Mutual labels:  gulp, babel, scss, sass, pug
Long Haul
A minimal, type-focused Jekyll theme.
Stars: ✭ 524 (+291.04%)
Mutual labels:  gulp, autoprefixer, scss, sass
Fast
Develop, build, deploy, redeploy, and teardown frontend projects fast.
Stars: ✭ 126 (-5.97%)
Mutual labels:  autoprefixer, babel, scss, sass
Gulp Scss Starter
Frontend development with pleasure. SCSS version
Stars: ✭ 339 (+152.99%)
Mutual labels:  gulp, babel, scss, sass
Wordless
All the power of Pug, Sass, Coffeescript and WebPack in your WordPress theme. Stop writing themes like it's 1998.
Stars: ✭ 1,374 (+925.37%)
Mutual labels:  babel, scss, sass, pug
Cessie
Transpile your CSS bundle to support CSS variables, calc, and future CSS for legacy browsers.
Stars: ✭ 81 (-39.55%)
Mutual labels:  scss, sass, less
Vertical Rhythm
Put some typographical vertical rhythm in your CSS. LESS, Stylus and SCSS/SASS versions included.
Stars: ✭ 83 (-38.06%)
Mutual labels:  scss, sass, less
Frasco
Quick starter for Jekyll including full setup for Sass, PostCSS, Autoprefixer, stylelint, Webpack, ESLint, imagemin, Browsersync, etc.
Stars: ✭ 123 (-8.21%)
Mutual labels:  autoprefixer, scss, sass
Pug Sass Boilerplate Starter Kit
A Front-end template for building web apps or sites using Pug(Jade) and Sass
Stars: ✭ 92 (-31.34%)
Mutual labels:  gulp, sass, pug
Nextjs Full Demo
Demo about integration between examples of next.js and also fix some issues during development
Stars: ✭ 76 (-43.28%)
Mutual labels:  gulp, babel, scss
Stylelint
A mighty, modern linter that helps you avoid errors and enforce conventions in your styles.
Stars: ✭ 9,350 (+6877.61%)
Mutual labels:  scss, sass, less
Gulp Pure Start
Start your project with 'Gulp Pure Start' easily than ever!
Stars: ✭ 89 (-33.58%)
Mutual labels:  gulp, sass, pug
Tris Webpack Boilerplate
A Webpack boilerplate for static websites that has all the necessary modern tools and optimizations built-in. Score a perfect 10/10 on performance.
Stars: ✭ 1,016 (+658.21%)
Mutual labels:  babel, scss, sass
Dough
React/Redux + SASS + Gulp/Browserify/Babel skeleton codebase with demo application.
Stars: ✭ 38 (-71.64%)
Mutual labels:  gulp, babel, sass
Css Flags
A collection of pure CSS flags, all single divs.
Stars: ✭ 90 (-32.84%)
Mutual labels:  gulp, scss, pug
Baseguide
Lightweight and robust CSS framework for prototyping and production code.
Stars: ✭ 127 (-5.22%)
Mutual labels:  gulp, scss, sass
Bootstrap 4 Sass Gulp 4 Boilerplate
A Bootstrap 4.5.2 boilerplate with font-awesome, sass, gulp 4 tasks
Stars: ✭ 103 (-23.13%)
Mutual labels:  gulp, scss, sass
Frontie Webpack
Front-end Boilerplate | Gulp 4 + Webpack 4 + Babel + ITCSS Architecture + BEM Methodology + Twig.js
Stars: ✭ 102 (-23.88%)
Mutual labels:  gulp, babel, sass

Gulp Starter Kit

npm

A simple Gulp 4 Starter Kit for modern web development.

Features / Use Cases

This Gulp Starter Kit provides a simple way of setting up a modern web development environment. Here is a list of the current features:

  • Copy HTML files from src to dist directory
  • Compile Pug template files (.pug) from src to HTML files and put them inside dist directory
  • Compile CSS preprocessor code (Sass/SCSS, Less, Stylus) to CSS
  • Autoprefix and minify CSS and put it inside dist directory
  • Compile ES6+ to ES5, concatenate JS files and minify code
  • Compress and copy images into dist directory
  • Copy dependencies specified in package.json from src/node_modules directory into node_modules folder inside dist directory
  • Import dependencies into your application with ES6 modules
  • Spin up local dev server at http://localhost:3000 including auto-reloading

Requirements

This should be installed on your computer in order to get up and running:

Dependencies

These npm packages are used in the Gulp Starter Kit:

For more information, take a look at the package.json file or visit the linked npm package sites.

Getting Started

In order to get started, make sure you are meeting all requirements listed above. Then, just go ahead and download the Gulp Starter Kit. For this, you can choose between the following options:

npm init

The recommended way of downloading the Gulp Starter Kit uses the command npm init and the create-gulp-starter-kit npm package as the initializer.

For this, just follow these steps:

  1. Execute npm init @jr-cologne/gulp-starter-kit your-project-name. This creates a folder called your-project-name (change that to your project name) at the current location where your terminal / command prompt is pointing to. Moreover, this initializes your project and installs all dependencies.
  2. Change your working directory to your project folder by executing cd your-project-name.
  3. Spin up your web development environment with the command npm start.
  4. Start coding!

In case you are lazy, just use this command:

npm init @jr-cologne/gulp-starter-kit your-project-name && cd your-project-name && npm start

git clone

The other way of downloading the Gulp Starter Kit is by cloning this Git repository. Before executing any commands, make sure you have Git installed on your computer.

Then, follow these instructions:

  1. Execute git clone https://github.com/jr-cologne/gulp-starter-kit.git your-project-name. This creates a folder called your-project-name (change that to your project name) at the current location where your terminal / command prompt is pointing to.
  2. Change your working directory to your project folder by executing cd your-project-name.
  3. Install all dependencies by executing npm install.
  4. Spin up your web development environment with the command npm start.
  5. Start coding!

If you are lazy, just do everything at once:

git clone https://github.com/jr-cologne/gulp-starter-kit.git your-project-name && cd your-project-name && npm install && npm start

Usage / FAQ

How to install the Gulp Starter Kit into the current working directory?

You can install the Gulp Starter Kit into the current working directory by appending --current-dir to the end of the npm init command.

Example:

npm init @jr-cologne/gulp-starter-kit your-project-name --current-dir

What kinds of build scripts does the Gulp Starter Kit offer?

The Gulp Starter Kit offers two different build scripts:

  1. npm run build: This is used to build all files and run all tasks without serving a development server and watching for changes.
  2. npm start: This is the normal development script used to build all files and run all tasks, but also to serve a development server and watch for changes.

How can I use another CSS preprocessor than Sass?

In case you prefer to use one of the other supported CSS preprocessors over Sass, you can simply create a new directory src/assets/css-processor-name which is where all your CSS preprocessor files have to be placed. After you have moved all your code to the new folder, just make sure to delete the sass directory and everything should work as expected.

Here's a list of the currently supported CSS preprocessors and the corresponding directory names:

  • Sass (src/assets/sass)
  • SCSS (src/assets/scss)
  • Less (src/assets/less)
  • Stylus (src/assets/stylus)

How can I specify for which browsers CSS code should be autoprefixed?

The recommended way of specifying which browsers should be targeted by the CSS autoprefixer is to add a browserslist key to package.json:

{
  "browserslist": [
    "last 3 versions",
    "> 0.5%"
  ]
}

You can find more information on that topic in the README file of the employed PostCSS plugin.

What types of images are supported?

The following types of images are currently supported:

  • PNG
  • JPG / JPEG
  • GIF
  • SVG
  • ICO (not compressed)

How can I specify dependencies which are then copied to the dist folder?

You don't need to specify your dependencies anywhere else than in your package.json file. Just install your dependencies via npm and all your dependencies get automatically loaded and copied into the dist folder.

How can I load dependencies inside my application?

ES6 modules are supported by this Gulp Starter Kit. Just install your dependencies and import them like so:

import axios from 'axios';

Contributing

Feel free to contribute to this project! Any kinds of contributions are highly appreciated!

Please make sure to follow the process below in order to contribute to this project:

  1. Open an Issue to describe what you are about to do. You should make sure to get feedback as early as possile to ensure your work does not end up as waisted time.
  2. Fork this repository by clicking the fork button at the top of this page.
  3. Clone your newly created fork (git clone https://github.com/your-github-username/gulp-starter-kit.git).
  4. Make your changes and commit them to your forked repository.
  5. Once finished, open a detailed Pull Request describing your changes.
  6. Wait for your PR to be accepted and merged.

Versioning

This project uses the rules of semantic versioning. For more information, visit semver.org.

License

This project is licensed under the MIT License.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].