-
Notifications
You must be signed in to change notification settings - Fork 1
/
Gruntfile.js
41 lines (35 loc) · 1.04 KB
/
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
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
/**
* Created by jacek on 01.06.16.
*/
module.exports = function(grunt) {
grunt.initConfig({
pkg : grunt.file.readJSON('package.json'),
uglify: {
options : {
mangle : false,
report : 'gzip'
},
build :{
files : {
'dist/<%= pkg.name %>.min.js' : 'src/netgenes-angular-uploader.js'
}
}
},
bump : {
options : {
files : ['package.json', 'bower.json'],
updateConfigs : ['pkg'],
commitFiles: ['-a'],
tagName : '%VERSION%',
push: 'tag',
pushTo: 'origin'
}
}
});
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-bump');
grunt.registerTask('build',['uglify:build']);
grunt.registerTask('patch',['build','bump:patch']);
grunt.registerTask('minor',['build','bump:minor']);
grunt.registerTask('major',['build','bump:major']);
};