Created
January 9, 2013 22:09
-
-
Save cowboy/4497449 to your computer and use it in GitHub Desktop.
grunt: lineman idea
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = function(grunt) { | |
require('lineman').init(grunt); | |
grunt.initConfig({ | |
// stuff | |
}); | |
// Default task. | |
grunt.registerTask('default', ['run']); | |
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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