A good starting point
Things you need to already have set up
- Node.js (if you use homebrew, just
brew install node
) - Bower
npm install -g bower
- Gulp
npm install -g gulp
- httpster
npm install -g httpster
- Clone / pull / grab this repo
git init && git pull https://github.com/m10l/front-end-boilerplate.git
- Install Node.js modules
npm install
- Install Bower dependencies
bower install
- Run Gulp.js file watcher task
gulp
, or runnpm start
to watch files and spin up a simple server (httpster) - Work on files in the development directory. Sass changes will be automatically compiled to CSS
If you want to add in any additional JavaScript files to the project, add them into the <!-- build:js scripts/scripts.js -->
block in index.html
- Create a build with Gulp.js:
gulp build