Boilerplate for gulp project.
- Stylesheet
- JavaScript
- Web performance
- HTML/CSS/JS minification
- Image optimization
- Static asset revisioning
- Automation
- CSS Sprites generator
- Icon fonts generator
- Deployment to Git repository
- Development server
Make sure to install Node.js.
$ npm install
This installs both build system modules and dependent libraries for the project.
$ npm start
This starts local development server and "watch" tasks.
When you save a source code, it will be compiled and reload browser automatically.
gulp-boilerplate/
├── app/ : Application files
│ ├── styles/ : Stylesheets
│ ├── scripts/ : Scripts
│ ├── images/ : Images
│ │ └── _sprites/ : Base images for spritesheet
│ ├── fonts/ : Web fonts
│ │ └── _glyphs/ : Base SVG files for icon font
│ └── index.html : Index page
├── dist/ : Production files (Not tracked in Git)
├── tasks/ : Additional gulp tasks
├── gulpfile.js : Base gulp config
└── package.json : Package information including dependencies
-
npm start
Start local development server and watch files to compile/lint.
[Cntl + C] to exit. -
npm test
Run linter. -
npm run build
Run linter and build app for production. -
npm run serve:dist
Start server with production files. -
npm run deploy
Deploy production files togh-pages
branch.
Copyright (c) 2015-2016 Hiroyuki Tanjo. Licensed under the MIT License.