forked from precocious-tangerine/nevercode
/
Gruntfile.js
55 lines (52 loc) · 1.37 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
51
52
53
54
55
module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
concat: {
options: {
separator: ';'
},
dist: {
dest: 'client-server/client/dist/bundle-all.min.js',
src: [
'client-server/client/js/jquery-2.1.1.min.js',
'client-server/client/dist/bundle.min.js',
'client-server/client/js/materialize.min.js',
'client-server/client/js/code-mirror-scripts/all-cm-scripts.min.js'
]
}
},
ngAnnotate: {
options: {
singleQuotes: true
},
app: {
files: {
'client-server/client/dist/bundle.min-safe.js': 'client-server/client/dist/bundle.js'
}
}
},
uglify: {
options: {
mangle: false
},
my_target: {
files: {
'client-server/client/dist/bundle.min.js': 'client-server/client/dist/bundle.min-safe.js'
}
}
},
cssmin: {
options: {
shorthandCompacting: false,
roundingPrecision: -1
},
target: {
files: {
'client-server/client/dist/style.min.css': ['client-server/client/styles/style.css', 'client-server/client/styles/materialize.css']
}
}
}
});
require('load-grunt-tasks')(grunt);
grunt.registerTask('default', ['ngAnnotate', 'uglify', 'cssmin', 'concat']);
};