-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathGruntfile.js
More file actions
56 lines (53 loc) · 1.59 KB
/
Copy pathGruntfile.js
File metadata and controls
56 lines (53 loc) · 1.59 KB
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
/*global module:false*/
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
// Metadata.
pkg: grunt.file.readJSON('package.json'),
// Task configuration.
browserify: {
dist: {
files: {
'test-browser/queue.browser.spec.js': ['test-browser/queue.spec.js'],
'lib/client/queue.client.js': ['lib/queue.client.js']
}
}
},
uglify: {
my_target: {
files: {
'lib/client/queue.client.min.js': ['lib/client/queue.client.js']
}
}
},
jasmine_node: {
coverage: {
},
options: {
forceExit: true,
specFolders : ['./spec/']
},
all: ['spec/']
},
markdown : {
all: {
files: [
{
expand: true,
src: './readme.md',
dest: './doc/',
ext: '.html'
}
]
}
}
});
grunt.loadNpmTasks('grunt-browserify');
grunt.loadNpmTasks('grunt-jasmine-node');
grunt.loadNpmTasks('grunt-jasmine-node-coverage');
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-markdown');
grunt.registerTask('default', ['browserify', 'uglify', 'jasmine_node']);
grunt.registerTask('test', ['jasmine_node']);
grunt.registerTask('readme', ['markdown']);
};