Skip to content

Commit bc3b578

Browse files
devversionjelbourn
authored andcommitted
build: no longer install angular dev dependencies (#15599)
No longer sets up the "@angular" repository. As we no longer build from source we don't need to install the NPM dev dependencies from the Angular project. This is now possible as Angular switched away from the "@ngdeps" repository to the "@npm" repository.
1 parent 0c30462 commit bc3b578

File tree

5 files changed

+81
-81
lines changed

5 files changed

+81
-81
lines changed

WORKSPACE

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
55
# Add NodeJS rules (explicitly used for sass bundle rules)
66
http_archive(
77
name = "build_bazel_rules_nodejs",
8-
sha256 = "5c86b055c57e15bf32d9009a15bcd6d8e190c41b1ff2fb18037b75e0012e4e7c",
9-
urls = ["https://github.com/bazelbuild/rules_nodejs/releases/download/0.26.0/rules_nodejs-0.26.0.tar.gz"],
8+
sha256 = "88e5e579fb9edfbd19791b8a3c6bfbe16ae3444dba4b428e5efd36856db7cf16",
9+
urls = ["https://github.com/bazelbuild/rules_nodejs/releases/download/0.27.8/rules_nodejs-0.27.8.tar.gz"],
1010
)
1111

1212
# Add sass rules
@@ -68,20 +68,22 @@ rules_sass_dependencies()
6868
load("@io_bazel_rules_sass//:defs.bzl", "sass_repositories")
6969
sass_repositories()
7070

71-
# Temporarily add Angular sources and its dependencies to consume the ts_api_guardian,
72-
# remote-build-execution, and protractor stuff.
71+
# Temporarily add the Angular repository so that we can set up "ts_api_guardian".
7372
# TODO(jelbourn): remove this once we can do all the same stuff via @npm//@angular
7473
http_archive(
7574
name = "angular",
7675
sha256 = "a542f00adf5cafbcad24268d69da8e4746c22619699f29c3b3b0259d0ce52974",
7776
url = "https://github.com/angular/angular/archive/8.0.0-beta.6.zip",
7877
strip_prefix = "angular-8.0.0-beta.6",
7978
)
80-
load("@angular//packages/bazel:package.bzl", "rules_angular_dependencies")
81-
rules_angular_dependencies()
82-
load("@angular//:index.bzl", "ng_setup_workspace")
83-
ng_setup_workspace()
8479

80+
# Only install the "ts-api-guardian" dependencies as we don't want to install the
81+
# Angular dev dependencies which are not needed.
82+
yarn_install(
83+
name = "ts-api-guardian_deps",
84+
package_json = "@angular//tools/ts-api-guardian:package.json",
85+
yarn_lock = "@angular//tools/ts-api-guardian:yarn.lock",
86+
)
8587

8688
# Bring in bazel_toolchains for RBE stuff.
8789
http_archive(

e2e/BUILD.bazel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ ts_library(
3939
":e2e_utils_lib",
4040
],
4141
data = [
42-
"@angular//packages/bazel/src/protractor/utils",
42+
"@npm//@angular/bazel",
4343
"//tools/axe-protractor",
4444
],
4545
) for spec_file in glob(["components/**/*.spec.ts"])]

