A Front-end boilerplate containing ES6, Gulp, BrowserSync, Pug (Jade), JShint and a few other optimization tools. The project is split into two parts, there is a Jekyll folder for static Jekyll websites and a default folder for all the other projects. Other than a few folder differences and a Jekyll deploy task for Github pages, they are much the same.
-
Clone the repo https://github.com/robertbossaert/Boilerplate.git
-
Pick your flavor default or jekyll (you could also rename the folder to your website's name)
-
Install Node.js on your machine
-
Run this command to install the global dependencies:
npm install -g gulp
-
Go inside the folder you picked, and run this command to install all other project dependencies:
npm install
-
All set! you can start your server by running:
gulp watch
-
You can create the ./dist folder by running:
gulp build
- Clean - deletes the dist folder >
gulp clean
- Watch - watch for file changes and then builds the files >
gulp watch
- Build - builds the files >
gulp build
- Clean - deletes the dist folder >
gulp clean
- Watch - starts Jekyll, watch for file changes and then builds the files >
gulp watch
- Build - builds the files >
gulp build
- Deploy - deploys your website to Github pages(1) >
gulp deploy
(1) Assumes the current working directory is a git repository and uses its remote url. If this is not the case you could set up a remoteUrl.
- Webpack
- Sprite task ?
- Other tasks
-
SyntaxError: Use of const in strict mode.
Make sure you are on node >=4 (run node -v)
The code is available under the MIT License.