Skip to content

Commit

Permalink
Rename build to bundle to differentiate betweend vite and rollup task
Browse files Browse the repository at this point in the history
  • Loading branch information
dopenguin committed Feb 15, 2024
1 parent e19207d commit 811c67c
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 9 deletions.
10 changes: 10 additions & 0 deletions nx.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,16 @@
"affected": {
"defaultBase": "main"
},
"targetDefaults": {
"bundle": {
"dependsOn": [
"^bundle"
],
"outputs": [
"{projectRoot}/dist"
]
}
},
"plugins": [
{
"plugin": "@nx/eslint/plugin",
Expand Down
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"docs:meldemichel": "node ./scripts/makeDocs ./packages/clients/meldemichel && npm run meldemichel:build && cp -r ./packages/clients/meldemichel/dist ./packages/clients/meldemichel/example ./packages/clients/meldemichel/docs",
"docs:sbom": "npx @cyclonedx/cyclonedx-npm --output-file sbom.json",
"docs:snowbox": "node ./scripts/makeDocs ./packages/clients/snowbox",
"nx:watch": "nx watch --all -- nx build %NX_PROJECT_NAME%",
"nx:watch": "nx watch --all -- nx bundle %NX_PROJECT_NAME%",
"lint": "npx eslint . --cache --ext .js,.ts,.vue",
"lint:ci": "npx eslint . --ext .js,.ts,.vue",
"lint:fix": "npx eslint . --fix --cache --ext .js,.ts,.vue",
Expand Down Expand Up @@ -121,19 +121,19 @@
"nx": {
"targets": {
"afm:dev": {
"dependsOn": ["^build"]
"dependsOn": ["^bundle"]
},
"dish:dev": {
"dependsOn": ["^build"]
"dependsOn": ["^bundle"]
},
"generic:dev": {
"dependsOn": ["^build"]
"dependsOn": ["^bundle"]
},
"meldemichel:dev": {
"dependsOn": ["^build"]
"dependsOn": ["^bundle"]
},
"snowbox": {
"dependsOn": ["^build"]
"dependsOn": ["^bundle"]
}
}
}
Expand Down
6 changes: 3 additions & 3 deletions packages/plugins/Gfi/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@
"CHANGELOG.md"
],
"scripts": {
"build": "tsc --declaration --emitDeclarationOnly && rollup -c",
"preversion": "npm run build"
"bundle": "tsc --declaration --emitDeclarationOnly && rollup -c",
"preversion": "npm run bundle"
},
"peerDependencies": {
"@masterportal/masterportalapi": "2.8.0",
Expand All @@ -51,6 +51,6 @@
"@polar/lib-test-mount-parameters": "^1.1.0"
},
"nx": {
"includedScripts": []
"includedScripts": ["bundle"]
}
}

0 comments on commit 811c67c

Please sign in to comment.