forked from dragosch/kurento-group-call
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Gruntfile.js
49 lines (41 loc) · 986 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
46
47
48
49
module.exports = function (grunt) {
var pkg = grunt.file.readJSON('package.json');
// Project configuration.
grunt.initConfig({
pkg: pkg,
githooks: {
all: {
'pre-commit': 'jsbeautifier:git-pre-commit'
}
},
jsbeautifier: {
options: {
config: '.jsbeautifyrc'
},
"default": {
src: ["lib/**/*.js", "*.js", "test/*.js", "backend/*.js"]
},
"git-pre-commit": {
src: ["lib/**/*.js", "*.js", "test/*.js", "backend/*.js"],
options: {
config: '.jsbeautifyrc',
mode: 'VERIFY_ONLY'
//mode: 'VERIFY_AND_WRITE'
}
}
},
jshint: {
all: ['backend/**/*.js', "server.js"],
options: {
jshintrc: true
},
}
});
// Load plugins
grunt.loadNpmTasks('grunt-jsbeautifier');
grunt.loadNpmTasks('grunt-contrib-jshint');
// Alias tasks
grunt.registerTask('default', [
'jsbeautifier:git-pre-commit'
]);
};