1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-23 06:55:27 +02:00

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
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 56 additions and 0 deletions

View file

@ -0,0 +1,7 @@
# npm restart
> This command is an alias of `npm run restart`.
- View documentation for the original command:
`tldr npm run`

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`

View file

@ -0,0 +1,7 @@
# npm start
> This command is an alias of `npm run start`.
- View documentation for the original command:
`tldr npm run`

7
pages/common/npm-stop.md Normal file
View file

@ -0,0 +1,7 @@
# npm stop
> This command is an alias of `npm run stop`.
- View documentation for the original command:
`tldr npm run`

7
pages/common/npm-test.md Normal file
View file

@ -0,0 +1,7 @@
# npm test
> This command is an alias of `npm run test`.
- View documentation for the original command:
`tldr npm run`