-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGruntfile.js
44 lines (41 loc) · 960 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
44
module.exports = function (grunt) {
'use strict';
grunt.loadNpmTasks('grunt-contrib-connect');
grunt.loadNpmTasks('grunt-gh-pages');
grunt.loadNpmTasks('grunt-bump');
grunt.initConfig({
'connect': {
demo: {
options: {
open: {
target: 'http://localhost:8000/rating-element'
},
keepalive: true
}
}
},
'gh-pages': {
src: [
'index.html',
'bower_components/**/*',
'dist/**/*',
'rating-element/*'
]
},
'bump': {
options: {
files: ['bower.json'],
commit: true,
commitMessage: 'Release v%VERSION%',
commitFiles: ['bower.json'],
createTag: true,
tagName: 'v%VERSION%',
tagMessage: '%VERSION%',
push: true,
pushTo: 'origin'
}
}
});
grunt.registerTask('serve', ['connect']);
grunt.registerTask('deploy', ['bump', 'gh-pages']);
};