mirror of
https://github.com/angular/angular-cli.git
synced 2025-05-17 02:54:21 +08:00
52 lines
1.3 KiB
Python
52 lines
1.3 KiB
Python
load("//tools:defaults.bzl", "pkg_npm")
|
|
load("//tools:interop.bzl", "ts_project")
|
|
|
|
# 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.dev/license
|
|
licenses(["notice"])
|
|
|
|
package(default_visibility = ["//visibility:public"])
|
|
|
|
ts_project(
|
|
name = "architect_cli",
|
|
srcs = [
|
|
"bin/architect.ts",
|
|
] + glob(["src/**/*.ts"]),
|
|
interop_deps = [
|
|
"//packages/angular_devkit/core",
|
|
"//packages/angular_devkit/core/node",
|
|
],
|
|
module_name = "@angular-devkit/architect-cli",
|
|
deps = [
|
|
"//:root_modules/@types/node",
|
|
"//:root_modules/@types/progress",
|
|
"//:root_modules/@types/yargs-parser",
|
|
"//:root_modules/ansi-colors",
|
|
"//packages/angular_devkit/architect:architect_rjs",
|
|
"//packages/angular_devkit/architect/node:node_rjs",
|
|
],
|
|
)
|
|
|
|
genrule(
|
|
name = "license",
|
|
srcs = ["//:LICENSE"],
|
|
outs = ["LICENSE"],
|
|
cmd = "cp $(execpath //:LICENSE) $@",
|
|
)
|
|
|
|
pkg_npm(
|
|
name = "npm_package",
|
|
pkg_deps = [
|
|
"//packages/angular_devkit/architect:package.json",
|
|
"//packages/angular_devkit/core:package.json",
|
|
],
|
|
tags = ["release-package"],
|
|
deps = [
|
|
":README.md",
|
|
":architect_cli",
|
|
":license",
|
|
],
|
|
)
|