Skip to content

Commit

Permalink
refactor(ui-patterns): integrate nx executors for ui-patterns (#1358)
Browse files Browse the repository at this point in the history
Partially closes #1290

---------

Co-authored-by: Jan-Niklas Voß <[email protected]>
  • Loading branch information
TobiasHeimGalindo and janivo authored Apr 4, 2024
1 parent dd7ed80 commit 1637e6f
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 24 deletions.
4 changes: 4 additions & 0 deletions nx.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,10 @@
"cache": true,
"dependsOn": ["^build"],
"inputs": ["production", "^production"]
},
"@nx/vite:test": {
"cache": true,
"inputs": ["default", "^production"]
}
},
"generators": {
Expand Down
23 changes: 7 additions & 16 deletions packages/ui-patterns-playground/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,26 +6,17 @@
"tags": [],
"targets": {
"build": {
"executor": "nx:run-commands",
"outputs": ["{projectRoot}/dist"],
"executor": "@nx/vite:build",
"options": {
"cwd": "packages/ui-patterns-playground",
"commands": ["vite build"]
"outputPath": "{projectRoot}/dist",
"configFile": "{projectRoot}/vite.config.ts"
}
},
"start": {
"executor": "nx:run-commands",
"serve": {
"executor": "@nx/vite:dev-server",
"options": {
"cwd": "packages/ui-patterns-playground"
},
"defaultConfiguration": "dev",
"configurations": {
"dev": {
"command": "vite --port 4500"
},
"prod": {
"command": "vite preview --port 4500"
}
"buildTarget": "ui-patterns-playground:build",
"port": 4500
}
},
"lint": {
Expand Down
15 changes: 7 additions & 8 deletions packages/ui-patterns/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,18 @@
"tags": [],
"targets": {
"start": {
"executor": "nx:run-commands",
"outputs": ["{projectRoot}/dist"],
"executor": "@nx/vite:build",
"options": {
"cwd": "packages/ui-patterns",
"commands": ["vite build --watch"]
"outputPath": "{projectRoot}/dist",
"configFile": "{projectRoot}/vite.config.ts",
"watch": true
}
},
"build": {
"executor": "nx:run-commands",
"outputs": ["{projectRoot}/dist"],
"executor": "@nx/vite:build",
"options": {
"cwd": "packages/ui-patterns",
"commands": ["tsc", "vite build"]
"outputPath": "{projectRoot}/dist",
"configFile": "{projectRoot}/vite.config.ts"
}
},
"lint": {
Expand Down

0 comments on commit 1637e6f

Please sign in to comment.