Skip to content

Commit

Permalink
build: update jasmine_node_test rules to come from npm
Browse files Browse the repository at this point in the history
  • Loading branch information
alexeagle committed Apr 22, 2019
1 parent 1d42b2d commit a197615
Show file tree
Hide file tree
Showing 11 changed files with 31 additions and 14 deletions.
13 changes: 10 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,15 @@
# If you change the cache key prefix, also sync the restore_cache fallback to match.
# Keep the static part of the cache key as prefix to enable correct fallbacks.
# See https://circleci.com/docs/2.0/caching/#restoring-cache for how prefixes work in CircleCI.
var_1: &docker_image circleci/node:10.12
var_2: &cache_key angular_devkit-0.10.0-{{ checksum "yarn.lock" }}
var_1: &default_docker_image circleci/node:10.12
var_2: &browsers_docker_image circleci/node:10.12-browsers
var_3: &cache_key angular_devkit-0.10.0-{{ checksum "yarn.lock" }}

# Settings common to each job
anchor_1: &defaults
working_directory: ~/ng
docker:
- image: *docker_image
- image: *default_docker_image

# After checkout, rebase on top of target branch.
anchor_2: &post_checkout
Expand Down Expand Up @@ -89,6 +90,8 @@ jobs:

test-large:
<<: *defaults
docker:
- image: *browsers_docker_image
resource_class: large
parallelism: 4
steps:
Expand All @@ -98,6 +101,8 @@ jobs:

e2e-cli:
<<: *defaults
docker:
- image: *browsers_docker_image
environment:
BASH_ENV: ~/.profile
NPM_CONFIG_PREFIX: ~/.npm-global
Expand All @@ -112,6 +117,8 @@ jobs:

e2e-cli-ivy:
<<: *defaults
docker:
- image: *browsers_docker_image
environment:
BASH_ENV: ~/.profile
NPM_CONFIG_PREFIX: ~/.npm-global
Expand Down
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@
"build-tsc": "tsc -p tsconfig.json",
"fix": "npm run admin -- lint --fix",
"lint": "npm run admin -- lint",
"prebuildifier": "bazel build --noshow_progress @com_github_bazelbuild_buildtools//buildifier",
"buildifier": "find . -type f \\( -name BUILD -or -name BUILD.bazel \\) ! -path \"*/node_modules/*\" | xargs $(bazel info bazel-bin)/external/com_github_bazelbuild_buildtools/buildifier/buildifier",
"templates": "node ./bin/devkit-admin templates",
"test": "node ./bin/devkit-admin test",
"test-large": "node ./bin/devkit-admin test --large --spec-reporter",
Expand Down Expand Up @@ -86,6 +84,7 @@
"@angular/compiler-cli": "^8.0.0-beta.12",
"@bazel/bazel": "0.24.1",
"@bazel/buildifier": "^0.22.0",
"@bazel/jasmine": "~0.26.0",
"@bazel/karma": "~0.26.0",
"@bazel/typescript": "~0.26.0",
"@ngtools/json-schema": "^1.1.0",
Expand Down
3 changes: 2 additions & 1 deletion packages/angular_devkit/benchmark/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@

licenses(["notice"]) # MIT

load("@npm_bazel_jasmine//:index.bzl", "jasmine_node_test")
load("@npm_bazel_typescript//:defs.bzl", "ts_library")
load("@build_bazel_rules_nodejs//:defs.bzl", "jasmine_node_test", "npm_package")
load("@build_bazel_rules_nodejs//:defs.bzl", "npm_package")

package(default_visibility = ["//visibility:public"])

Expand Down
3 changes: 2 additions & 1 deletion packages/angular_devkit/build_optimizer/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@

licenses(["notice"]) # MIT

load("@npm_bazel_jasmine//:index.bzl", "jasmine_node_test")
load("@npm_bazel_typescript//:defs.bzl", "ts_library")
load("@build_bazel_rules_nodejs//:defs.bzl", "jasmine_node_test", "npm_package")
load("@build_bazel_rules_nodejs//:defs.bzl", "npm_package")

package(default_visibility = ["//visibility:public"])

Expand Down
3 changes: 2 additions & 1 deletion packages/angular_devkit/core/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@
# found in the LICENSE file at https://angular.io/license
package(default_visibility = ["//visibility:public"])

