Skip to content

Instantly share code, notes, and snippets.

@mdasberg
Created February 12, 2015 13:37
Show Gist options
  • Save mdasberg/a6afdcc74fd8cd6af988 to your computer and use it in GitHub Desktop.
Save mdasberg/a6afdcc74fd8cd6af988 to your computer and use it in GitHub Desktop.
Grunt lifecycles
'use strict';
module.exports = function (grunt) {
require('load-grunt-tasks')(grunt);
grunt.registerTask('prepare', 'Prepare the build with all the necessary stuff.', function() {
grunt.log.subhead('Add your prepare tasks here');
});
grunt.registerTask('test', 'Execute tests.', function() {
grunt.log.subhead('Add your test tasks here');
});
grunt.registerTask('verify', 'Verify if the current state meets the criteria.', function() {
grunt.log.subhead('Add your verify tasks here');
});
grunt.registerTask('package', 'Package the code in a distributable format.', function() {
grunt.log.subhead('Add your package tasks here');
});
grunt.registerTask('integration-test', 'Execute tests against the packaged distribution.', function() {
grunt.log.subhead('Add your integration-test tasks here');
});
grunt.registerTask('release', 'Release if compliant to all checks.', function() {
grunt.log.subhead('Add your release tasks here');
});
grunt.registerTask('default', [
'prepare',
'test',
'verify',
'package',
'integration-test',
'release'
]);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment