forked from cobbdb/harmony
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgruntfile.js
30 lines (29 loc) · 855 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
module.exports = function (grunt) {
// Load all grunt NPM tasks.
require('matchdep').filterDev([
'grunt-*',
'!grunt-template-*'
]).forEach(grunt.loadNpmTasks);
// Load harmony task confs.
grunt.loadTasks('tasks');
grunt.registerTask('build', 'Build distributable without tests.', [
'browserify:bundle',
'uglify:bundle'
]);
grunt.registerTask('default', 'Full build suite.', [
'browserify',
'jasmine:specBundles',
'jshint',
'uglify:bundle',
'jasmine:bundle'
]);
grunt.registerTask('test', 'Run tests.', [
'browserify:specs',
'jasmine:specBundles'
]);
grunt.registerTask('docs', 'Build and deploy autodocs.', [
'build-readme',
'exec:build-docs-win-version',
'exec:build-docs-win-main'
]);
};