2018-06-25 14:22:23 -04:00
|
|
|
# Copyright Google Inc. All Rights Reserved.
|
|
|
|
#
|
|
|
|
# Use of this source code is governed by an MIT-style license that can be
|
|
|
|
# found in the LICENSE file at https://angular.io/license
|
|
|
|
|
|
|
|
"Install angular source dependencies"
|
|
|
|
|
|
|
|
load("@build_bazel_rules_nodejs//:defs.bzl", "yarn_install")
|
|
|
|
load("@angular//packages/bazel/src:ng_setup_workspace.bzl", _ng_setup_workspace = "ng_setup_workspace")
|
|
|
|
|
|
|
|
def ng_setup_workspace():
|
2018-08-07 19:15:45 -04:00
|
|
|
"""This repository rule should be called from your WORKSPACE file.
|
2018-06-25 14:22:23 -04:00
|
|
|
|
2018-08-07 19:15:45 -04:00
|
|
|
It creates some additional Bazel external repositories that are used internally
|
|
|
|
to build angular
|
|
|
|
"""
|
|
|
|
yarn_install(
|
2018-10-04 16:14:14 -04:00
|
|
|
name = "ngdeps",
|
2018-08-07 19:15:45 -04:00
|
|
|
package_json = "@angular//:package.json",
|
|
|
|
yarn_lock = "@angular//:yarn.lock",
|
|
|
|
data = ["@angular//:tools/yarn/check-yarn.js", "@angular//:tools/postinstall-patches.js"],
|
|
|
|
)
|
2018-06-25 14:22:23 -04:00
|
|
|
|
2018-08-27 16:23:13 -04:00
|
|
|
yarn_install(
|
2018-10-18 12:58:38 -04:00
|
|
|
name = "ts-api-guardian_deps",
|
2018-08-28 14:04:21 -04:00
|
|
|
package_json = "@angular//tools/ts-api-guardian:package.json",
|
|
|
|
yarn_lock = "@angular//tools/ts-api-guardian:yarn.lock",
|
2018-08-27 16:23:13 -04:00
|
|
|
)
|
|
|
|
|
|
|
|
yarn_install(
|
|
|
|
name = "http-server_runtime_deps",
|
2018-08-28 14:04:21 -04:00
|
|
|
package_json = "@angular//tools/http-server:package.json",
|
|
|
|
yarn_lock = "@angular//tools/http-server:yarn.lock",
|
2018-08-27 16:23:13 -04:00
|
|
|
)
|
|
|
|
|
2018-08-07 19:15:45 -04:00
|
|
|
_ng_setup_workspace()
|