-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathgruntfile.js
More file actions
68 lines (48 loc) · 1.49 KB
/
gruntfile.js
File metadata and controls
68 lines (48 loc) · 1.49 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
57
58
59
60
61
62
63
64
65
66
67
68
'use strict';
module.exports = function(grunt) {
grunt.initConfig({
'jshint' : require("./.grunt-tasks/jshint.js"),
'browserify' : require("./.grunt-tasks/browserify.js"),
'watch' : require("./.grunt-tasks/watch.js"),
'jasmine' : require("./.grunt-tasks/jasmine.js"),
'simplemocha' : require("./.grunt-tasks/simplemocha.js"),
'karma' : require("./.grunt-tasks/karma.js"),
'readme' : require("./.grunt-tasks/readme.js"),
'http-server' : require("./.grunt-tasks/http-server.js"),
'bump' : require("./.grunt-tasks/bump.js"),
'exec' : require("./.grunt-tasks/exec.js"),
'coveralls' : require("./.grunt-tasks/coveralls.js")
});
// load libs
require('load-grunt-tasks')(grunt);
grunt.registerTask(
'default',
[
'browserify:test-libs',
'browserify:test',
'http-server',
'watch',
]);
grunt.registerTask(
'build',
[
'readme',
'jshint',
'browserify',
'simplemocha',
'karma'
]);
grunt.registerTask(
'travis',
[
'build',
'coveralls'
]);
grunt.registerTask(
'publish',
[
'travis',
'exec:npm-publish',
'exec:bower-publish'
]);
};