-
Notifications
You must be signed in to change notification settings - Fork 36
/
Copy pathGruntfile.js
45 lines (41 loc) · 1001 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
/*
* Copyright (c) 2016-2018 Untu, Inc.
* This code is licensed under Eclipse Public License - v 1.0.
* The full license text can be found in LICENSE.txt file and
* on the Eclipse official site (https://www.eclipse.org/legal/epl-v10.html).
*/
'use strict';
module.exports = function(grunt) {
require('load-grunt-tasks')(grunt);
// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
// ESLint code validation.
eslint: {
options: {
maxWarnings: 0
},
target: [
'**/*.js',
'!**/node_modules/**',
'!target/**',
'!coverage/**'
]
},
// TSLint code validation.
tslint: {
options: {
maxWarnings: 0
},
target: [
'**/*.ts',
'!**/node_modules/**',
'!typings/**'
]
}
});
// Validate task.
grunt.registerTask('validate', ['eslint', 'tslint']);
// Default task.
grunt.registerTask('default', ['validate']);
};