-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathgrunt.js
41 lines (37 loc) · 911 Bytes
/
grunt.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
module.exports = function(grunt){
grunt.initConfig({
pkg: '<json:package.json>',
meta: {
banner: '/* <%= pkg.name %> - v<%= pkg.version %> - <%= pkg.homepage %> <%= grunt.template.today("mm/dd/yyyy hh:mm TT") %> */'
},
lint: {
all: ['lib/**/*.js']
},
jshint: {
options: {
browser: true
}
},
concat: {
hitch: {
src: ["lib/engine.js", "lib/dom.js", "lib/plugins.js", "lib/resource.js", "lib/events.js", "lib/compiler.js", "lib/adapter.js"],
dest: "dist/<%=pkg.name%>-<%=pkg.version%>.js"
}
},
min: {
hitch: {
src: ["<banner>", "dist/<%=pkg.name%>-<%=pkg.version%>.js"],
dest: "dist/<%=pkg.name%>-<%=pkg.version%>.min.js"
}
},
qunit: {
all: ["http://localhost:8000/test/all.html"]
},
server: {
port: 8000,
base: "."
}
});
grunt.registerTask("test", "server qunit");
grunt.registerTask("default", "lint concat min test");
};