package.json

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,13 @@
3131
"version": "7.3.6",
3232
"requiredAngularVersion": ">=7.0.0",
3333
"dependencies": {
34-
"@angular/animations": "8.0.0-beta.6",
35-
"@angular/common": "8.0.0-beta.6",
36-
"@angular/compiler": "8.0.0-beta.6",
37-
"@angular/core": "8.0.0-beta.6",
38-
"@angular/elements": "8.0.0-beta.6",
39-
"@angular/forms": "8.0.0-beta.6",
40-
"@angular/platform-browser": "8.0.0-beta.6",
34+
"@angular/animations": "8.0.0-beta.9",
35+
"@angular/common": "8.0.0-beta.9",
36+
"@angular/compiler": "8.0.0-beta.9",
37+
"@angular/core": "8.0.0-beta.9",
38+
"@angular/elements": "8.0.0-beta.9",
39+
"@angular/forms": "8.0.0-beta.9",
40+
"@angular/platform-browser": "8.0.0-beta.9",
4141
"@webcomponents/custom-elements": "^1.1.0",
4242
"core-js": "^2.6.1",
4343
"rxjs": "^6.4.0",
@@ -52,14 +52,14 @@
5252
"@angular/bazel": "8.0.0-beta.6",
5353
"@angular/compiler-cli": "8.0.0-beta.6",
5454
"@angular/http": "8.0.0-beta.6",
55-
"@angular/platform-browser-dynamic": "8.0.0-beta.6",
56-
"@angular/platform-server": "8.0.0-beta.6",
57-
"@angular/router": "8.0.0-beta.6",
58-
"@angular/upgrade": "8.0.0-beta.6",
55+
"@angular/platform-browser-dynamic": "8.0.0-beta.9",
56+
"@angular/platform-server": "8.0.0-beta.9",
57+
"@angular/router": "8.0.0-beta.9",
58+
"@angular/upgrade": "8.0.0-beta.9",
5959
"@bazel/ibazel": "^0.9.0",
6060
"@bazel/jasmine": "0.26.0",
61-
"@bazel/karma": "0.26.0",
62-
"@bazel/typescript": "0.26.0",
61+
"@bazel/karma": "0.27.8",
62+
"@bazel/typescript": "0.27.8",
6363
"@firebase/app-types": "^0.3.2",
6464
"@octokit/rest": "^15.9.4",
6565
"@schematics/angular": "7.3.6",

tools/BUILD.bazel

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ package(default_visibility=["//visibility:public"])
22
load("//tools:defaults.bzl", "ts_library")
33
load("@build_bazel_rules_nodejs//:defs.bzl", "nodejs_binary")
44

5-
65
ts_library(
76
name = "sass_bundle_lib",
87
srcs = ["sass-bundle.ts"],

yarn.lock

Lines changed: 57 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,10 @@
7878
"@angular-devkit/core" "7.3.3"
7979
rxjs "6.3.3"
8080

81-
"@angular/[email protected].6":
82-
version "8.0.0-beta.6"
83-
resolved "https://registry.yarnpkg.com/@angular/animations/-/animations-8.0.0-beta.6.tgz#60773d723068265370d90b2507a77631f877c06f"
84-
integrity sha512-stnVi/e1WwMw6Lb6dag1t0qKnv0vvPE9H2syXDMjfZCGn4B14oc3VCGJn4flQpmzHUf11z8QOay75rFygj6ygg==
81+
"@angular/[email protected].9":
82+
version "8.0.0-beta.9"
83+
resolved "https://registry.yarnpkg.com/@angular/animations/-/animations-8.0.0-beta.9.tgz#9605f7b6be49b3bcde7cc7fa145ba329b2fdc6f8"
84+
integrity sha512-4OLo3432jwPIo5GiYkrVrjUWPMIKBTXqZLr09A5cScM0RA3N9KaSLk7wg1sjSb0mK3KuEfJ00jCzaLUGdvO5Kw==
8585
dependencies:
8686
tslib "^1.9.0"
8787

@@ -101,10 +101,10 @@
101101
shelljs "0.8.2"
102102
tsickle "0.34.0"
103103

104-
"@angular/[email protected].6":
105-
version "8.0.0-beta.6"
106-
resolved "https://registry.yarnpkg.com/@angular/common/-/common-8.0.0-beta.6.tgz#4921e0e44e908bf0ec40241577857f3f067b0b91"
107-
integrity sha512-r7bAAzNoeEXo1joA4dQxRgaPMqQLfqoFzC2P/w/tZPmTESSby61MIPOLsyFlceVCjx4Pw5rxpeOWYR+cceJTWA==
104+
"@angular/[email protected].9":
105+
version "8.0.0-beta.9"
106+
resolved "https://registry.yarnpkg.com/@angular/common/-/common-8.0.0-beta.9.tgz#8e23e54eadc45b187c0321e59f1b7c36b1ae8e0d"
107+
integrity sha512-dov21tsbnvNb+hmuPztqUgzDAbtiw0zSvzEzSZsZYq+mU6FbXOXZnyycXzNij+rewZMyVAQNEUIEmjc6UF8nEA==
108108
dependencies:
109109
tslib "^1.9.0"
110110

@@ -125,31 +125,31 @@
125125
tslib "^1.9.0"
126126
yargs "9.0.1"
127127

128-
"@angular/[email protected].6":
129-
version "8.0.0-beta.6"
130-
resolved "https://registry.yarnpkg.com/@angular/compiler/-/compiler-8.0.0-beta.6.tgz#007c05be13a353f706a26ce0c9a38459f9a6ffab"
131-
integrity sha512-RXxg4/Fm22n23ulP8dc+XPGqlH1vhU9fPlswN1B59vPNM2jYhBNmAyKJ66SOj1w+v9vn/n8nyDm4/kU5ej7EKA==
128+
"@angular/[email protected].9":
129+
version "8.0.0-beta.9"
130+
resolved "https://registry.yarnpkg.com/@angular/compiler/-/compiler-8.0.0-beta.9.tgz#4f999b1276b78bc91197a5119cab4f22e528b86b"
131+
integrity sha512-X22gQYGT6xR+I0umj6ZJlHbX/uO2x6rZCKDisK0KLIM7ud29ggGz/fZdBgBdZPBUB/ivzWLFUCxewQoqLLRyMA==
132132
dependencies:
133133
tslib "^1.9.0"
134134

135-
"@angular/[email protected].6":
136-
version "8.0.0-beta.6"
137-
resolved "https://registry.yarnpkg.com/@angular/core/-/core-8.0.0-beta.6.tgz#bdb7ebc867237f0522c7be42722f65fb1ca358a3"
138-
integrity sha512-W5p7SwaMnFMvSso+xWnEnYBSBJxJNdqxS9DIJOtCG9xsCHSlf0ojqMkQhCmUN0WEwa+R+OsQoPajY3yORRqYfA==
135+
"@angular/[email protected].9":
136+
version "8.0.0-beta.9"
137+
resolved "https://registry.yarnpkg.com/@angular/core/-/core-8.0.0-beta.9.tgz#55fbf127af9847df854fc8c86844dd33b3008450"
138+
integrity sha512-/x0ZD3yPlMOhtx9Onp/3nAq995xBarZiTv/dp9/obgts3U/AHEQCDw+7WWhxCqUKV38wMZOLK0FMrubC9mAyug==
139139
dependencies:
140140
tslib "^1.9.0"
141141

142-
"@angular/[email protected].6":
143-
version "8.0.0-beta.6"
144-
resolved "https://registry.yarnpkg.com/@angular/elements/-/elements-8.0.0-beta.6.tgz#06820dd75f4a6f08626513e0930d6c728068cbeb"
145-
integrity sha512-yUkeVGavNo/kzv3TEnb0gXMH2GheaKNeKRiq5kSPUgtC05XiuG3jnOQH/vKcuAAW09s+zrblyKhQGSE65QYomQ==
142+
"@angular/[email protected].9":
143+
version "8.0.0-beta.9"
144+
resolved "https://registry.yarnpkg.com/@angular/elements/-/elements-8.0.0-beta.9.tgz#2a81089e7e5b05851725af73ce0117f16ed8c7cd"
145+
integrity sha512-pULBwevq6EQSqNgA3nvBpfh39sXrAt2InhKxUOWReFcNIHScbm5GUTiTDqca63nQSKTWxlnNh9Z+yikYs5eCRg==
146146
dependencies:
147147
tslib "^1.9.0"
148148

149-
"@angular/[email protected].6":
150-
version "8.0.0-beta.6"
151-
resolved "https://registry.yarnpkg.com/@angular/forms/-/forms-8.0.0-beta.6.tgz#0b4d206298d5aa0c61ff3a0e639cc54be525dfb9"
152-
integrity sha512-RWGo5OYFYLm/lJv+nlBVUbPsDc1s14TtM3OmBcDghdMBXHcSfdp5KVoC/NQuGYpuR9PF7TAvDCy5K4+m+9o8zA==
149+
"@angular/[email protected].9":
150+
version "8.0.0-beta.9"
151+
resolved "https://registry.yarnpkg.com/@angular/forms/-/forms-8.0.0-beta.9.tgz#3a5d16708474d047aa963fe1fcbfb86155c806bb"
152+
integrity sha512-jk6prdEPdXTjhnGNmzSH8REXShP5tQBySGBJQc/gH/egaP3dxDEDZ9j0Qe/tx7lt1tq2Gzackt453mLsBN5LSg==
153153
dependencies:
154154
tslib "^1.9.0"
155155

@@ -160,40 +160,40 @@
160160
dependencies:
161161
tslib "^1.9.0"
162162

163-
"@angular/[email protected].6":
164-
version "8.0.0-beta.6"
165-
resolved "https://registry.yarnpkg.com/@angular/platform-browser-dynamic/-/platform-browser-dynamic-8.0.0-beta.6.tgz#141c916419d3045c1f00f3b4eb4959958a0ad706"
166-
integrity sha512-MfTAoG0rY3ViMeAVlJFEsfCi2Nj+A7FxPNnL5NNu89VugvtTJTC5ILtEK0baj9W1lrqLOunbQtdPLXtZIeLgrQ==
163+
"@angular/[email protected].9":
164+
version "8.0.0-beta.9"
165+
resolved "https://registry.yarnpkg.com/@angular/platform-browser-dynamic/-/platform-browser-dynamic-8.0.0-beta.9.tgz#c7d6113c7941ab612d487d6d6ec0203336fc7f38"
166+
integrity sha512-p94e+hQ6gEUG2eAbdfdiYWrQCGTt/tXKh2K5hlhg3RNci4mac5icW0sHGYDCJjcER7sOSWmJL8gfohX0t4H9uQ==
167167
dependencies:
168168
tslib "^1.9.0"
169169

170-
"@angular/[email protected].6":
171-
version "8.0.0-beta.6"
172-
resolved "https://registry.yarnpkg.com/@angular/platform-browser/-/platform-browser-8.0.0-beta.6.tgz#4d81862641ea44b445b864eea6b6cef6d04378a2"
173-
integrity sha512-UGAIIwdL55I0auLzYgOp397bPDNcu7ob1wANf0PCIfWoKuxYJn6r4UsnmKFKuvrKpHen0OKp8nXuMAO34EVsbw==
170+
"@angular/[email protected].9":
171+
version "8.0.0-beta.9"
172+
resolved "https://registry.yarnpkg.com/@angular/platform-browser/-/platform-browser-8.0.0-beta.9.tgz#7b4a731c2dbfd05266575a83a91b532b81d1490d"
173+
integrity sha512-wNwbLSwdruDmdJ9IW2M1jL2OwWxqZ1R+xR8ZdmpUandGTf3R17u89gMzCjRvYx+rP//7p4XMHbNA8nx/lae3yA==
174174
dependencies:
175175
tslib "^1.9.0"
176176

177-
"@angular/[email protected].6":
178-
version "8.0.0-beta.6"
179-
resolved "https://registry.yarnpkg.com/@angular/platform-server/-/platform-server-8.0.0-beta.6.tgz#dad4a4990fabd35f26cf0f9fd9a9f910e22eb271"
180-
integrity sha512-cgd5XXvy7S8XrtgyKRYYLxhKpGbqMlAqXaWwlhEMlLrj+pzp9mrgBh/7OaLvlRIW8mhWVItg1W3RX8YdB4SlVQ==
177+
"@angular/[email protected].9":
178+
version "8.0.0-beta.9"
179+
resolved "https://registry.yarnpkg.com/@angular/platform-server/-/platform-server-8.0.0-beta.9.tgz#c0f2a1476ad1ee1897ff2541ba6a5959dc455668"
180+
integrity sha512-Qwy6U8xPoapJgj5dqFc1vzg4y+QEnfeQZr5e1VNcP04aViofZyKD0uNS9rzZcPUdLsuDRU+09uhFeIMJVbjmPw==
181181
dependencies:
182-
domino "^2.1.0"
182+
domino "^2.1.2"
183183
tslib "^1.9.0"
184184
xhr2 "^0.1.4"
185185

186-
"@angular/[email protected].6":
187-
version "8.0.0-beta.6"
188-
resolved "https://registry.yarnpkg.com/@angular/router/-/router-8.0.0-beta.6.tgz#9fd7c4dcae296123f0468bd92e827d2f75d58ff0"
189-
integrity sha512-uyul+0hX15Rnqoa9vw1tLusUEEKY12h/mLgXQi06iTLOE5W4kLKvPPpTaFQNCLTL0keNEsXGQwq27L0Mz3YqPw==
186+
"@angular/[email protected].9":
187+
version "8.0.0-beta.9"
188+
resolved "https://registry.yarnpkg.com/@angular/router/-/router-8.0.0-beta.9.tgz#29197556d779318edd710b0d2935da35131ceacc"
189+
integrity sha512-+6vLGw7Lwgrrs+UXoqM/6KDGFVOckkJaxtpIQfLh7mnHyJ4bM6d/0JxaNGQOye3CUlk32C5MsG7dt3ldL6V2Ig==
190190
dependencies:
191191
tslib "^1.9.0"
192192

193-
"@angular/[email protected].6":
194-
version "8.0.0-beta.6"
195-
resolved "https://registry.yarnpkg.com/@angular/upgrade/-/upgrade-8.0.0-beta.6.tgz#b0ff5d0a38da440cc03a811f78dd9e5e6fae52ff"
196-
integrity sha512-w8XdLOZ+2jJpZqiNgJTFiCXl85Ai6gJXWhAukqHmLHUu/0YyZlCPaUrGNfHV+pjitORXL4ugZBEtXhQbqpGFhA==
193+
"@angular/[email protected].9":
194+
version "8.0.0-beta.9"
195+
resolved "https://registry.yarnpkg.com/@angular/upgrade/-/upgrade-8.0.0-beta.9.tgz#cd908bfb0c66ed1cbc0a18c15dd1a7f2aa4e3e28"
196+
integrity sha512-iyAPrLTYaf/yWUSSr91071ferialBxPJGQSsGE2MY3JdVJeaBFcwVmdQg/BT/HTxrLWO8Zd8ZB5vIEb2nbs3AQ==
197197
dependencies:
198198
tslib "^1.9.0"
199199

@@ -326,10 +326,10 @@
326326
dependencies:
327327
jasmine "~3.3.1"
328328

329-
"@bazel/karma@0.26.0":
330-
version "0.26.0"
331-
resolved "https://registry.yarnpkg.com/@bazel/karma/-/karma-0.26.0.tgz#6ad796686f5775df33a96fa5ef3df76a66aed3b2"
332-
integrity sha512-yZv0fgAjVrfrM0ld8e+wNaPIpYCpwBzVQi2GUErsKStUZXPUUofpBwBjlYsdY1Osn5/FmAF9e6xDkk1JWn/wSg==
329+
"@bazel/karma@0.27.8":
330+
version "0.27.8"
331+
resolved "https://registry.yarnpkg.com/@bazel/karma/-/karma-0.27.8.tgz#e9c4ef4190b2da3c23b01bc7b79830c3985cfb1f"
332+
integrity sha512-H6TDIUcP+nW4dvjQeCINAyGLMnEV45maAM0HxModAe0cKfVxBpZrVKwG6ZuKChvQWY2nLDtN3C9K/GGISxP7hg==
333333
dependencies:
334334
jasmine-core "2.8.0"
335335
karma "^4.0.0"
@@ -343,12 +343,11 @@
343343
semver "5.6.0"
344344
tmp "0.0.33"
345345

346-
"@bazel/typescript@0.26.0":
347-
version "0.26.0"
348-
resolved "https://registry.yarnpkg.com/@bazel/typescript/-/typescript-0.26.0.tgz#c06139d76c8b9d3a3ed98a721b776fedb4b11c82"
349-
integrity sha512-dh/Y/SZzmeChsLap8FVHYl0FuaeLh/6t9WBVhm5nOgyVrqfEyVpNzy4W20E4NqnmJY2/PqmD5qncf+Oo1q9h1A==
346+
"@bazel/typescript@0.27.8":
347+
version "0.27.8"
348+
resolved "https://registry.yarnpkg.com/@bazel/typescript/-/typescript-0.27.8.tgz#b9a566e4a95c0425b52961e9e899b59c7b22efcf"
349+
integrity sha512-beApzTtgm+lKrhQf5OgPk1amGfi5PJ1DCVVWYbNsbJP/Joi+NgCrgykG55NbaJIzEc+6IQoh8y0QUVMYRt562Q==
350350
dependencies:
351-
jasmine-core "2.8.0"
352351
protobufjs "5.0.3"
353352
semver "5.6.0"
354353
source-map-support "0.5.9"
@@ -3212,10 +3211,10 @@ domhandler@^2.3.0:
32123211
dependencies:
32133212
domelementtype "1"
32143213

3215-
domino@^2.1.0:
3216-
version "2.1.1"
3217-
resolved "https://registry.yarnpkg.com/domino/-/domino-2.1.1.tgz#cd5c639940db72bb7cde1cdb5beea466a4113136"
3218-
integrity sha512-fqoTi6oQ881wYRENIEmz78hKVoc3X9HqVpklo419yxzebys6dtU5c83iVh3UYvvexPFdAuwlDYCsUM9//CrMMg==
3214+
domino@^2.1.2:
3215+
version "2.1.3"
3216+
resolved "https://registry.yarnpkg.com/domino/-/domino-2.1.3.tgz#0ca1ad02cbd316ebe2e99e0ac9fb0010407d4601"
3217+
integrity sha512-EwjTbUv1Q/RLQOdn9k7ClHutrQcWGsfXaRQNOnM/KgK4xDBoLFEcIRFuBSxAx13Vfa63X029gXYrNFrSy+DOSg==
32193218

32203219
domutils@^1.5.1:
32213220
version "1.7.0"

0 commit comments

Comments
 (0)