blob: 72c5ea33707b06f276d394d696e98c92b01cde61 (
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" "March 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
|