forked from codrops/ModalWindowEffects
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGruntFile.js
45 lines (37 loc) · 770 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
45
'use strict';
module.exports = function(grunt) {
grunt.initConfig({
jst: {
compile: {
files: {
"js/templates.js": [
"templates/*.html"
]
},
options: {
"namespace": "NiftyTemplates"
}
}
},
cssmin: {
"nifty.min.css": [
"css/nifty.css"
]
},
uglify: {
all: {
files: {
"nifty.min.js": [
"js/templates.js",
"js/promises.js",
"js/nifty.js"
]
}
}
}
});
grunt.loadNpmTasks('grunt-contrib-jst');
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-cssmin');
grunt.registerTask('default', ['jst', 'uglify', 'cssmin']);
};