add copy-to-cli to improve the dev experience
This commit is contained in:
parent
7377de404d
commit
aefaf3819a
@ -10,6 +10,7 @@
|
|||||||
"link": "./scripts/link.sh",
|
"link": "./scripts/link.sh",
|
||||||
"package": "./scripts/package.sh",
|
"package": "./scripts/package.sh",
|
||||||
"release": "./scripts/release.sh",
|
"release": "./scripts/release.sh",
|
||||||
|
"copy-to-cli": "./scripts/copy-to-cli.sh",
|
||||||
"test": "yarn build && ./scripts/test.sh"
|
"test": "yarn build && ./scripts/test.sh"
|
||||||
},
|
},
|
||||||
"dependencies" :{
|
"dependencies" :{
|
||||||
|
|||||||
@ -5,4 +5,7 @@ filegroup(name = "node_modules", srcs = glob([
|
|||||||
"node_modules/**/*.json",
|
"node_modules/**/*.json",
|
||||||
"node_modules/**/*.js",
|
"node_modules/**/*.js",
|
||||||
"node_modules/**/*.d.ts",
|
"node_modules/**/*.d.ts",
|
||||||
], exclude=["node_modules/@angular/cli/**"]))
|
], exclude=[
|
||||||
|
"node_modules/@angular/cli/**",
|
||||||
|
"node_modules/fileset/**"
|
||||||
|
]))
|
||||||
|
|||||||
@ -29,6 +29,7 @@
|
|||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@angular/cli": "https://github.com/nrwl/bazel-cli-build",
|
"@angular/cli": "https://github.com/nrwl/bazel-cli-build",
|
||||||
"@bazel/typescript": "~0.0.7",
|
"@bazel/typescript": "~0.0.7",
|
||||||
|
"@nrwl/schematics": "https://github.com/nrwl/schematics-build",
|
||||||
"@nrwl/bazel": "https://github.com/nrwl/bazel-build",
|
"@nrwl/bazel": "https://github.com/nrwl/bazel-build",
|
||||||
"@angular/bazel": "angular/bazel-builds#6f50535",
|
"@angular/bazel": "angular/bazel-builds#6f50535",
|
||||||
"@angular/compiler-cli": "angular/compiler-cli-builds#797acb2",
|
"@angular/compiler-cli": "angular/compiler-cli-builds#797acb2",
|
||||||
|
|||||||
@ -4,8 +4,7 @@
|
|||||||
"description": "Angular Extensions",
|
"description": "Angular Extensions",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"dependencies" :{
|
"dependencies" :{
|
||||||
"jasmine-marbles": "0.1.0",
|
"jasmine-marbles": "0.1.0"
|
||||||
"@nrwl/schematics": "0.0.1"
|
|
||||||
},
|
},
|
||||||
"peerDependencies" :{
|
"peerDependencies" :{
|
||||||
"rxjs": ">5.4.2",
|
"rxjs": ">5.4.2",
|
||||||
|
|||||||
13
scripts/copy-to-cli.sh
Executable file
13
scripts/copy-to-cli.sh
Executable file
@ -0,0 +1,13 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
./scripts/build.sh
|
||||||
|
|
||||||
|
|
||||||
|
path=${PWD}
|
||||||
|
echo $path
|
||||||
|
# sed -i "" "s|https://github.com/nrwl/schematics-build|file:$1/node_modules/@nrwl/schematics|g" build/packages/bazel/package.json
|
||||||
|
sed -i "" "s|https://github.com/nrwl/bazel-build|file:$1/node_modules/@nrwl/bazel|g" build/packages/bazel/src/workspace/files/package.json__tmpl__
|
||||||
|
sed -i "" "s|https://github.com/nrwl/schematics-build|file:$1/node_modules/@nrwl/schematics|g" build/packages/bazel/src/workspace/files/package.json__tmpl__
|
||||||
|
|
||||||
|
rm -rf $1/node_modules/@nrwl
|
||||||
|
cp -r build/packages $1/node_modules/@nrwl
|
||||||
Loading…
x
Reference in New Issue
Block a user