forked from Edubits/Zway-MQTT
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Gruntfile.js
36 lines (32 loc) · 980 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
module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
bump: {
options: {
files: ['module.json'],
commitMessage: 'Release %VERSION%',
commitFiles: ['module.json'],
createTag: true,
tagName: '%VERSION%',
push: true,
pushTo: 'origin'
}
},
compress: {
main: {
options: {
archive: 'out/Zway-MQTT.tar.gz'
},
files: [
{
src: ['index.js', 'module.json', 'README.md', 'htdocs/**', 'lang/**', 'lib/**'],
dest: ''
}
]
}
}
});
grunt.loadNpmTasks('grunt-bump');
grunt.loadNpmTasks('grunt-contrib-compress');
grunt.registerTask('default', ['compress']);
};