Skip to content

Instantly share code, notes, and snippets.

@nhajratw
Created December 11, 2013 14:33
Show Gist options
  • Save nhajratw/7911382 to your computer and use it in GitHub Desktop.
Save nhajratw/7911382 to your computer and use it in GitHub Desktop.
Trying to define angular module using coffeescript per angular-lineman-template
/* Exports an object that defines
* all of the configuration needed by the projects'
* depended-on grunt tasks.
*
* You can find the parent object in: node_modules/lineman/config/application.coffee
*/
module.exports = require(process.env['LINEMAN_MAIN']).config.extend('application', {
js: {
// if using coffeescript and your angular.module is defined in a .coffee file, files.coffee.generated comes first
src: ["<%= files.js.vendor %>", "<%= files.coffee.generated %>", "<%= files.js.app %>", "<%= files.ngtemplates.dest %>"],
dest: "<%= files.js.concatenated %>"
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment