aboutsummaryrefslogtreecommitdiff
path: root/tools/tasks/tslint.ts
diff options
context:
space:
mode:
authorAlex Tatiyants <atatiyan@gmail.com>2016-01-03 17:17:48 -0800
committerAlex Tatiyants <atatiyan@gmail.com>2016-01-03 17:17:48 -0800
commit5310ac7d8eb1838a6297117bc7f9fca70291f46a (patch)
tree28f54b184cb85f04e6d6720dd03258f3728fedde /tools/tasks/tslint.ts
initial commit
Diffstat (limited to 'tools/tasks/tslint.ts')
-rw-r--r--tools/tasks/tslint.ts21
1 files changed, 21 insertions, 0 deletions
diff --git a/tools/tasks/tslint.ts b/tools/tasks/tslint.ts
new file mode 100644
index 0000000..ccea264
--- /dev/null
+++ b/tools/tasks/tslint.ts
@@ -0,0 +1,21 @@
+import {join} from 'path';
+import {APP_SRC, TOOLS_DIR} from '../config';
+
+export = function tslint(gulp, plugins) {
+ return function () {
+ let src = [
+ join(APP_SRC, '**/*.ts'),
+ '!' + join(APP_SRC, '**/*.d.ts'),
+ join(TOOLS_DIR, '**/*.ts'),
+ '!' + join(TOOLS_DIR, '**/*.d.ts')
+ ];
+
+ return gulp.src(src)
+ .pipe(plugins.tslint())
+ .pipe(plugins.tslint.report(plugins.tslintStylish, {
+ emitError: false,
+ sort: true,
+ bell: true
+ }));
+ };
+};