Created
February 12, 2015 13:37
-
-
Save mdasberg/a6afdcc74fd8cd6af988 to your computer and use it in GitHub Desktop.
Grunt lifecycles
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
'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