mirror of
https://github.com/vector-im/element-web.git
synced 2026-03-03 12:31:27 +01:00
* Use nx for running dev tasks Initially only build & start This enables caching, i.e. if you made no changes to shared-components then it can skip that build and speed up your iteration cycle time nx will also be used for our release tooling down the line Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Drop `concurrently` - we no longer use it Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Make knip happier Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Also use nx tasks for jest & tsc so that SC gets built as needed Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Add missing @nx/jest plugin Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Fix prebuild:rethemendex for Windows Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Fix prebuild:rethemendex for Windows Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Add prepack script to package.json --------- Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
19 lines
548 B
JSON
19 lines
548 B
JSON
{
|
|
"$schema": "../../node_modules/nx/schemas/project-schema.json",
|
|
"projectType": "library",
|
|
"targets": {
|
|
"build": {
|
|
"cache": true,
|
|
"command": "vite build",
|
|
"inputs": ["{projectRoot}/src/**/*"],
|
|
"outputs": ["{projectRoot}/dist"],
|
|
"options": { "cwd": "packages/shared-components" }
|
|
},
|
|
"start": {
|
|
"command": "vite build --watch",
|
|
"options": { "cwd": "packages/shared-components" },
|
|
"continuous": true
|
|
}
|
|
}
|
|
}
|