forked from jackocnr/intl-tel-input
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Gruntfile.js
23 lines (20 loc) · 880 Bytes
/
Gruntfile.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
module.exports = function(grunt) {
// load all tasks from package.json
require('load-grunt-config')(grunt);
require('time-grunt')(grunt);
/**
* TASKS
*/
// build everything ready for a commit
grunt.registerTask('build', ['img', 'sass', 'js', 'jasmine']);
// just images
grunt.registerTask('img', ['responsive_images:retina', 'exec:evenizer', 'responsive_images:regular', 'sprite', 'imagemin']);
// just javascript
grunt.registerTask('js', ['template:js1', 'template:js2', 'jshint', 'uglify', 'replace:one', 'replace:two', 'replace:three']);
// build examples
grunt.registerTask('examples', ['template']);
// Travis CI
grunt.registerTask('travis', ['jasmine']);
// bump version number in 3 files, rebuild js to update headers, then commit, tag and push
grunt.registerTask('version', ['bump-only', 'js', 'bump-commit', 'shell:publish']);
};