Skip to content

Commit cf6ce7f

Browse files
author
Nick Pape
committed
Basic command line
1 parent 39c9eb4 commit cf6ce7f

1 file changed

Lines changed: 47 additions & 0 deletions

File tree

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
{
2+
"customCommands": [
3+
{
4+
"name": "blah",
5+
"description": "Do some really, really cool custom stuff! This is the best command!"
6+
}
7+
],
8+
9+
"customOptions": {
10+
"--profile": {
11+
"optionType": "enum",
12+
"description": "Changes the build profile, affecting the build output",
13+
"supportedCommands": [ "build", "rebuild" ],
14+
"enumValues": [
15+
{
16+
"name": "vso",
17+
"description": "For running on CI servers"
18+
},
19+
{
20+
"name": "npm",
21+
"description": "For publishing to an NPM registry"
22+
}
23+
]
24+
},
25+
26+
"--ship": {
27+
"optionType": "flag",
28+
"description": "Perform a production build, including minification and localization steps",
29+
"supportedCommands": [ "build", "rebuild" ],
30+
"shortName": "-s"
31+
},
32+
33+
"--minimal": {
34+
"optionType": "flag",
35+
"description": "Perform a fast build, which disables certain tasks such as unit tests and linting",
36+
"supportedCommands": [ "build", "rebuild" ],
37+
"shortName": "-m"
38+
},
39+
40+
"--clean": {
41+
"optionType": "flag",
42+
"description": "This flag does awesome things!",
43+
"supportedCommands": [ "blah", "build", "rebuild" ],
44+
"shortName": "-c"
45+
}
46+
}
47+
}

0 commit comments

Comments
 (0)