forked from matheuslc/MacGyver
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGruntfile.js
55 lines (46 loc) · 1.1 KB
/
Gruntfile.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
module.exports = function(grunt) {
require('matchdep').filterDev('grunt-*').forEach(grunt.loadNpmTasks);
grunt.initConfig({
pkg: grunt.file.readJSON("package.json"),
bower: grunt.file.readJSON("bower.json"),
buildConf: grunt.file.readJSON("build.json")
});
grunt.loadTasks("misc/grunt");
require('time-grunt')(grunt);
grunt.registerTask("compile", [
"stylus",
"concat:lib",
"replace:src"
]);
grunt.registerTask("deploy", "Build and copy to lib/", [
// bump, generate changelog
"compile",
"karma:build",
"copy:dist",
"uglify:dist",
"doc"
]);
grunt.registerTask("run", "Watch src and run test server", [
"compile",
"eslint",
"karma:unit",
"doc",
"connect:doc",
"watch"
]);
grunt.registerTask("test:ci", [
"eslint",
"karma:travis",
"coveralls"
]);
grunt.registerTask("test:e2e", "Compile all source code, run a test server and run the end to end tests", [
"compile",
"connect:e2e",
"protractor:normal"
]);
grunt.registerTask('doc', [
'jsdoc:doc',
'copy:css',
'copy:doc'
])
};