npm-{run, start, stop, restart, test}: add page (#14035)

Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com>
Co-authored-by: Wiktor Perskawiec <git@spageektti.cc>
This commit is contained in:
Managor
2024-10-07 16:46:30 +03:00
committed by GitHub
parent 10a3a4ed40
commit 0fd72d1103
5 changed files with 56 additions and 0 deletions

28
pages/common/npm-run.md Normal file
View File

@@ -0,0 +1,28 @@
# npm run
> Run a script.
> More information: <https://www.npmjs.com>.
- Run a script:
`npm run {{script_name}}`
- Pass arguments to a script:
`npm run {{script_name}} -- {{argument}} {{--option}}`
- Run a script named `start`:
`npm start`
- Run a script named `stop`:
`npm stop`
- Run a script named `restart`:
`npm restart`
- Run a script named `test`:
`npm test`