36 lines
2.1 KiB
JSON
36 lines
2.1 KiB
JSON
{
|
|
"githubRoot": "https://github.com/nrwl/nx/blob/master",
|
|
"name": "nx",
|
|
"description": "Smart, Fast and Extensible Build System",
|
|
"root": "/packages/nx",
|
|
"source": "/packages/nx/src",
|
|
"generators": [],
|
|
"executors": [
|
|
{
|
|
"name": "run-script",
|
|
"implementation": "/packages/nx/src/executors/run-script/run-script.impl.ts",
|
|
"schema": {
|
|
"title": "Run Script",
|
|
"description": "Run any NPM script of a project in the project's root directory.",
|
|
"type": "object",
|
|
"cli": "nx",
|
|
"outputCapture": "pipe",
|
|
"properties": {
|
|
"script": {
|
|
"type": "string",
|
|
"description": "An npm script name in the `package.json` file of the project (e.g., `build`)."
|
|
}
|
|
},
|
|
"additionalProperties": true,
|
|
"required": ["script"],
|
|
"examplesFile": "`workspace.json`:\n\n```json\n\"frontend\": {\n \"root\": \"packages/frontend\",\n \"targets\": {\n \"build\": {\n \"executor\": \"@nrwl/workspace:run-script\",\n \"options\": {\n \"script\": \"build-my-project\"\n }\n }\n }\n}\n```\n\n```bash\nnx run frontend:build\n```\n\nThe `build` target is going to run `npm run build-my-project` (or `yarn build-my-project`) in the `packages/frontend` directory.\n\n#### Caching Artifacts\n\nBy default, Nx is going to cache `dist/packages/frontend`, `packages/frontend/dist`, `packages/frontend/build`, `packages/frontend/public`. If your npm script writes files to other places, you can override the list of cached outputs as follows:\n\n```json\n\"frontend\": {\n \"root\": \"packages/frontend\",\n \"targets\": {\n \"build\": {\n \"executor\": \"@nrwl/workspace:run-script\",\n \"outputs\": [\"packages/frontend/dist\", \"packaged/frontend/docs\"],\n \"options\": {\n \"script\": \"build-my-project\"\n }\n }\n }\n}\n```\n",
|
|
"presets": []
|
|
},
|
|
"description": "Run an NPM script using Nx.",
|
|
"aliases": [],
|
|
"hidden": false,
|
|
"path": "/packages/nx/src/executors/run-script/schema.json"
|
|
}
|
|
]
|
|
}
|