forked from DevExpress/devextreme-angular
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgulpfile.js
23 lines (20 loc) · 845 Bytes
/
gulpfile.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
var gulp = require('gulp');
var tslint = require('gulp-tslint');
const srcFilesPattern = ['packages/*/src/**/*.ts', '!packages/*/src/ui/**', '!packages/*/src/metadata-model.ts'];
const sandboxSrcFilesPattern = 'packages/sandbox/**/*.ts';
const testsFilesPattern = ['packages/*/tests/src/**/*.spec.ts', 'packages/*/tests/src/**/component-names.ts'];
const nodeModulesExcludePattern = ['!**/node_modules/**/*'];
gulp.task('lint', function() {
return gulp.src(srcFilesPattern
.concat(sandboxSrcFilesPattern)
.concat(testsFilesPattern)
.concat(nodeModulesExcludePattern)
)
.pipe(tslint({
formatter: 'prose',
tslint: require('tslint').default,
rulesDirectory: null,
configuration: 'tslint.json'
}))
.pipe(tslint.report());
});