Run any NPM script of a project in the project's root directory.
Options can be configured in project.json
when defining the executor, or when invoking it. Read more about how to configure targets and executors here: https://nx.dev/reference/project-configuration#targets.
project.json
:
1"targets": { 2 "build": { 3 "executor": "nx:run-script", 4 "options": { 5 "script": "build-my-project" 6 } 7 } 8} 9
The build
target is going to run npm run build-my-project
(or yarn build-my-project
) in the packages/frontend
directory.
By 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:
1"targets": { 2 "build": { 3 "executor": "nx:run-script", 4 "outputs": ["{projectRoot}/dist", "{projectRoot}/docs"], 5 "options": { 6 "script": "build-my-project" 7 } 8 } 9} 10
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4