load("@npm_bazel_jasmine//:index.bzl", "jasmine_node_test")
load("@npm_bazel_typescript//:defs.bzl", "ts_library")
load("@build_bazel_rules_nodejs//:defs.bzl", "jasmine_node_test", "npm_package")
load("@build_bazel_rules_nodejs//:defs.bzl", "npm_package")

licenses(["notice"]) # MIT License

Expand Down
3 changes: 2 additions & 1 deletion packages/angular_devkit/schematics/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@
# found in the LICENSE file at https://angular.io/license
package(default_visibility = ["//visibility:public"])

load("@npm_bazel_jasmine//:index.bzl", "jasmine_node_test")
load("@npm_bazel_typescript//:defs.bzl", "ts_library")
load("@build_bazel_rules_nodejs//:defs.bzl", "jasmine_node_test", "npm_package")
load("@build_bazel_rules_nodejs//:defs.bzl", "npm_package")

licenses(["notice"]) # MIT License

Expand Down
2 changes: 1 addition & 1 deletion packages/schematics/angular/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@

licenses(["notice"]) # MIT

load("@npm_bazel_jasmine//:index.bzl", "jasmine_node_test")
load("@npm_bazel_typescript//:defs.bzl", "ts_library")
load("@build_bazel_rules_nodejs//:defs.bzl", "jasmine_node_test")
load("//tools:ts_json_schema.bzl", "ts_json_schema")

package(default_visibility = ["//visibility:public"])
Expand Down
2 changes: 0 additions & 2 deletions packages/schematics/schematics/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
licenses(["notice"]) # MIT

load("@npm_bazel_typescript//:defs.bzl", "ts_library")

# load("@build_bazel_rules_nodejs//:defs.bzl", "jasmine_node_test")
load("//tools:ts_json_schema.bzl", "ts_json_schema")

package(default_visibility = ["//visibility:public"])
Expand Down
3 changes: 2 additions & 1 deletion packages/schematics/update/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@

licenses(["notice"]) # MIT

load("@npm_bazel_jasmine//:index.bzl", "jasmine_node_test")
load("@npm_bazel_typescript//:defs.bzl", "ts_library")
load("@build_bazel_rules_nodejs//:defs.bzl", "jasmine_node_test")
load("//tools:ts_json_schema.bzl", "ts_json_schema")

package(default_visibility = ["//visibility:public"])
Expand All @@ -30,6 +30,7 @@ ts_library(
"@npm//@types/node",
"@npm//@types/semver",
"@npm//rxjs",
"@npm//semver",
],
)

Expand Down
1 change: 1 addition & 0 deletions scripts/validate-licenses.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ const ignoredPackages = [
'@bazel/[email protected]',
'@bazel/[email protected]',
'@bazel/[email protected]',
'@bazel/[email protected]',

// * Other
'[email protected]', // (OFL-1.1 AND MIT)
Expand Down
9 changes: 8 additions & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,13 @@
"@bazel/buildifier-darwin_x64" "0.22.0"
"@bazel/buildifier-linux_x64" "0.22.0"

"@bazel/jasmine@~0.26.0":
version "0.26.0"
resolved "https://registry.yarnpkg.com/@bazel/jasmine/-/jasmine-0.26.0.tgz#f7aed169b057b5af547d2573657b394ecbda0b5d"
integrity sha512-lkvzPHdbSEe1zitnV1hIBwodriXqp/ClHSZQJ5Y486UaLQ6Sm7k7gV2phOwtg7LqLVZnElZDmFLSI0/O1UYYyQ==
dependencies:
jasmine "~3.3.1"

"@bazel/karma@~0.26.0":
version "0.26.0"
resolved "https://registry.yarnpkg.com/@bazel/karma/-/karma-0.26.0.tgz#6ad796686f5775df33a96fa5ef3df76a66aed3b2"
Expand Down Expand Up @@ -5234,7 +5241,7 @@ [email protected]:
glob "^7.0.6"
jasmine-core "~2.8.0"

jasmine@^3.3.1:
jasmine@^3.3.1, jasmine@~3.3.1:
version "3.3.1"
resolved "https://registry.yarnpkg.com/jasmine/-/jasmine-3.3.1.tgz#d61bb1dd8888859bd11ea83074a78ee13d949905"
integrity sha512-/vU3/H7U56XsxIXHwgEuWpCgQ0bRi2iiZeUpx7Nqo8n1TpoDHfZhkPIc7CO8I4pnMzYsi3XaSZEiy8cnTfujng==
Expand Down

0 comments on commit a197615

Please sign in to comment.