Before running any Gulp tasks:
- Check out this repository
- Ensure you have node installed
- Almost, ensure you have ruby, compass and singularitygs installed
- Run
npm install
andbower install
in the root directory
The project ships with a directory structure like:
/angular-gulp
|---- package.json
|---- bower.json
|---- gulpfile.js
|---- /app
| |---- index.jade
| |---- app.js
| |---- /scss
| | |---- app.scss
| ...
| |---- /components
| |
| ...
|---- (/dist.dev)
|---- (/dist.prod)
All of the following are available from the command line.
These tasks I use as part of my regular developments and deploy scripts:
gulp watch-dev
Clean, build, and watch live changes to the dev environment. Built sources are served directly by the dev server from /dist.dev.gulp watch-prod
Clean, build, and watch live changes to the prod environment. Built sources are served directly by the dev server from /dist.prod.gulp
Default task builds for dev. Built sources are put into /dist.dev, and can be served directly.