forked from tomasbjerre/pull-request-notifier-for-bitbucket
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Gruntfile.js
45 lines (41 loc) · 872 Bytes
/
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
module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
jshint: {
all: [
'src/main/resources/pr-triggerbutton.js',
'src/main/resources/admin.js',
'src/main/resources/utils.js'
],
options: {
esversion: 3
}
},
jsbeautifier: {
files: ["Gruntfile.js",
"src/**/*.vm",
"src/**/*.xml",
"pom.xml",
"src/**/*.js",
"Gruntfile.js",
"src/**/*.css"
],
options: {
html: {
fileTypes: [".vm", ".xml"],
indentChar: " ",
indentSize: 1,
preserveNewlines: true,
unformatted: ["a", "sub", "sup", "b", "i", "u", "strong"]
},
js: {
indentChar: " ",
indentSize: 1
}
}
}
});
grunt.loadNpmTasks("grunt-jsbeautifier");
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.registerTask('default', ['jsbeautifier', 'jshint']);
};