Boilerplate gulp tasks for angular packages
All the things you would want in a build system for AngularJS projects in one package.
To see it in action see client-side-seed.
If you don't have a
package.json file at the root of your code repository, execute
npm init to generate one. Modify the "main" key in package.json to point to your root CommonJS module, whatever is assigned to
exports in this module will be "exported" to the
window.<package.name> variable on browsers.
npm install --save-dev gulp angular-builder. Then modify
gulpfile.js (or create one):
var gulp = require'gulp'angularBuilder = require'angular-builder';angularBuildergulpjsMain: 'path/to/js/main.js'cssMain: 'path/to/css/main.less';// Rest of your gulp file, potentially overwriting the angular builder tasks...