forked from marcus-nl/ember-data.model-fragments
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGruntfile.js
31 lines (27 loc) · 767 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
module.exports = function(grunt) {
// Load all grunt tasks and options from `/tasks/options` dir
require('load-grunt-config')(grunt, {
configPath: require('path').join(process.cwd(), 'tasks/options')
});
grunt.registerTask('build', "Build to the 'tmp/' directory and lint source", [
'clean:tmp',
'transpile:amd',
'concat:browser',
'preprocess:version',
'jshint:src',
]);
grunt.registerTask('dist', "Minify and defeature-ify build", [
'build',
'clean:dist',
'copy:debug',
'emberDefeatureify:stripDebug',
'uglify:dist',
]);
grunt.registerTask('docs', "Build documentation to the docs/ directory", [
'yuidoc'
]);
grunt.registerTask('default', "Build and watch", [
'build',
'watch'
]);
};