forked from EE/ng-l20n
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGruntfile.js
48 lines (39 loc) · 1.11 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
'use strict';
module.exports = function (grunt) {
grunt.initConfig({
clean: require('./grunt/config/clean'),
copy: require('./grunt/config/copy'),
eslint: require('./grunt/config/lint/eslint'),
jscs: require('./grunt/config/lint/jscs'),
jsonlint: require('./grunt/config/lint/jsonlint'),
'merge-conflict': require('./grunt/config/lint/merge-conflict'),
uglify: require('./grunt/config/uglify'),
'post-uglify': require('./grunt/config/post-uglify'),
});
// Load all grunt tasks matching the `grunt-*` pattern.
require('load-grunt-tasks')(grunt);
// Load all custom tasks.
grunt.loadTasks('grunt/tasks');
grunt.registerTask('lint', [
'eslint',
'jscs',
'jsonlint',
]);
grunt.registerTask('minify', [
'uglify',
'post-uglify',
]);
grunt.registerTask('test', [
'clean',
'merge-conflict',
'lint',
]);
grunt.registerTask('build', [
'copy:dist',
'minify',
]);
grunt.registerTask('default', [
'test',
'build',
]);
};