-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathgruntfile.js
More file actions
41 lines (39 loc) · 1.13 KB
/
gruntfile.js
File metadata and controls
41 lines (39 loc) · 1.13 KB
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
// Gruntfile.js
module.exports = grunt => {
// load all grunt tasks matching the ['grunt-*', '@*/grunt-*'] patterns
require('load-grunt-tasks')(grunt);
grunt.initConfig({
jsbeautifier: {
files: ["*.js", "_lib/**/*.js", "_models/**/*.js", "_test/**/*.js", "_util/**/*.js"],
options: {
js: {
braceStyle: "end-expand",
breakChainedMethods: false,
e4x: false,
evalCode: false,
indentChar: " ",
indentLevel: 0,
indentSize: 2,
indentWithTabs: false,
jslintHappy: false,
keepArrayIndentation: false,
keepFunctionIndentation: false,
maxPreserveNewlines: 10,
preserveNewlines: true,
spaceBeforeConditional: false,
spaceInParen: false,
unescapeStrings: false,
wrapLineLength: 0,
endWithNewline: true
}
}
},
jshint: {
files: ["*.js", "_lib/**/*.js", "_models/**/*.js", "_test/**/*.js", "_util/**/*.js"],
options: {
node: true
}
}
});
grunt.registerTask('default', ['jshint', 'jsbeautifier']);
};