This repository has been archived by the owner on Jun 17, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathgrunt.js
64 lines (62 loc) · 1.76 KB
/
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
// Project metadata, used by some directives, helpers and tasks.
meta: {},
// Lists of files to be concatenated, used by the "concat" task.
concat: {
dist: {
src: [ 'LICENSE'
, 'support/mustache.js'
, 'src/Core.js'
, 'src/Helper.js'
, 'src/Messaging.js'
, 'src/Model.js'
, 'src/Request.js'
, 'src/Controller.js'
, 'src/Application.js'
, 'src/Service.js'
, 'src/ServiceLocator.js'
],
dest: 'dist/mojo.js.uncompressed.js'
}
},
// Lists of files to be linted with JSHint, used by the "lint" task.
lint: {},
// Lists of files to be minified with UglifyJS, used by the "min" task.
min: {
dist: {
src: ['dist/mojo.js.uncompressed.js'],
dest: 'dist/mojo.js'
}
},
// Lists of files or URLs to be unit tested with QUnit, used by the "qunit" task.
qunit: {},
// Configuration options for the "server" task.
server: {},
// Lists of files to be unit tested with Nodeunit, used by the "test" task.
test: {},
// Configuration options for the "watch" task.
watch: {},
// Global configuration options for JSHint.
jshint: {
options: {
curly: true,
eqeqeq: true,
immed: true,
latedef: true,
newcap: true,
noarg: true,
sub: true,
undef: true,
boss: true,
eqnull: true,
browser: true
},
globals: { jQuery: true }
},
// Global configuration options for UglifyJS.
uglify: {}
});
grunt.registerTask('default', 'concat min');
};