Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
65 changes: 49 additions & 16 deletions nx.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,13 @@
"args": "--reset --optimized"
}
},
"inputs": ["production", "^production"],
"dependsOn": ["^build"],
"inputs": [
"production",
"^production"
],
"dependsOn": [
"^build"
],
"outputs": [
"{projectRoot}/dist",
"{workspaceRoot}/code/bench/esbuild-metafiles/{projectName}"
Expand All @@ -39,7 +44,9 @@
"cwd": "{workspaceRoot}/code",
"command": "yarn vitest watch --project={projectName}"
},
"dependsOn": ["build"],
"dependsOn": [
"build"
],
"inputs": [
"default",
"^production",
Expand All @@ -51,8 +58,13 @@
"configurations": {
"production": {}
},
"inputs": ["default", "^production"],
"dependsOn": ["build"],
"inputs": [
"default",
"^production"
],
"dependsOn": [
"build"
],
"cache": true
},
"sandbox": {
Expand All @@ -62,12 +74,16 @@
"runtime": "storybook --version"
}
],
"outputs": ["{workspaceRoot}/../{projectRoot}"],
"outputs": [
"{workspaceRoot}/../{projectRoot}"
],
"options": {
"cwd": "{workspaceRoot}",
"command": "yarn task sandbox -s sandbox --template={projectName}"
},
"dependsOn": ["^build"],
"dependsOn": [
"^build"
],
"cache": true
},
"sb:dev": {
Expand All @@ -77,18 +93,26 @@
"command": "yarn storybook",
"args": "--ci"
},
"dependsOn": ["sandbox"]
"dependsOn": [
"sandbox"
]
},
"sb:build": {
"executor": "nx:run-commands",
"options": {
"cwd": "{workspaceRoot}/../{projectRoot}",
"command": "yarn build-storybook"
},
"inputs": ["^production"],
"outputs": ["{workspaceRoot}/../{projectRoot}/storybook-static"],
"inputs": [
"^production"
],
"outputs": [
"{workspaceRoot}/../{projectRoot}/storybook-static"
],
"cache": true,
"dependsOn": ["sandbox"]
"dependsOn": [
"sandbox"
]
},
"sb:serve": {
"executor": "nx:run-commands",
Expand All @@ -97,12 +121,20 @@
"command": "yarn http-server ../{projectRoot}/storybook-static",
"args": "--port 8001"
},
"dependsOn": ["sb:build"]
"dependsOn": [
"sb:build"
]
}
},
"namedInputs": {
"default": ["{projectRoot}/**/*", "sharedGlobals"],
"sharedGlobals": ["{workspaceRoot}/code/tsconfig.json", "{workspaceRoot}/scripts/**/*"],
"default": [
"{projectRoot}/**/*",
"sharedGlobals"
],
"sharedGlobals": [
"{workspaceRoot}/code/tsconfig.json",
"{workspaceRoot}/scripts/**/*"
],
"production": [
"default",
"!{projectRoot}/src/**/**/*.{test,spec,stories}.?(c|m)[jt]s?(x)?(.snap)",
Expand All @@ -111,5 +143,6 @@
"!{projectRoot}/.eslintrc.{json,js}",
"!{projectRoot}/src/test-setup.[jt]s"
]
}
}
},
"nxCloudId": "691dbcdcb2822ca4fdc727c4"
}
Loading