| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent b7a099d commit 361109d
71 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,3 +1,4 @@ | |||
| 1 | + .git | ||
| 1 | 2 | node_modules | |
| 2 | 3 | dist | |
| 3 | 4 | aio/content | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -5,9 +5,7 @@ | |||
| 5 | 5 | # Make compilation fast, by keeping a few copies of the compilers | |
| 6 | 6 | # running as daemons, and cache SourceFile AST's to reduce parse time. | |
| 7 | 7 | build --strategy=AngularTemplateCompile=worker | |
| 8 | - # TODO(alexeagle): re-enable after fixing worker instability with rxjs typings | ||
| 9 | - # build --strategy=TypeScriptCompile=worker | ||
| 10 | - build --strategy=TypeScriptCompile=standalone | ||
| 8 | + build --strategy=TypeScriptCompile=worker | ||
| 11 | 9 | ||
| 12 | 10 | # Enable debugging tests with --config=debug | |
| 13 | 11 | test:debug --test_arg=--node_options=--inspect-brk --test_output=streamed --test_strategy=exclusive --test_timeout=9999 --nocache_test_results | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -18,15 +18,15 @@ filegroup( | |||
| 18 | 18 | name = "web_test_bootstrap_scripts", | |
| 19 | 19 | # do not sort | |
| 20 | 20 | srcs = [ | |
| 21 | - "@npm//node_modules/core-js:client/core.js", | ||
| 22 | - "@npm//node_modules/zone.js:dist/zone.js", | ||
| 23 | - "@npm//node_modules/zone.js:dist/zone-testing.js", | ||
| 24 | - "@npm//node_modules/zone.js:dist/task-tracking.js", | ||
| 21 | + "@npm//:node_modules/core-js/client/core.js", | ||
| 22 | + "@npm//:node_modules/zone.js/dist/zone.js", | ||
| 23 | + "@npm//:node_modules/zone.js/dist/zone-testing.js", | ||
| 24 | + "@npm//:node_modules/zone.js/dist/task-tracking.js", | ||
| 25 | 25 | "//:test-events.js", | |
| 26 | 26 | "//:shims_for_IE.js", | |
| 27 | 27 | # Including systemjs because it defines `__eval`, which produces correct stack traces. | |
| 28 | - "@npm//node_modules/systemjs:dist/system.src.js", | ||
| 29 | - "@npm//node_modules/reflect-metadata:Reflect.js", | ||
| 28 | + "@npm//:node_modules/systemjs/dist/system.src.js", | ||
| 29 | + "@npm//:node_modules/reflect-metadata/Reflect.js", | ||
| 30 | 30 | ], | |
| 31 | 31 | ) | |
| 32 | 32 | ||
@@ -35,15 +35,15 @@ filegroup( | |||
| 35 | 35 | srcs = [ | |
| 36 | 36 | # We also declare the unminfied AngularJS files since these can be used for | |
| 37 | 37 | # local debugging (e.g. see: packages/upgrade/test/common/test_helpers.ts) | |
| 38 | - "@npm//node_modules/angular:angular.js", | ||
| 39 | - "@npm//node_modules/angular:angular.min.js", | ||
| 40 | - "@npm//node_modules/angular-1.5:angular.js", | ||
| 41 | - "@npm//node_modules/angular-1.5:angular.min.js", | ||
| 42 | - "@npm//node_modules/angular-1.6:angular.js", | ||
| 43 | - "@npm//node_modules/angular-1.6:angular.min.js", | ||
| 44 | - "@npm//node_modules/angular-mocks:angular-mocks.js", | ||
| 45 | - "@npm//node_modules/angular-mocks-1.5:angular-mocks.js", | ||
| 46 | - "@npm//node_modules/angular-mocks-1.6:angular-mocks.js", | ||
| 38 | + "@npm//:node_modules/angular/angular.js", | ||
| 39 | + "@npm//:node_modules/angular/angular.min.js", | ||
| 40 | + "@npm//:node_modules/angular-1.5/angular.js", | ||
| 41 | + "@npm//:node_modules/angular-1.5/angular.min.js", | ||
| 42 | + "@npm//:node_modules/angular-1.6/angular.js", | ||
| 43 | + "@npm//:node_modules/angular-1.6/angular.min.js", | ||
| 44 | + "@npm//:node_modules/angular-mocks/angular-mocks.js", | ||
| 45 | + "@npm//:node_modules/angular-mocks-1.5/angular-mocks.js", | ||
| 46 | + "@npm//:node_modules/angular-mocks-1.6/angular-mocks.js", | ||
| 47 | 47 | ], | |
| 48 | 48 | ) | |
| 49 | 49 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -18,8 +18,8 @@ load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") | |||
| 18 | 18 | # Fetch rules_nodejs so we can install our npm dependencies | |
| 19 | 19 | http_archive( | |
| 20 | 20 | name = "build_bazel_rules_nodejs", | |
| 21 | - sha256 = "e04a82a72146bfbca2d0575947daa60fda1878c8d3a3afe868a8ec39a6b968bb", | ||
| 22 | - urls = ["https://github.com/bazelbuild/rules_nodejs/releases/download/0.31.1/rules_nodejs-0.31.1.tar.gz"], | ||
| 21 | + sha256 = "6d4edbf28ff6720aedf5f97f9b9a7679401bf7fca9d14a0fff80f644a99992b4", | ||
| 22 | + urls = ["https://github.com/bazelbuild/rules_nodejs/releases/download/0.32.2/rules_nodejs-0.32.2.tar.gz"], | ||
| 23 | 23 | ) | |
| 24 | 24 | ||
| 25 | 25 | # Check the bazel version and download npm dependencies | |
@@ -47,7 +47,10 @@ Try running `yarn bazel` instead. | |||
| 47 | 47 | # - 0.27.12 Adds NodeModuleSources provider for transtive npm deps support | |
| 48 | 48 | # - 0.30.0 yarn_install now uses symlinked node_modules with new managed directories Bazel 0.26.0 feature | |
| 49 | 49 | # - 0.31.1 entry_point attribute of nodejs_binary & rollup_bundle is now a label | |
| 50 | - check_rules_nodejs_version(minimum_version_string = "0.31.1") | ||
| 50 | + # - 0.32.0 yarn_install and npm_install no longer puts build files under symlinked node_modules | ||
| 51 | + # - 0.32.1 remove override of @bazel/tsetse & exclude typescript lib declarations in node_module_library transitive_declarations | ||
| 52 | + # - 0.32.2 resolves bug in @bazel/hide-bazel-files postinstall step | ||
| 53 | + check_rules_nodejs_version(minimum_version_string = "0.32.2") | ||
| 51 | 54 | ||
| 52 | 55 | # Setup the Node.js toolchain | |
| 53 | 56 | node_repositories( | |
@@ -71,19 +74,7 @@ node_repositories( | |||
| 71 | 74 | ||
| 72 | 75 | yarn_install( | |
| 73 | 76 | name = "npm", | |
| 74 | - data = [ | ||
| 75 | - "//:tools/npm/@angular_bazel/index.js", | ||
| 76 | - "//:tools/npm/@angular_bazel/package.json", | ||
| 77 | - "//:tools/postinstall-patches.js", | ||
| 78 | - "//:tools/yarn/check-yarn.js", | ||
| 79 | - ], | ||
| 80 | 77 | package_json = "//:package.json", | |
| 81 | - # Don't install devDependencies, they are large and not used under Bazel | ||
| 82 | - prod_only = True, | ||
| 83 | - # Temporarily disable node_modules symlinking until the fix for | ||
| 84 | - # https://github.com/bazelbuild/bazel/issues/8487 makes it into a | ||
| 85 | - # future Bazel release | ||
| 86 | - symlink_node_modules = False, | ||
| 87 | 78 | yarn_lock = "//:yarn.lock", | |
| 88 | 79 | ) | |
| 89 | 80 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -20,7 +20,3 @@ build --symlink_prefix=/ | |||
| 20 | 20 | # Turn on managed directories feature in Bazel | |
| 21 | 21 | # This allows us to avoid installing a second copy of node_modules | |
| 22 | 22 | common --experimental_allow_incremental_repository_updates | |
| 23 | - | ||
| 24 | - # Temporary flag to for using nodejs rules 0.31.1 with Bazel 0.27.0 | ||
| 25 | - # TODO(gregmagolan): remove after updating to next nodejs rules release | ||
| 26 | - common --incompatible_depset_is_not_iterable=false | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -8,16 +8,16 @@ load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") | |||
| 8 | 8 | # Fetch rules_nodejs so we can install our npm dependencies | |
| 9 | 9 | http_archive( | |
| 10 | 10 | name = "build_bazel_rules_nodejs", | |
| 11 | - sha256 = "e04a82a72146bfbca2d0575947daa60fda1878c8d3a3afe868a8ec39a6b968bb", | ||
| 12 | - urls = ["https://github.com/bazelbuild/rules_nodejs/releases/download/0.31.1/rules_nodejs-0.31.1.tar.gz"], | ||
| 11 | + sha256 = "6d4edbf28ff6720aedf5f97f9b9a7679401bf7fca9d14a0fff80f644a99992b4", | ||
| 12 | + urls = ["https://github.com/bazelbuild/rules_nodejs/releases/download/0.32.2/rules_nodejs-0.32.2.tar.gz"], | ||
| 13 | 13 | ) | |
| 14 | 14 | ||
| 15 | 15 | # Fetch sass rules for compiling sass files | |
| 16 | - # TODO: change back to upstream release after https://github.com/bazelbuild/rules_sass/pull/87 merged and released | ||
| 17 | 16 | http_archive( | |
| 18 | 17 | name = "io_bazel_rules_sass", | |
| 19 | - strip_prefix = "rules_sass-9862dfc96a4a1f66fe171ef5e043b29853e8445b", | ||
| 20 | - url = "https://github.com/manekinekko/rules_sass/archive/9862dfc96a4a1f66fe171ef5e043b29853e8445b.zip", | ||
| 18 | + sha256 = "4f05239080175a3f4efa8982d2b7775892d656bb47e8cf56914d5f9441fb5ea6", | ||
| 19 | + strip_prefix = "rules_sass-86ca977cf2a8ed481859f83a286e164d07335116", | ||
| 20 | + url = "https://github.com/bazelbuild/rules_sass/archive/86ca977cf2a8ed481859f83a286e164d07335116.zip", | ||
| 21 | 21 | ) | |
| 22 | 22 | ||
| 23 | 23 | # Check the bazel version and download npm dependencies | |
@@ -39,7 +39,14 @@ Try running `yarn bazel` instead. | |||
| 39 | 39 | ||
| 40 | 40 | # Setup the Node.js toolchain | |
| 41 | 41 | node_repositories( | |
| 42 | - node_version = "10.9.0", | ||
| 42 | + # Use same node version as root angular WORKSPACE since | ||
| 43 | + # we share node_module packages and some require node >= 10.15.0 | ||
| 44 | + node_repositories = { | ||
| 45 | + "10.16.0-darwin_amd64": ("node-v10.16.0-darwin-x64.tar.gz", "node-v10.16.0-darwin-x64", "6c009df1b724026d84ae9a838c5b382662e30f6c5563a0995532f2bece39fa9c"), | ||
| 46 | + "10.16.0-linux_amd64": ("node-v10.16.0-linux-x64.tar.xz", "node-v10.16.0-linux-x64", "1827f5b99084740234de0c506f4dd2202a696ed60f76059696747c34339b9d48"), | ||
| 47 | + "10.16.0-windows_amd64": ("node-v10.16.0-win-x64.zip", "node-v10.16.0-win-x64", "aa22cb357f0fb54ccbc06b19b60e37eefea5d7dd9940912675d3ed988bf9a059"), | ||
| 48 | + }, | ||
| 49 | + node_version = "10.16.0", | ||
| 43 | 50 | yarn_version = "1.12.1", | |
| 44 | 51 | ) | |
| 45 | 52 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -23,16 +23,16 @@ | |||
| 23 | 23 | "@angular/compiler": "file:../../dist/packages-dist/compiler", | |
| 24 | 24 | "@angular/compiler-cli": "file:../../dist/packages-dist/compiler-cli", | |
| 25 | 25 | "@bazel/bazel": "file:../../node_modules/@bazel/bazel", | |
| 26 | - "@bazel/karma": "0.30.1", | ||
| 27 | - "@bazel/typescript": "0.30.1", | ||
| 26 | + "@bazel/hide-bazel-files": "0.32.2", | ||
| 27 | + "@bazel/karma": "0.32.2", | ||
| 28 | + "@bazel/typescript": "0.32.2", | ||
| 28 | 29 | "@types/jasmine": "2.8.8", | |
| 29 | 30 | "@types/source-map": "0.5.1", | |
| 30 | 31 | "protractor": "5.1.2", | |
| 31 | 32 | "typescript": "3.4.2" | |
| 32 | 33 | }, | |
| 33 | 34 | "scripts": { | |
| 34 | 35 | "test": "bazel build ... --noshow_progress && bazel test ...", | |
| 35 | - "postinstall": "ngc -p ./angular-metadata.tsconfig.json", | ||
| 36 | - "//": "TODO(gregmagolan): figure out how to keep dependencies here up to date with the root package.json" | ||
| 36 | + "postinstall": "ngc -p ./angular-metadata.tsconfig.json" | ||
| 37 | 37 | } | |
| 38 | 38 | } | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -26,7 +26,7 @@ filegroup( | |||
| 26 | 26 | name = "rxjs_umd_modules", | |
| 27 | 27 | srcs = [ | |
| 28 | 28 | # do not sort | |
| 29 | - "@npm//node_modules/rxjs:bundles/rxjs.umd.js", | ||
| 29 | + "@npm//:node_modules/rxjs/bundles/rxjs.umd.js", | ||
| 30 | 30 | ":rxjs_shims.js", | |
| 31 | 31 | ], | |
| 32 | 32 | ) | |
@@ -40,7 +40,7 @@ ts_devserver( | |||
| 40 | 40 | ], | |
| 41 | 41 | serving_path = "/bundle.min.js", | |
| 42 | 42 | static_files = [ | |
| 43 | - "@npm//node_modules/zone.js:dist/zone.min.js", | ||
| 43 | + "@npm//:node_modules/zone.js/dist/zone.min.js", | ||
| 44 | 44 | ], | |
| 45 | 45 | deps = ["//src"], | |
| 46 | 46 | ) | |
@@ -64,7 +64,7 @@ web_package( | |||
| 64 | 64 | name = "prodapp", | |
| 65 | 65 | assets = [ | |
| 66 | 66 | # do not sort | |
| 67 | - "@npm//node_modules/zone.js:dist/zone.min.js", | ||
| 67 | + "@npm//:node_modules/zone.js/dist/zone.min.js", | ||
| 68 | 68 | ":bundle.min.js", | |
| 69 | 69 | ], | |
| 70 | 70 | data = [ | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -46,8 +46,8 @@ ts_library( | |||
| 46 | 46 | ts_web_test_suite( | |
| 47 | 47 | name = "test", | |
| 48 | 48 | bootstrap = [ | |
| 49 | - "@npm//node_modules/zone.js:dist/zone-testing-bundle.js", | ||
| 50 | - "@npm//node_modules/reflect-metadata:Reflect.js", | ||
| 49 | + "@npm//:node_modules/zone.js/dist/zone-testing-bundle.js", | ||
| 50 | + "@npm//:node_modules/reflect-metadata/Reflect.js", | ||
| 51 | 51 | ], | |
| 52 | 52 | browsers = [ | |
| 53 | 53 | "@io_bazel_rules_webtesting//browsers:chromium-local", | |
| Back | FazBrowse Home | New Git URL |
0 commit comments