refactor(compiler-cli): move ngc-wrapped to packages/bazel (#18733)

See design: https://goo.gl/rAeYWx

PR Close #18733
This commit is contained in:
Alex Eagle
2017-08-16 09:02:20 -07:00
committed by Miško Hevery
parent a80ecf6a77
commit 9ffa490d3f
14 changed files with 209 additions and 11 deletions

21
packages/bazel/WORKSPACE Normal file
View File

@ -0,0 +1,21 @@
# By convention, the name should "describe the project in reverse-DNS form"
# https://docs.bazel.build/versions/master/be/functions.html#workspace
# But if we use "io_angular" then the loads used in BUILD files will
# be unfamiliar to Angular users who import from '@angular/pkg' in
# TypeScript files. We want to reduce the impedance between the Bazel
# and node naming schemes.
# We take the name "angular" so that users can write
# load("@angular//:index.bzl", "ng_module")
workspace(name = "angular")
load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository")
git_repository(
name = "build_bazel_rules_typescript",
remote = "https://github.com/bazelbuild/rules_typescript.git",
tag = "0.0.5",
)
load("@build_bazel_rules_typescript//:defs.bzl", "node_repositories")
node_repositories(package_json = ":package.json")