-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathGruntfile.js
35 lines (22 loc) · 946 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
35
module.exports = function (grunt) {
var matchdep;
matchdep = require("matchdep");
matchdep.filterDev("grunt-*").forEach(grunt.loadNpmTasks);
grunt.initConfig({
pkg: grunt.file.readJSON("package.json"),
buildDest: "./dist",
srcDest: "./src",
srcFiles: [
"./src/**/*.js"
],
uglify: require("./build_tasks/uglify/uglify.js"),
transpile: require("./build_tasks/transpile/transpile.js"),
jasmine: require("./build_tasks/jasmine/jasmine.js"),
jsdoc: require("./build_tasks/jsdoc/jsdoc.js"),
jshint: require("./build_tasks/jshint/jshint.js"),
watch: require("./build_tasks/watch/watch.js")
});
grunt.registerTask("start", ["build", "watch"]);
grunt.registerTask("build", ["transpile", "jshint", "uglify", "jasmine", "jsdoc"]);
grunt.registerTask("default", ["start"]);
};