-
Notifications
You must be signed in to change notification settings - Fork 3
/
Gruntfile.js
46 lines (35 loc) · 1.04 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
/*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: 'source/',
sourceAll: 'source/**/*',
build: 'build/',
buildAll: 'build/**/*',
npm: 'node_modules/',
npmAll: 'node_modules/**/*'
}
}
});
// Will load the custom tasks
// grunt.loadTasks('./grunt/tasks');
grunt.registerTask('build', 'Build a bundle', [
'clean:build',
'copy:build',
'update_json:npm',
'update_json:bower'
]);
grunt.registerTask('default', 'Run code checker', [
'jsonlint',
'jshint',
'jscs'
]);
};