-
Notifications
You must be signed in to change notification settings - Fork 28
/
Gruntfile.js
50 lines (43 loc) · 1.02 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
49
50
// Gruntfile.js
module.exports = function (grunt){
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
mocha: {
all: {
src: ['tests/testrunner.html']
},
options: {
run: true
}
},
uglify: {
all: {
options: {
},
files: {
'dist/ustream-embedapi.min.js': ['src/ustream-embedapi.js'],
'pkg/ustream-embedapi.min.js': ['src/ustream-embedapi.js'] // soon to be deprecated
}
}
},
release: {
options: {
bump: true, //default: true
file: 'package.json', //default: package.json
add: true, //default: true
commit: true, //default: true
push: true, //default: true
tag: true, //default: true
pushTags: true, //default: true
npm: false, //default: true
npmtag: false, //default: no tag
tagName: 'release-<%= version %>'
}
}
});
// Load grunt mocha task
grunt.loadNpmTasks('grunt-mocha');
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-release');
grunt.registerTask('default', ['mocha', 'uglify']);
};