gruntfile.js 616 B

123456789101112131415161718192021
  1. module.exports = function(grunt)
  2. {
  3. var gtx = require('gruntfile-gtx').wrap(grunt);
  4. gtx.loadAuto();
  5. var gruntConfig = require('./grunt');
  6. gruntConfig.package = require('./package.json');
  7. gtx.config(gruntConfig);
  8. gtx.alias('build', ['shell:lint', 'clean:dist', 'concat:dist', 'uglify:dist', 'test']);
  9. gtx.alias('release', ['build', 'bump-commit']);
  10. gtx.alias('release-major', ['bump-only:major', 'release']);
  11. gtx.alias('release-minor', ['bump-only:minor', 'release']);
  12. gtx.alias('release-patch', ['bump-only:patch', 'release']);
  13. gtx.alias('test', ['shell:lint', 'qunit:dist']);
  14. gtx.finalise();
  15. };