-
Notifications
You must be signed in to change notification settings - Fork 0
/
Gruntfile.js
34 lines (31 loc) · 1.13 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
module.exports = function (grunt) {
require('load-grunt-config')(grunt, {
configPath: process.cwd() + '/grunt/config',
data: {
pkg: grunt.file.readJSON('bower.json')
}
});
grunt.loadTasks('grunt/tasks');
grunt.renameTask('watch', 'grunt-contrib-watch');
grunt.registerTask('build', [
'gitinfo',
'jshint:source',
'clean:buildOutput',
'cssmin:minified',
'copy:js',
'react:compile',
'requirejs:minified',
'copy:html',
'copy:img',
'filerev:assets',
'usemin:html',
'usemin:css',
'replace:versionInHtml'
]);
grunt.registerTask('test', ['karma:unit', 'build', 'connect:prodServer', 'jasmine_node:integration']);
grunt.registerTask('watch', ['connect:devServer', 'concurrent:watchUnitTestsAndServer']);
grunt.registerTask('watchIntegrationTest', ['grunt-contrib-watch:integrationTest']);
grunt.registerTask('server', ['build', 'connect:prodServerKeepAlive']);
grunt.registerTask('ci', ['test', 'karma:windows', 'karma:mac']);
grunt.registerTask('default', ['test']);
};