Skip to content
This repository was archived by the owner on Nov 22, 2024. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 16 additions & 17 deletions BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,21 @@ package(default_visibility = ["//visibility:public"])

exports_files(["tsconfig.json"])

# Provides the npm-installed dependencies to Bazel actions.
filegroup(
load("@build_bazel_rules_nodejs//:defs.bzl", "node_modules_filegroup")

node_modules_filegroup(
name = "node_modules",
srcs = glob(
["node_modules/**/*"],
# Exclude directories that commonly contain filenames which are
# illegal bazel labels
exclude = [
# e.g. node_modules/adm-zip/test/assets/attributes_test/New folder/hidden.txt
"node_modules/**/test/**",
# e.g. node_modules/xpath/docs/function resolvers.md
"node_modules/**/docs/**",
],
),
# Allow this targets to be referenced by anyone.
# Other repositories running nodejs binaries will need to
# reference our installed node_modules directory.
visibility = ["//visibility:public"],
packages = [
"express",
"hapi",
"jasmine",
"rxjs",
"tsickle",
"tslib",
"tsutils",
"typescript",
"zone.js",
"@angular",
"@types",
],
)
26 changes: 19 additions & 7 deletions modules/aspnetcore-engine/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,20 +1,32 @@
load("//tools:defaults.bzl", "ts_library", "ng_module", "ng_package")

package(default_visibility = ["//visibility:public"])

load("@build_bazel_rules_nodejs//:defs.bzl", "jasmine_node_test")

ng_module(
name = "aspnetcore-engine_module",
name = "aspnetcore-engine",
srcs = glob([
"*.ts",
"src/**/*.ts",
]),
deps = ["@rxjs"],
module_name = "@nguniversal/aspnetcore-engine",
deps = [
"//modules/aspnetcore-engine/tokens",
"@rxjs",
],
)

ng_package(
name = "@nguniversal/aspnetcore-engine",
srcs = [":package.json"],
entry_point = "index.js",
deps = [":aspnetcore-engine_module"],
name = "npm_package",
srcs = [
":package.json",
],
entry_point = "modules/aspnetcore-engine/index.js",
deps = [
":aspnetcore-engine",
"//modules/aspnetcore-engine/tokens",
],
)

ts_library(
Expand All @@ -24,7 +36,7 @@ ts_library(
"spec/**/*.spec.ts",
]),
deps = [
":aspnetcore-engine_module",
":aspnetcore-engine",
],
)

Expand Down
2 changes: 1 addition & 1 deletion modules/aspnetcore-engine/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
* 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
*/
export * from './public-api';
export * from './public_api';
13 changes: 6 additions & 7 deletions modules/aspnetcore-engine/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@
"name": "@nguniversal/aspnetcore-engine",
"version": "0.0.0-PLACEHOLDER",
"description": "ASP.NET Core Engine for running Server Angular Apps",
"main": "./bundles/aspnetcore-engine.umd.js",
"module": "./esm5/aspnetcore-engine.es5.js",
"es2015": "./esm2015/aspnetcore-engine.js",
"typings": "./aspnetcore-engine.d.ts",
"author": {
"name": "MarkPieszak",
"email": "mpieszak84@gmail.com",
Expand All @@ -21,9 +17,12 @@
"universal"
],
"peerDependencies": {
"@angular/common": "0.0.0-NG",
"@angular/core": "0.0.0-NG",
"rxjs": "^6.0.0-beta.1"
"@angular/common": "NG_VERSION",
"@angular/core": "NG_VERSION",
"rxjs": "RXJS_VERSION"
},
"ng-update": {
"packageGroup": "NG_UPDATE_PACKAGE_GROUP"
},
"repository": {
"type": "git",
Expand Down
13 changes: 13 additions & 0 deletions modules/aspnetcore-engine/tokens/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package(default_visibility = ["//visibility:public"])

load("//tools:defaults.bzl", "ts_library", "ng_module", "ng_package")

exports_files(["package.json"])

ng_module(
name = "tokens",
srcs = glob([
"*.ts",
]),
module_name = "@nguniversal/aspnetcore-engine/tokens",
)
2 changes: 1 addition & 1 deletion modules/aspnetcore-engine/tokens/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
* 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
*/
export * from './public-api';
export * from './public_api';
9 changes: 9 additions & 0 deletions modules/aspnetcore-engine/tokens/public_api.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
/**
* @license
* Copyright Google LLC 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
*/

export * from './tokens';
22 changes: 13 additions & 9 deletions modules/common/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,20 +1,24 @@
load("//tools:defaults.bzl", "ts_library", "ng_module", "ng_package")

package(default_visibility = ["//visibility:public"])

load("@build_bazel_rules_nodejs//:defs.bzl", "jasmine_node_test")

ng_module(
name = "common_module",
name = "common",
srcs = glob([
"*.ts",
"src/**/*.ts",
]),
module_name = "@nguniversal/common",
deps = [],
)

ng_package(
name = "@nguniversal/common",
name = "npm_package",
srcs = [":package.json"],
entry_point = "index.js",
deps = [":common_module"],
entry_point = "modules/common/index.js",
deps = [":common"],
)

ts_library(
Expand All @@ -24,11 +28,11 @@ ts_library(
"spec/**/*.spec.ts",
]),
deps = [
":common_module",
":common",
],
)

