-
Notifications
You must be signed in to change notification settings - Fork 4
/
Gruntfile.js
executable file
·48 lines (44 loc) · 1.37 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
42
43
44
45
46
47
48
module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
release: {
options: {
//bump: false, //default: true
//file: 'bower.json', //default: package.json
//add: false, //default: true
//commit: false, //default: true
//tag: false, //default: true
//push: false, //default: true
//pushTags: false, //default: true
//npmtag: true, //default: no tag
//folder: 'folder/to/publish/to/npm', //default project root
//commitMessage: 'check out my release <%= version %>', //default: 'release <%= version %>'
//tagMessage: 'tagging version <%= version %>', //default: 'Version <%= version %>',
//tagName: 'v<%= version %>', //default: '<%= version %>'
file: 'bower.json', //default: package.json
add: false, //default: true
commit: false, //default: true
tag: false, //default: true
push: false, //default: true
pushTags: false, //default: true
npm: false
}
},
uglify: {
options: {
mangle: false
},
build: {
files: {
'./vg-hls.min.js': ['./vg-hls.js']
}
}
}
});
grunt.loadNpmTasks('grunt-release');
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.registerTask('major', ['release:major']);
grunt.registerTask('minor', ['release:minor']);
grunt.registerTask('patch', ['release:patch']);
grunt.registerTask('build', ['uglify:build']);
};