forked from jmarquis/angular-hateoas
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Gruntfile.js
34 lines (29 loc) · 890 Bytes
/
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
module.exports = function (grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON("package.json"),
uglify: {
options: {
banner: "/*!\n * <%= pkg.name %> <%= pkg.version %>-<%= grunt.template.today('yyyymmdd') %>\n * Copyright 2013 Jeremy Marquis (@_jmarquis)\n * http://github.com/jmarquis/angular-hateoas\n */\n"
},
build: {
src: "src/<%= pkg.name %>.js",
dest: "build/<%= pkg.name %>.min.js"
}
},
karma: {
unit: {
configFile: "karma.conf.js"
},
continuous: {
configFile: "karma.conf.js",
singleRun: true
}
}
});
grunt.loadNpmTasks("grunt-contrib-uglify");
grunt.loadNpmTasks("grunt-karma");
grunt.registerTask("default", ["karma:continuous", "uglify"]);
grunt.registerTask("startTestServer", ["karma:unit:start"]);
grunt.registerTask("runTests", ["karma:unit:run"]);
grunt.registerTask("test", ["karma:continuous"]);
};