Welcome to mirror list, hosted at ThFree Co, Russian Federation.

npm-set-script.1 « man1 « man « npm « deps - github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: e5cbdc067df42c4d34c5a17dc7a38f2802d38a27 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
.TH "NPM\-SET\-SCRIPT" "1" "February 2021" "" ""
.SH "NAME"
\fBnpm-set-script\fR \- Set tasks in the scripts section of package\.json
.SS Synopsis
.P
An npm command that lets you create a task in the scripts section of the package\.json\.
.P
.RS 2
.nf
npm set\-script [<script>] [<command>]
.fi
.RE
.P
\fBExample:\fR
.RS 0
.IP \(bu 2
\fBnpm set\-script start "http\-server \."\fP

.RE
.P
.RS 2
.nf
{
  "name": "my\-project",
  "scripts": {
    "start": "http\-server \.",
    "test": "some existing value"
  }
}
.fi
.RE
.SS See Also
.RS 0
.IP \(bu 2
npm help run\-script
.IP \(bu 2
npm help install
.IP \(bu 2
npm help test
.IP \(bu 2
npm help start

.RE