load("@bazel_tools//tools/build_defs/pkg:pkg.bzl", "pkg_tar") load("@npm_bazel_jasmine//:index.bzl", "jasmine_node_test") load("@npm_bazel_typescript//:index.bzl", "ts_library") # @external_begin load("@build_bazel_rules_nodejs//:index.bzl", "pkg_npm") # @external_end # 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 package(default_visibility = ["//visibility:public"]) licenses(["notice"]) # @angular-devkit/schematics ts_library( name = "schematics", srcs = glob( include = ["src/**/*.ts"], exclude = [ "src/**/*_spec.ts", "src/**/*_spec_large.ts", "src/**/*_benchmark.ts", ], ), # The attribute below is needed in g3 to turn off strict typechecking # strict_checks = False, data = glob(["**/*.json"]), module_name = "@angular-devkit/schematics", module_root = "src/index.d.ts", deps = [ "//packages/angular_devkit/core", "//packages/angular_devkit/core/node", # TODO: get rid of this for 6.0 "@npm//@types/node", "@npm//rxjs", ], ) ts_library( name = "schematics_test_lib", testonly = True, srcs = glob( include = [ "src/**/*_spec.ts", "src/**/*_spec_large.ts", ], ), # @external_begin tsconfig = "//:tsconfig-test.json", # @external_end deps = [ ":schematics", "//packages/angular_devkit/core", "//packages/angular_devkit/core/node", "//packages/angular_devkit/schematics/testing", "@npm//@types/jasmine", "@npm//@types/node", "@npm//rxjs", ], ) jasmine_node_test( name = "schematics_test", srcs = [":schematics_test_lib"], deps = [ "@npm//jasmine", "@npm//source-map", ], ) # @external_begin pkg_npm( name = "npm_package", deps = [ ":schematics", "//packages/angular_devkit/schematics/tasks", "//packages/angular_devkit/schematics/testing", "//packages/angular_devkit/schematics/tools", ], ) pkg_tar( name = "npm_package_archive", srcs = [":npm_package"], extension = "tar.gz", strip_prefix = "./npm_package", tags = ["manual"], ) # @external_end