forked from aotelai/crypto-js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Gruntfile.js
51 lines (37 loc) · 1.12 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
49
50
51
/*jshint node: true*/
'use strict';
var path = require('path');
module.exports = function (grunt) {
// Load all grunt tasks from node_modules, and config from /grunt/config
require('load-grunt-config')(grunt, {
configPath: path.join(process.cwd(), 'grunt/config'),
config: {
pkg: grunt.file.readJSON('package.json'),
meta: {
cwd: '',
cwdAll: '**/*',
source: 'src/',
sourceAll: 'src/**/*',
build: 'build/',
buildAll: 'build/**/*',
test: 'test/',
testAll: 'test/**/*',
npm: 'node_modules/',
npmAll: 'node_modules/**/*'
}
}
});
// Will load the custom tasks
grunt.loadTasks('./grunt/tasks');
grunt.registerTask('build', 'Build a bundle', [
'clean:build',
'modularize:build',
'copy:build',
'update_json:npm',
'update_json:bower'
]);
grunt.registerTask('default', 'Run code checker', [
'jsonlint',
'jshint'
]);
};