forked from ngrx/platform
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This should build the npm distribution for @ngrx/store. Requires a bunch of fixes: - angular/compiler-cli later than 6.0.0-beta.4 - it's unreleased, plus there's a problem with the snapshot published (missing stuff) so this points to my fork alexeagle/compiler-cli-builds - angular/bazel-builds doesn't have ng_package yet because it hasn't landed. I crafted a distributable version on alexeagle/bazel-builds but this includes some fixes that need to be upstreamed - rules_typescript needs minor fixes to pick up fix for mozilla/source-map#273
- Loading branch information
Showing
5 changed files
with
47 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,24 @@ | ||
"""Re-export of some bazel rules with repository-wide defaults.""" | ||
load("@build_bazel_rules_typescript//:defs.bzl", _ts_library = "ts_library") | ||
load("@angular//:index.bzl", _ng_module = "ng_module", _ng_package = "ng_package") | ||
|
||
DEFAULT_NODE_MODULES = "@ngrx_compiletime_deps//:node_modules" | ||
|
||
def ts_library(tsconfig = None, node_modules = None, **kwargs): | ||
if not tsconfig: | ||
tsconfig = "//:tsconfig.json" | ||
if not node_modules: | ||
node_modules = "@ngrx_compiletime_deps//:node_modules" | ||
node_modules = DEFAULT_NODE_MODULES | ||
_ts_library(tsconfig = tsconfig, node_modules = node_modules, **kwargs) | ||
|
||
def ng_module(tsconfig = None, node_modules = None, **kwargs): | ||
if not tsconfig: | ||
tsconfig = "//:tsconfig.json" | ||
if not node_modules: | ||
node_modules = DEFAULT_NODE_MODULES | ||
_ng_module(tsconfig = tsconfig, node_modules = node_modules, **kwargs) | ||
|
||
def ng_package(node_modules = None, **kwargs): | ||
if not node_modules: | ||
node_modules = DEFAULT_NODE_MODULES | ||
_ng_package(node_modules = node_modules, **kwargs) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters