Skip to content

Commit

Permalink
chore(ui-core): fix target dependencies and optimize build process
Browse files Browse the repository at this point in the history
  • Loading branch information
rahul-rocket committed Dec 22, 2024
1 parent 9d110c6 commit adc6e96
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 15 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -123,9 +123,9 @@
"build:package:ui-config": "cross-env NODE_ENV=development NODE_OPTIONS=--max-old-space-size=12288 && yarn nx build ui-config --configuration=development",
"build:package:ui-config:prod": "cross-env NODE_ENV=production NODE_OPTIONS=--max-old-space-size=12288 yarn nx build ui-config --configuration=production",
"build:package:ui-config:docker": "cross-env NODE_ENV=production NODE_OPTIONS=--max-old-space-size=60000 yarn nx build ui-config --configuration=production",
"build:package:ui-core": "cross-env NODE_ENV=development NODE_OPTIONS=--max-old-space-size=12288 yarn build:package:ui-config && yarn nx build ui-core --configuration=development",
"build:package:ui-core:prod": "cross-env NODE_ENV=production NODE_OPTIONS=--max-old-space-size=12288 yarn build:package:ui-config:prod && yarn nx build ui-core --configuration=production",
"build:package:ui-core:docker": "cross-env NODE_ENV=production NODE_OPTIONS=--max-old-space-size=60000 yarn build:package:ui-config:docker && yarn nx build ui-core --configuration=production",
"build:package:ui-core": "cross-env NODE_ENV=development NODE_OPTIONS=--max-old-space-size=12288 yarn nx build ui-core --configuration=development",
"build:package:ui-core:prod": "cross-env NODE_ENV=production NODE_OPTIONS=--max-old-space-size=12288 yarn nx build ui-core --configuration=production",
"build:package:ui-core:docker": "cross-env NODE_ENV=production NODE_OPTIONS=--max-old-space-size=60000 yarn nx build ui-core --configuration=production",
"build:package:auth": "cross-env NODE_ENV=development NODE_OPTIONS=--max-old-space-size=12288 yarn nx build auth --configuration=development",
"build:package:auth:prod": "cross-env NODE_ENV=production NODE_OPTIONS=--max-old-space-size=12288 yarn nx build auth --configuration=production",
"build:package:auth:docker": "cross-env NODE_ENV=production NODE_OPTIONS=--max-old-space-size=60000 yarn nx build auth --configuration=production",
Expand Down
10 changes: 2 additions & 8 deletions packages/ui-config/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,6 @@
},
"generate-env": {
"executor": "nx:run-commands",
"options": {
"cwd": "."
},
"configurations": {
"production": {
"commands": ["yarn run config:prod"]
Expand All @@ -52,15 +49,12 @@
"projects": "self"
}
],
"options": {
"cwd": "."
},
"configurations": {
"production": {
"command": "cross-env NODE_ENV=production yarn ts-node packages/ui-config/scripts/replace-env-files.ts --environment=prod"
"command": "cross-env NODE_ENV=production yarn ts-node packages/ui-config/scripts/replace-env-files.ts"
},
"development": {
"command": "cross-env NODE_ENV=development yarn ts-node packages/ui-config/scripts/replace-env-files.ts --environment=dev"
"command": "cross-env NODE_ENV=development yarn ts-node packages/ui-config/scripts/replace-env-files.ts"
}
},
"defaultConfiguration": "production"
Expand Down
14 changes: 10 additions & 4 deletions packages/ui-core/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,13 @@
"build": {
"executor": "@nx/angular:package",
"outputs": ["{workspaceRoot}/dist/{projectRoot}"],
"dependsOn": [
"^build",
{
"target": "config",
"projects": "self"
}
],
"options": {
"project": "packages/ui-core/ng-package.json",
"tsConfig": "packages/ui-core/tsconfig.json"
Expand All @@ -22,17 +29,16 @@
"tsConfig": "packages/ui-core/tsconfig.lib.json"
}
},
"defaultConfiguration": "production",
"dependsOn": ["^build", "config"]
"defaultConfiguration": "production"
},
"config": {
"executor": "nx:run-commands",
"configurations": {
"production": {
"commands": ["yarn ts-node .scripts/configure.ts --prod"]
"commands": ["yarn nx build ui-config --configuration=production"]
},
"development": {
"commands": ["yarn ts-node .scripts/configure.ts --dev"]
"commands": ["yarn nx build ui-config --configuration=development"]
}
},
"defaultConfiguration": "production"
Expand Down

0 comments on commit adc6e96

Please sign in to comment.