mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
38 lines
2.0 KiB
JSON
38 lines
2.0 KiB
JSON
{
|
|
"name": "core",
|
|
"$schema": "../../node_modules/nx/schemas/project-schema.json",
|
|
"sourceRoot": "packages/core",
|
|
"projectType": "library",
|
|
"generators": {},
|
|
"namedInputs": { "default": ["{projectRoot}/**/*"], "production": ["!{projectRoot}/**/*.spec.ts"] },
|
|
"targets": {
|
|
"lint": { "executor": "@nx/eslint:lint", "options": { "lintFilePatterns": ["packages/core/**/*.ts", "packages/core/references.d.ts", "packages/core/**/*.spec.ts", "packages/core/**/*.spec.tsx", "packages/core/**/*.spec.js", "packages/core/**/*.spec.jsx", "packages/core/**/*.d.ts"] } },
|
|
"build": {
|
|
"executor": "@nx/js:tsc",
|
|
"inputs": ["default", "^production"],
|
|
"outputs": ["{workspaceRoot}/dist/packages/core"],
|
|
"options": {
|
|
"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/" },
|
|
{ "glob": "**/*.d.ts", "input": "{projectRoot}/", "output": "./" }
|
|
]
|
|
},
|
|
"dependsOn": ["^build"]
|
|
},
|
|
"build.npm": { "executor": "nx:run-commands", "options": { "commands": ["node tools/scripts/build-finish.ts core"], "parallel": false }, "outputs": ["{workspaceRoot}/dist/packages/core"], "dependsOn": [{ "target": "build" }] },
|
|
"test": { "executor": "@nx/vite:test", "outputs": ["{options.reportsDirectory}"], "options": { "reportsDirectory": "../../coverage/packages/core" } }
|
|
}
|
|
}
|