Skip to content

Instantly share code, notes, and snippets.

@imtiazwazir
Forked from cowboy/Gruntfile.js
Created January 14, 2013 12:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save imtiazwazir/4529817 to your computer and use it in GitHub Desktop.
Save imtiazwazir/4529817 to your computer and use it in GitHub Desktop.
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