Skip to content
This repository has been archived by the owner on Sep 26, 2019. It is now read-only.
/ boilerplate Public archive

Front-end boilerplate using ES6, Gulp, Pug, JShint, BrowserSync

License

Notifications You must be signed in to change notification settings

robertbossaert/boilerplate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Boilerplate

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.

Getting started

  1. Clone the repo https://github.com/robertbossaert/Boilerplate.git

  2. Pick your flavor default or jekyll (you could also rename the folder to your website's name)

  3. Install Node.js on your machine

  4. Run this command to install the global dependencies:

    npm install -g gulp
    
  5. Go inside the folder you picked, and run this command to install all other project dependencies:

    npm install
    
  6. All set! you can start your server by running:

    gulp watch
    

Building the distribution folder

  1. You can create the ./dist folder by running:

    gulp build
    

Tasks

Default

  1. Clean - deletes the dist folder > gulp clean
  2. Watch - watch for file changes and then builds the files > gulp watch
  3. Build - builds the files > gulp build

Jekyll

  1. Clean - deletes the dist folder > gulp clean
  2. Watch - starts Jekyll, watch for file changes and then builds the files > gulp watch
  3. Build - builds the files > gulp build
  4. 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.

Future changes

  1. Webpack
  2. Sprite task ?
  3. Other tasks

Troubleshooting

  • SyntaxError: Use of const in strict mode.

    Make sure you are on node >=4 (run node -v)

License

The code is available under the MIT License.

About

Front-end boilerplate using ES6, Gulp, Pug, JShint, BrowserSync

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published