mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-14 18:12:09 +08:00
feat(nx-cloud): organize workspace caching with improved input/outputs (#10734)
This commit is contained in:
@ -16,20 +16,51 @@
|
||||
}
|
||||
},
|
||||
"build": {
|
||||
"executor": "nx:run-commands",
|
||||
"executor": "@nx/js:tsc",
|
||||
"inputs": ["default", "^production"],
|
||||
"outputs": ["{workspaceRoot}/dist/packages"],
|
||||
"outputs": ["{workspaceRoot}/dist/packages/core"],
|
||||
"options": {
|
||||
"commands": [
|
||||
"npx rimraf dist/packages/core",
|
||||
"npx tsc -p packages/core/tsconfig.lib.json",
|
||||
"npx copyfiles \"packages/core/**/*.d.ts\" dist && npx copyfiles \"packages/core/js-libs/**/*\" dist && npx copyfiles \"packages/core/cli-hooks/**/*.js\" dist && npx copyfiles \"packages/core/platforms/**/*\" dist && npx copyfiles \"packages/core/fetch/**/*\" dist && npx copyfiles \"packages/core/css/**/*\" dist && npx copyfiles \"packages/core/css-value/**/*\" dist",
|
||||
"npx copyfiles -f \"packages/core/package.json\" \"packages/core/README.md\" \"LICENSE\" dist/packages/core",
|
||||
"cd dist/packages/core && npm pack --pack-destination=.."
|
||||
],
|
||||
"cwd": ".",
|
||||
"parallel": false
|
||||
}
|
||||
"tsConfig": "{projectRoot}/tsconfig.lib.json",
|
||||
"outputPath": "{workspaceRoot}/dist/packages/core",
|
||||
"rootDir": "{projectRoot}",
|
||||
"main": "{projectRoot}/index.ts",
|
||||
"assets": [
|
||||
"{workspaceRoot}/LICENSE",
|
||||
"{projectRoot}/README.md",
|
||||
"{projectRoot}/global-types.d.ts",
|
||||
{
|
||||
"glob": "**/*",
|
||||
"input": "{projectRoot}/js-libs/",
|
||||
"output": "./js-libs/"
|
||||
},
|
||||
{
|
||||
"glob": "**/*",
|
||||
"input": "{projectRoot}/cli-hooks/",
|
||||
"output": "./cli-hooks/"
|
||||
},
|
||||
{
|
||||
"glob": "**/*",
|
||||
"input": "{projectRoot}/fetch/",
|
||||
"output": "./fetch/"
|
||||
},
|
||||
{
|
||||
"glob": "**/*",
|
||||
"input": "{projectRoot}/css/",
|
||||
"output": "./css/"
|
||||
},
|
||||
{
|
||||
"glob": "**/*",
|
||||
"input": "{projectRoot}/css-value/",
|
||||
"output": "./css-value/"
|
||||
},
|
||||
{
|
||||
"glob": "**/*",
|
||||
"input": "{projectRoot}/platforms/",
|
||||
"output": "./platforms/"
|
||||
}
|
||||
]
|
||||
},
|
||||
"dependsOn": ["^build"]
|
||||
},
|
||||
"test": {
|
||||
"executor": "@nx/vite:test",
|
||||
|
@ -12,11 +12,10 @@
|
||||
"sourceMap": true,
|
||||
"inlineSourceMap": false,
|
||||
"baseUrl": ".",
|
||||
"outDir": "../../dist",
|
||||
"types": ["node"],
|
||||
"plugins": [
|
||||
{
|
||||
"transform": "../webpack5/src/transformers/NativeClass/index.ts",
|
||||
"transform": "./packages/webpack5/src/transformers/NativeClass/index.ts",
|
||||
"type": "raw"
|
||||
}
|
||||
]
|
||||
|
Reference in New Issue
Block a user