forked from ThoughtfulWalrus/graffiome
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Gruntfile.js
44 lines (40 loc) · 1.32 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
'use strict';
module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
compress: {
main: {
options: {
archive: 'graffiome.zip'
},
files: [
{src: ['src/**'], dest: ''},
{src: ['static/**'], dest: ''},
{src: ['bower_components/firebase/firebase.js'], dest: ''},
{src: ['bower_components/angular/angular.min.js'], dest: ''},
{src: ['bower_components/angular-ui-router/release/angular-ui-router.min.js'], dest: ''},
{src: ['bower_components/jquery/dist/jquery.js'], dest: ''},
{src: ['bower_components/CryptoJS/rollups/sha1.js'], dest: ''},
{src: ['manifest.json'], dest: ''}
]
}
},
bump: {
options: {
files: ['package.json'],
updateConfigs: ['pkg'],
commit: false,
createTag: false,
push: false,
}
}
});
// Don't worry about this one - it just works. You'll see when you run `grunt`.
grunt.loadNpmTasks('grunt-notify');
grunt.loadNpmTasks('grunt-contrib-compress');
grunt.loadNpmTasks('grunt-bump');
////////////////////////////////////////////////////
// Main grunt tasks
////////////////////////////////////////////////////
grunt.registerTask('deploy', ['bump', 'compress']);
};