Skip to content

Instantly share code, notes, and snippets.

@cowboy
Created January 9, 2013 22:09
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save cowboy/4497449 to your computer and use it in GitHub Desktop.
Save cowboy/4497449 to your computer and use it in GitHub Desktop.
grunt: lineman idea
module.exports = function(grunt) {
require('lineman').init(grunt);
grunt.initConfig({
// stuff
});
// Default task.
grunt.registerTask('default', ['run']);
};
exports.init = function(grunt) {
grunt.registerTask('run', 'runs the development server from /generated and watches files for updates', ['common', 'dev']);
grunt.registerTask('build', 'compiles all assets into a production ready form in the /dist folder', ['common', 'dist']);
grunt.registerTask('spec', 'runs specs in Chrome, override in config/spec.json', ['spec']);
grunt.registerTask('spec-ci', 'runs specs in a single pass using PhantomJS and outputs in TAP13 format, override in config/spec.json', ['common', 'spec-ci']);
grunt.registerTask('clean', 'cleans out /generated and /dist folders', ['clean']);
grunt.registerTask('new', 'generates a new lineman project in the specified folder', function(project_name) {
// stuff here
});
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment