Skip to content

Commit 9e05af3

Browse files
crisbetojelbourn
authored andcommitted
build: add tslint rule for consistent file name casing (#14536)
Adds a tslint rule to enforce that the casing on our filenames is consistent. The tslint rule files are excluded, because their names have to be in camel case and end with `Rule`.
1 parent d304b41 commit 9e05af3

File tree

13 files changed

+64
-10
lines changed

13 files changed

+64
-10
lines changed

tools/BUILD.bazel

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ load("@build_bazel_rules_nodejs//:defs.bzl", "nodejs_binary")
55

66
ts_library(
77
name = "sass_bundle_lib",
8-
srcs = ["sass_bundle.ts"],
8+
srcs = ["sass-bundle.ts"],
99
deps = [
1010
"@matdeps//@types/node",
1111
"@matdeps//scss-bundle",
@@ -21,5 +21,5 @@ nodejs_binary(
2121
"@matdeps//source-map-support",
2222
":sass_bundle_lib",
2323
],
24-
entry_point = "angular_material/tools/sass_bundle.js",
24+
entry_point = "angular_material/tools/sass-bundle.js",
2525
)

tools/gulp/tasks/aot.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import {task} from 'gulp';
2-
import {execNodeTask} from '../util/task_helpers';
2+
import {execNodeTask} from '../util/task-helpers';
33
import {join} from 'path';
44
import {buildConfig, sequenceTask} from 'material2-build-tools';
55

tools/gulp/tasks/clean.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import {task} from 'gulp';
2-
import {cleanTask} from '../util/task_helpers';
2+
import {cleanTask} from '../util/task-helpers';
33
import {buildConfig} from 'material2-build-tools';
44

55

tools/gulp/tasks/development.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import {task, dest} from 'gulp';
2-
import {tsBuildTask, copyTask, serverTask} from '../util/task_helpers';
2+
import {tsBuildTask, copyTask, serverTask} from '../util/task-helpers';
33
import {join} from 'path';
44
import {
55
buildConfig,

tools/gulp/tasks/e2e.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import {
77
getActiveBrowserSyncInstance,
88
ngcBuildTask,
99
serverTask
10-
} from '../util/task_helpers';
10+
} from '../util/task-helpers';
1111

1212
const {outputDir, packagesDir, projectDir} = buildConfig;
1313

tools/gulp/tasks/lint.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import {readdirSync, readFileSync, statSync} from 'fs';
33
import {task} from 'gulp';
44
import {IMinimatch, Minimatch} from 'minimatch';
55
import {join} from 'path';
6-
import {execNodeTask} from '../util/task_helpers';
6+
import {execNodeTask} from '../util/task-helpers';
77

88
/** Glob that matches all SCSS or CSS files that should be linted. */
99
const styleGlob = 'src/**/*.+(css|scss)';

tools/gulp/tasks/publish/publish-task.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import {task} from 'gulp';
55
import {buildConfig, sequenceTask} from 'material2-build-tools';
66
import * as minimist from 'minimist';
77
import {join} from 'path';
8-
import {execTask} from '../../util/task_helpers';
8+
import {execTask} from '../../util/task-helpers';
99

1010
/** Packages that will be published to NPM by the release task. */
1111
export const releasePackages = [

tools/gulp/tasks/universal.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import {dest, task} from 'gulp';
2-
import {ngcBuildTask, tsBuildTask, copyTask, execTask} from '../util/task_helpers';
2+
import {ngcBuildTask, tsBuildTask, copyTask, execTask} from '../util/task-helpers';
33
import {join} from 'path';
44
import {copySync} from 'fs-extra';
55
import {buildConfig, buildScssPipeline, sequenceTask} from 'material2-build-tools';
File renamed without changes.

tools/gulp/util/watch-files-reload.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import {watchFiles} from 'material2-build-tools';
2-
import {getActiveBrowserSyncInstance} from './task_helpers';
2+
import {getActiveBrowserSyncInstance} from './task-helpers';
33

44
/**
55
* Function that watches a set of file globs and runs the specified tasks if a file

0 commit comments

Comments
 (0)