Skip to content

Commit be9abca

Browse files
authored
build: remove unused code from legacy tooling and remove view-engine leftovers (#23899)
* build: remove unused code from legacy tooling and remove viewengine leftovers Removes unused code from legacy tooling and View Engine compilation within Bazel. Also the clang-format file is removed given that we run prettier in the whole repository now. * fixup! build: remove unused code from legacy tooling and remove viewengine leftovers ds
1 parent 3240a50 commit be9abca

File tree

4 files changed

+7
-67
lines changed

4 files changed

+7
-67
lines changed

.clang-format

Lines changed: 0 additions & 14 deletions
This file was deleted.

build-config.js

Lines changed: 0 additions & 41 deletions
This file was deleted.

tools/BUILD.bazel

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,3 @@ config_setting(
1818
name = "stamp",
1919
values = {"stamp": "true"},
2020
)
21-
22-
# This file generates the `angular_ivy_enabled.js` file, which exports a truthy value
23-
# whether Ivy should be enabled based on the `--defined=angular_ivy_enabled` value
24-
# so runtime can detect which mode it is running in.
25-
genrule(
26-
name = "angular_ivy_enabled",
27-
outs = ["angular_ivy_enabled.js"],
28-
cmd = "echo exports.ivyEnabled = \"'True' === '$(angular_ivy_enabled)'\"\\; > $@",
29-
)

tools/tslint-rules/requireLicenseBannerRule.ts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,14 @@ import * as ts from 'typescript';
33
import * as Lint from 'tslint';
44
import minimatch from 'minimatch';
55

6-
const buildConfig = require('../../build-config');
7-
86
/** License banner that is placed at the top of every public TypeScript file. */
9-
const licenseBanner = buildConfig.licenseBanner;
7+
const licenseBanner = `/**
8+
* @license
9+
* Copyright Google LLC All Rights Reserved.
10+
*
11+
* Use of this source code is governed by an MIT-style license that can be
12+
* found in the LICENSE file at https://angular.io/license
13+
*/`;
1014

1115
/** Failure message that will be shown if a license banner is missing. */
1216
const ERROR_MESSAGE =

0 commit comments

Comments
 (0)