Skip to content

Commit

Permalink
build: use build target instead of build-release for bunding packages
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonroberts committed Jun 26, 2020
1 parent a7b0841 commit 2d8a348
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 36 deletions.
7 changes: 0 additions & 7 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -151,9 +151,6 @@ jobs:
root: dist
paths:
- modules/*
- run:
name: Build Docs
command: yarn nx run-many --target=build --projects=docs-app
# Store artifacts from docs build
- persist_to_workspace:
root: projects/ngrx.io/dist
Expand All @@ -171,10 +168,6 @@ jobs:
# Build
- run: yarn
- write_master_hash
- run:
name: Run Affected Release Builds
command: yarn nx affected --target=build-release --base=$(cat ~/project/master.txt) --head=$CIRCLE_SHA1
# Build docs if necessary
- run:
name: Run Affected Builds
command: yarn nx affected --target=build --base=$(cat ~/project/master.txt) --head=$CIRCLE_SHA1
Expand Down
54 changes: 27 additions & 27 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -123,20 +123,20 @@
"sourceRoot": "modules/store/src",
"prefix": "ngrx",
"architect": {
"build": {
"build-package": {
"builder": "@angular-devkit/build-ng-packagr:build",
"options": {
"tsConfig": "modules/store/tsconfig-build.json",
"project": "modules/store/ng-package.json"
}
},
"build-release": {
"build": {
"builder": "@nrwl/workspace:run-commands",
"options": {
"parallel": false,
"commands": [
{
"command": "ng build store"
"command": "ng run store:build-package"
},
{
"command": "yarn tsc -p modules/store/tsconfig.schematics.json"
Expand Down Expand Up @@ -178,20 +178,20 @@
"sourceRoot": "modules/effects/src",
"prefix": "ngrx",
"architect": {
"build": {
"build-package": {
"builder": "@angular-devkit/build-ng-packagr:build",
"options": {
"tsConfig": "modules/effects/tsconfig-build.json",
"project": "modules/effects/ng-package.json"
}
},
"build-release": {
"build": {
"builder": "@nrwl/workspace:run-commands",
"options": {
"parallel": false,
"commands": [
{
"command": "ng build effects"
"command": "ng run effects:build-package"
},
{
"command": "yarn tsc -p modules/effects/tsconfig.schematics.json"
Expand Down Expand Up @@ -233,20 +233,20 @@
"sourceRoot": "modules/data/src",
"prefix": "ngrx",
"architect": {
"build": {
"build-package": {
"builder": "@angular-devkit/build-ng-packagr:build",
"options": {
"tsConfig": "modules/data/tsconfig-build.json",
"project": "modules/data/ng-package.json"
}
},
"build-release": {
"build": {
"builder": "@nrwl/workspace:run-commands",
"options": {
"parallel": false,
"commands": [
{
"command": "ng build data"
"command": "ng run data:build-package"
},
{
"command": "yarn tsc -p modules/data/tsconfig.schematics.json"
Expand Down Expand Up @@ -282,20 +282,20 @@
"sourceRoot": "modules/entity/src",
"prefix": "ngrx",
"architect": {
"build": {
"build-package": {
"builder": "@angular-devkit/build-ng-packagr:build",
"options": {
"tsConfig": "modules/entity/tsconfig-build.json",
"project": "modules/entity/ng-package.json"
}
},
"build-release": {
"build": {
"builder": "@nrwl/workspace:run-commands",
"options": {
"parallel": false,
"commands": [
{
"command": "ng build entity"
"command": "ng run entity:build-package"
},
{
"command": "yarn tsc -p modules/entity/tsconfig.schematics.json"
Expand Down Expand Up @@ -337,20 +337,20 @@
"sourceRoot": "modules/store-devtools/src",
"prefix": "ngrx",
"architect": {
"build": {
"build-package": {
"builder": "@angular-devkit/build-ng-packagr:build",
"options": {
"tsConfig": "modules/store-devtools/tsconfig-build.json",
"project": "modules/store-devtools/ng-package.json"
}
},
"build-release": {
"build": {
"builder": "@nrwl/workspace:run-commands",
"options": {
"parallel": false,
"commands": [
{
"command": "ng build store-devtools"
"command": "ng run store-devtools:build-package"
},
{
"command": "yarn tsc -p modules/store-devtools/tsconfig.schematics.json"
Expand Down Expand Up @@ -386,20 +386,20 @@
"sourceRoot": "modules/router-store/src",
"prefix": "ngrx",
"architect": {
"build": {
"build-package": {
"builder": "@angular-devkit/build-ng-packagr:build",
"options": {
"tsConfig": "modules/router-store/tsconfig-build.json",
"project": "modules/router-store/ng-package.json"
}
},
"build-release": {
"build": {
"builder": "@nrwl/workspace:run-commands",
"options": {
"parallel": false,
"commands": [
{
"command": "ng build router-store"
"command": "ng run router-store:build-package"
},
{
"command": "yarn tsc -p modules/router-store/tsconfig.schematics.json"
Expand Down Expand Up @@ -453,7 +453,7 @@
"runInBand": true
}
},
"build": {
"build-package": {
"builder": "@nrwl/node:package",
"options": {
"outputPath": "dist/modules/schematics",
Expand All @@ -476,13 +476,13 @@
]
}
},
"build-release": {
"build": {
"builder": "@nrwl/workspace:run-commands",
"options": {
"parallel": false,
"commands": [
{
"command": "nx build schematics"
"command": "nx build-package schematics"
},
{
"command": "yarn tsc -p modules/schematics/tsconfig.schematics.json"
Expand Down Expand Up @@ -519,20 +519,20 @@
"sourceRoot": "modules/component/src",
"prefix": "ngrx",
"architect": {
"build": {
"build-package": {
"builder": "@angular-devkit/build-ng-packagr:build",
"options": {
"tsConfig": "modules/component/tsconfig-build.json",
"project": "modules/component/ng-package.json"
}
},
"build-release": {
"build": {
"builder": "@nrwl/workspace:run-commands",
"options": {
"parallel": false,
"commands": [
{
"command": "ng build component"
"command": "ng run component:build-package"
}
]
}
Expand Down Expand Up @@ -565,20 +565,20 @@
"sourceRoot": "modules/component-store/src",
"prefix": "ngrx",
"architect": {
"build": {
"build-package": {
"builder": "@angular-devkit/build-ng-packagr:build",
"options": {
"tsConfig": "modules/component-store/tsconfig-build.json",
"project": "modules/component-store/ng-package.json"
}
},
"build-release": {
"build": {
"builder": "@nrwl/workspace:run-commands",
"options": {
"parallel": false,
"commands": [
{
"command": "ng build component-store"
"command": "ng run component-store:build-package"
}
]
}
Expand Down
1 change: 0 additions & 1 deletion nx.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
"default": {
"runner": "@nrwl/workspace/tasks-runners/default",
"options": {
"strictlyOrderedTargets": ["build-release"],
"cacheableOperations": ["build", "build-release", "test", "lint", "e2e"]
}
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "monorepo for ngrx development",
"scripts": {
"ng": "ng",
"build": "nx run-many --target=build-release --all",
"build": "nx run-many --target=build --all",
"build:bazel": "bazel build //modules/...",
"deploy:builds": "ts-node ./build/deploy-build.ts",
"deploy:preview": "ts-node ./build/deploy-preview.ts",
Expand Down

0 comments on commit 2d8a348

Please sign in to comment.