Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 24 commits into from
Oct 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions pages/common/npm-restart.md
Original file line number Diff line number Diff line change
@@ -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 changes: 28 additions & 0 deletions pages/common/npm-run.md
Original file line number Diff line number Diff line change
@@ -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`
7 changes: 7 additions & 0 deletions pages/common/npm-start.md
Original file line number Diff line number Diff line change
@@ -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 changes: 7 additions & 0 deletions pages/common/npm-stop.md
Original file line number Diff line number Diff line change
@@ -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 changes: 7 additions & 0 deletions pages/common/npm-test.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# npm test

> This command is an alias of `npm run test`.

- View documentation for the original command:

`tldr npm run`