-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathGruntfile.js
52 lines (44 loc) · 1.23 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
module.exports = function (grunt) {
var sources, libraries;
sources = [
"util/index_of.js",
"util/namespace.js",
"util/event_emitter.js",
"core/validator.js",
"core/attr.js",
"core/attr_list.js",
"core/method.js",
"core/model.js"
];
grunt.initConfig({
pkg: grunt.file.readJSON("package.json"),
jshint: {
options: {
browser: true
},
all: ["Gruntfile.js", "src/**/*.js", "spec/**/*.js"]
},
concat: {
options: {
separator: ";"
},
source: {
src: sources.map( function (source) {
return "src/" + source;
}),
dest: "build/jermaine.js"
}
},
uglify: {
minify: {
files: {
"build/jermaine-min.js": ["build/jermaine.js"]
}
}
}
});
grunt.loadNpmTasks("grunt-contrib-jshint");
grunt.loadNpmTasks("grunt-contrib-concat");
grunt.loadNpmTasks("grunt-contrib-uglify");
grunt.registerTask("default", ["jshint", "concat", "uglify"]);
};