-
Notifications
You must be signed in to change notification settings - Fork 21
/
gruntfile.js
43 lines (41 loc) · 907 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
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
'use strict';
module.exports = function (grunt){
// NPM task loader
require('jit-grunt')(grunt, { gitcommit: 'grunt-git' });
grunt.initConfig({
gitcommit: {
build: {
options: {
message: 'Build new release'
},
files: {
src: ['build/angular-no-captcha.min.js']
}
}
},
release: {
options: {
bump: true,
add: true,
commit: true,
tag: true,
push: true,
pushTags: true,
npm: false,
afterBump: ['uglify:all', 'gitcommit:build'],
tagName: 'v<%= version %>',
github: {
repo: 'CodeDistillery/angular-no-captcha',
accessTokenVar: 'GITHUB_ACCESS_TOKEN'
}
}
},
uglify: {
all: {
files: {
'build/angular-no-captcha.min.js': ['src/angular-no-captcha.js']
}
}
}
});
};