-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgrunt.js
47 lines (39 loc) · 959 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
42
43
44
45
46
47
module.exports = function(grunt) {
grunt.initConfig({
concat: {
dist: {
src: ['src/header.js',
'src/exports.js',
'src/init.js',
'src/structure-decl.js',
'src/hashtable.js',
'src/footer.js'],
dest: 'lib/structure.js'
},
inline: {
src: ['src/structure-decl.js',
'src/hashtable.js'],
dest: 'lib/inline-hashtable.js'
}
},
lint: {
all: ['src/exports.js', 'src/hashtable.js', 'test/*.js']
},
min: {
dist: {
src: ['lib/structure.js'],
dest: 'lib/structure.min.js'
}
},
jasmine_node: {
specFolderName: "",
projectRoot: "./test",
requirejs: false,
forceExit: true,
matchall: true,
verbose: false
}
});
grunt.loadNpmTasks('grunt-jasmine-node');
grunt.registerTask('default', 'lint concat jasmine_node min');
};