Skip to content

Commit ce74501

Browse files
devversionkara
authored andcommitted
build: run madge against cdk (#4450)
1 parent 2c65117 commit ce74501

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

tools/gulp/tasks/lint.ts

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import gulp = require('gulp');
1+
import {task} from 'gulp';
22
import {execNodeTask} from '../util/task_helpers';
3-
import {DIST_MATERIAL} from '../constants';
3+
import {DIST_MATERIAL, DIST_CDK} from '../constants';
44

55
/** Glob that matches all SCSS or CSS files that should be linted. */
66
const stylesGlob = '+(tools|src)/**/*.+(css|scss)';
@@ -10,18 +10,20 @@ const tsLintBaseFlags = [
1010
'-c', 'tslint.json', '+(src|e2e|tools)/**/*.ts', '--exclude', '**/node_modules/**/*'
1111
];
1212

13-
gulp.task('lint', ['tslint', 'stylelint', 'madge']);
13+
task('lint', ['tslint', 'stylelint', 'madge']);
1414

1515
/** Task that runs madge to detect circular dependencies. */
16-
gulp.task('madge', ['material:clean-build'], execNodeTask('madge', ['--circular', DIST_MATERIAL]));
16+
task('madge', ['material:clean-build'], execNodeTask(
17+
'madge', ['--circular', DIST_MATERIAL, DIST_CDK])
18+
);
1719

1820
/** Task to lint Angular Material's scss stylesheets. */
19-
gulp.task('stylelint', execNodeTask(
21+
task('stylelint', execNodeTask(
2022
'stylelint', [stylesGlob, '--config', 'stylelint-config.json', '--syntax', 'scss']
2123
));
2224

2325
/** Task to run TSLint against the e2e/ and src/ directories. */
24-
gulp.task('tslint', execNodeTask('tslint', tsLintBaseFlags));
26+
task('tslint', execNodeTask('tslint', tsLintBaseFlags));
2527

2628
/** Task that automatically fixes TSLint warnings. */
27-
gulp.task('tslint:fix', execNodeTask('tslint', [...tsLintBaseFlags, '--fix']));
29+
task('tslint:fix', execNodeTask('tslint', [...tsLintBaseFlags, '--fix']));

0 commit comments

Comments
 (0)