mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
build: update bazel typescript rules (#13408)
* Updates the Bazel TypeScript rules. * Fixes a test case which doesn't match the name of the upgrade data it runs with (`css-names` --> `css-selectors`) * Removes Bazel version check (the NodeJS rules automatically check the Bazel version based on the version of the NodeJS rules)
This commit is contained in:
committed by
vivian-hu
parent
cdf83097f4
commit
3254992a8e
@@ -1,21 +1,19 @@
|
||||
workspace(name = "angular_material")
|
||||
|
||||
# Load NodeJS rules. Note that this is technically not needed because
|
||||
# `rules_typescript_dependencies()` would also load the NodeJS rules, but we specifically need
|
||||
# at least v0.14.1 which includes: https://github.com/bazelbuild/rules_nodejs/pull/341
|
||||
# Add NodeJS rules (explicitly used for sass bundle rules)
|
||||
http_archive(
|
||||
name = "build_bazel_rules_nodejs",
|
||||
url = "https://github.com/bazelbuild/rules_nodejs/archive/0.14.1.zip",
|
||||
strip_prefix = "rules_nodejs-0.14.1",
|
||||
sha256 = "813eb51733d3632f456f3bb581d940ed64e80dab417595c93bf5ad19079898e2"
|
||||
url = "https://github.com/bazelbuild/rules_nodejs/archive/0.14.2.zip",
|
||||
strip_prefix = "rules_nodejs-0.14.2",
|
||||
sha256 = "af481421c9e74f754a693a8bf5e9409484e38cf7be6f73f85879bdc7ed1b1d82",
|
||||
)
|
||||
|
||||
# Add TypeScript rules
|
||||
http_archive(
|
||||
name = "build_bazel_rules_typescript",
|
||||
url = "https://github.com/bazelbuild/rules_typescript/archive/0.18.0.zip",
|
||||
strip_prefix = "rules_typescript-0.18.0",
|
||||
sha256 = "4726e07a2f8d23b5e3af166f3b2a6e8aa75adad94b35ab4d959e8fe875f90272",
|
||||
url = "https://github.com/bazelbuild/rules_typescript/archive/0.19.1.zip",
|
||||
strip_prefix = "rules_typescript-0.19.1",
|
||||
sha256 = "91a03623a03a463ffd62cea3f7a384c2f298af6438d5d153fc4d69aa5665b53d",
|
||||
)
|
||||
|
||||
# Fetch transient dependencies of the TypeScript bazel rules.
|
||||
@@ -35,10 +33,7 @@ sass_repositories()
|
||||
|
||||
# NOTE: this rule installs nodejs, npm, and yarn, but does NOT install
|
||||
# your npm dependencies. You must still run the package manager.
|
||||
load("@build_bazel_rules_nodejs//:defs.bzl", "check_bazel_version", "node_repositories",
|
||||
"npm_install")
|
||||
|
||||
check_bazel_version("0.15.0")
|
||||
load("@build_bazel_rules_nodejs//:defs.bzl", "node_repositories", "npm_install")
|
||||
node_repositories()
|
||||
|
||||
# Use Bazel managed node modules. See more below:
|
||||
|
||||
Generated
+217
-151
File diff suppressed because it is too large
Load Diff
+1
-1
@@ -53,7 +53,7 @@
|
||||
"@angular/router": "7.0.0-rc.0",
|
||||
"@angular/upgrade": "7.0.0-rc.0",
|
||||
"@bazel/ibazel": "0.3.1",
|
||||
"@bazel/typescript": "^0.18.0",
|
||||
"@bazel/typescript": "^0.19.1",
|
||||
"@google-cloud/storage": "^1.1.1",
|
||||
"@octokit/rest": "^15.9.4",
|
||||
"@schematics/angular": "7.0.0-rc.1",
|
||||
|
||||
@@ -10,7 +10,7 @@ describe('v6 upgrade test cases', () => {
|
||||
const testCases = [
|
||||
'v6/attribute-selectors',
|
||||
'v6/class-names',
|
||||
'v6/css-names',
|
||||
'v6/css-selectors',
|
||||
'v6/element-selectors',
|
||||
'v6/input-names',
|
||||
'v6/output-names',
|
||||
|
||||
Reference in New Issue
Block a user