jasmine_node_test(
name = "unit_test",
srcs = [":unit_test_lib"],
)
# jasmine_node_test(
# name = "unit_test",
# srcs = [":unit_test_lib"],
# )
2 changes: 1 addition & 1 deletion modules/common/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
* 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
*/
export * from './public-api';
export * from './public_api';
11 changes: 5 additions & 6 deletions modules/common/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,17 @@
"name": "@nguniversal/common",
"version": "0.0.0-PLACEHOLDER",
"description": "Angular Universal common utilities",
"main": "./bundles/common.umd.js",
"module": "./esm5/common.es5.js",
"es2015": "./esm2015/common.js",
"typings": "./common.d.ts",
"license": "MIT",
"keywords": [
"ssr",
"universal"
],
"peerDependencies": {
"@angular/common": "0.0.0-NG",
"@angular/core": "0.0.0-NG"
"@angular/common": "NG_VERSION",
"@angular/core": "NG_VERSION"
},
"ng-update": {
"packageGroup": "NG_UPDATE_PACKAGE_GROUP"
},
"repository": {
"type": "git",
Expand Down
25 changes: 18 additions & 7 deletions modules/express-engine/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,20 +1,31 @@
load("//tools:defaults.bzl", "ts_library", "ng_module", "ng_package")

package(default_visibility = ["//visibility:public"])

load("@build_bazel_rules_nodejs//:defs.bzl", "jasmine_node_test")

ng_module(
name = "express-engine_module",
name = "express-engine",
srcs = glob([
"*.ts",
"src/**/*.ts",
]),
deps = ["@rxjs"],
module_name = "@nguniversal/express-engine",
deps = [
"//modules/express-engine/tokens",
],
)

ng_package(
name = "@nguniversal/express-engine",
srcs = [":package.json"],
entry_point = "index.js",
deps = [":express-engine_module"],
name = "npm_package",
srcs = [
":package.json",
],
entry_point = "modules/express-engine/index.js",
deps = [
":express-engine",
"//modules/express-engine/tokens",
],
)

ts_library(
Expand All @@ -24,7 +35,7 @@ ts_library(
"spec/**/*.spec.ts",
]),
deps = [
":express-engine_module",
":express-engine",
],
)

Expand Down
2 changes: 1 addition & 1 deletion modules/express-engine/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
* 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
*/
export * from './public-api';
export * from './public_api';
13 changes: 6 additions & 7 deletions modules/express-engine/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,21 @@
"name": "@nguniversal/express-engine",
"version": "0.0.0-PLACEHOLDER",
"description": "Express Engine for running Server Angular Apps",
"main": "./bundles/express-engine.umd.js",
"module": "./esm5/express-engine.es5.js",
"es2015": "./esm2015/express-engine.js",
"typings": "./express-engine.d.ts",
"license": "MIT",
"keywords": [
"express",
"ssr",
"universal"
],
"peerDependencies": {
"@angular/common": "0.0.0-NG",
"@angular/core": "0.0.0-NG",
"@angular/platform-server": "0.0.0-NG",
"@angular/common": "NG_VERSION",
"@angular/core": "NG_VERSION",
"@angular/platform-server": "NG_VERSION",
"express": "^4.15.2"
},
"ng-update": {
"packageGroup": "NG_UPDATE_PACKAGE_GROUP"
},
"repository": {
"type": "git",
"url": "https://github.com/angular/universal"
Expand Down
13 changes: 13 additions & 0 deletions modules/express-engine/tokens/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package(default_visibility = ["//visibility:public"])

load("//tools:defaults.bzl", "ts_library", "ng_module", "ng_package")

exports_files(["package.json"])

ng_module(
name = "tokens",
srcs = glob([
"*.ts",
]),
module_name = "@nguniversal/express-engine/tokens",
)
2 changes: 1 addition & 1 deletion modules/express-engine/tokens/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
* 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
*/
export * from './public-api';
export * from './public_api';
9 changes: 9 additions & 0 deletions modules/express-engine/tokens/public_api.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
/**
* @license
* Copyright Google LLC 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
*/

export * from './tokens';
25 changes: 18 additions & 7 deletions modules/hapi-engine/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,20 +1,31 @@
load("//tools:defaults.bzl", "ts_library", "ng_module", "ng_package")

package(default_visibility = ["//visibility:public"])

load("@build_bazel_rules_nodejs//:defs.bzl", "jasmine_node_test")

ng_module(
name = "hapi-engine_module",
name = "hapi-engine",
srcs = glob([
"*.ts",
"src/**/*.ts",
]),
deps = ["@rxjs"],
module_name = "@nguniversal/hapi-engine",
deps = [
"//modules/hapi-engine/tokens",
],
)

ng_package(
name = "@nguniversal/hapi-engine",
srcs = [":package.json"],
entry_point = "index.js",
deps = [":hapi-engine_module"],
name = "npm_package",
srcs = [
":package.json",
],
entry_point = "modules/hapi-engine/index.js",
deps = [
":hapi-engine",
"//modules/hapi-engine/tokens",
],
)

ts_library(
Expand All @@ -24,7 +35,7 @@ ts_library(
"spec/**/*.spec.ts",
]),
deps = [
":hapi-engine_module",
":hapi-engine",
],
)

Expand Down
2 changes: 1 addition & 1 deletion modules/hapi-engine/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
* 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
*/
export * from './public-api';
export * from './public_api';
Loading