1 | "use strict";
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 |
|
11 |
|
12 |
|
13 |
|
14 |
|
15 | Object.defineProperty(exports, "__esModule", { value: true });
|
16 | exports.args = [
|
17 | {
|
18 | name: 'version',
|
19 | description: 'Print version info.',
|
20 | type: Boolean,
|
21 | },
|
22 | {
|
23 | name: 'root',
|
24 | description: 'The root directory of your project. Defaults to the ' +
|
25 | 'current working directory.',
|
26 | type: String,
|
27 | defaultOption: true,
|
28 | },
|
29 | {
|
30 | name: 'compile',
|
31 | description: 'Compiler options. Valid values are "auto", "always" and ' +
|
32 | '"never". "auto" compiles JavaScript to ES5 for browsers that don\'t ' +
|
33 | 'fully support ES6.',
|
34 | type: String,
|
35 | defaultValue: 'auto',
|
36 | },
|
37 | {
|
38 | name: 'module-resolution',
|
39 | description: 'Algorithm to use for resolving module specifiers in import ' +
|
40 | 'and export statements when rewriting them to be web-compatible. ' +
|
41 | 'Valid values are "none" and "node". "none" disables module specifier ' +
|
42 | 'rewriting. "node" uses Node.js resolution to find modules.',
|
43 | type: String,
|
44 | defaultValue: 'node',
|
45 | },
|
46 | {
|
47 | name: 'compile-cache',
|
48 | description: 'Maximum size in bytes (actually, UTF-8 characters) of ' +
|
49 | 'the cache used to store results for JavaScript compilation. Cache ' +
|
50 | 'size includes the uncompiled and compiled file content lengths. ' +
|
51 | 'Defaults to 52428800 (50MB).',
|
52 | type: Number,
|
53 | defaultValue: 52428800,
|
54 | },
|
55 | {
|
56 | name: 'port',
|
57 | alias: 'p',
|
58 | description: 'The port to serve from. Serve will choose an open port for ' +
|
59 | 'you by default.',
|
60 | type: Number,
|
61 | },
|
62 | {
|
63 | name: 'hostname',
|
64 | alias: 'H',
|
65 | description: 'The hostname to serve from. Defaults to localhost.',
|
66 | type: String,
|
67 | },
|
68 | {
|
69 | name: 'component-dir',
|
70 | alias: 'c',
|
71 | description: 'The component directory to use. Defaults to reading from ' +
|
72 | 'the Bower config (usually bower_components/).',
|
73 | type: String,
|
74 | },
|
75 | {
|
76 | name: 'component-url',
|
77 | alias: 'u',
|
78 | description: 'The component url to use. Defaults to reading from ' +
|
79 | 'the Bower config (usually bower_components/).',
|
80 | type: String,
|
81 | },
|
82 | {
|
83 | name: 'package-name',
|
84 | alias: 'n',
|
85 | description: 'The package name to use for the root directory. Defaults to ' +
|
86 | 'reading from bower.json.',
|
87 | type: String,
|
88 | },
|
89 | {
|
90 | name: 'npm',
|
91 | description: 'Sets npm mode: dependencies are installed from npm, ' +
|
92 | 'component directory is "node_modules" and the package name is read ' +
|
93 | 'from package.json',
|
94 | type: Boolean,
|
95 | },
|
96 | {
|
97 | name: 'open',
|
98 | alias: 'o',
|
99 | description: 'The page to open in the default browser on startup.',
|
100 | type: Boolean,
|
101 | },
|
102 | {
|
103 | name: 'browser',
|
104 | alias: 'b',
|
105 | description: 'The browser(s) to open with when using the --open option. ' +
|
106 | 'Defaults to your default web browser.',
|
107 | type: String,
|
108 | multiple: true,
|
109 | },
|
110 | {
|
111 | name: 'open-path',
|
112 | description: 'The URL path to open when using the --open option. ' +
|
113 | 'Defaults to "index.html".',
|
114 | type: String,
|
115 | },
|
116 | {
|
117 | name: 'protocol',
|
118 | alias: 'P',
|
119 | description: 'The server protocol to use \\{h2, https/1.1, http/1.1\\}. ' +
|
120 | 'Defaults to "http/1.1".',
|
121 | defaultValue: 'http/1.1',
|
122 | type: String,
|
123 | },
|
124 | {
|
125 | name: 'key',
|
126 | description: 'Path to TLS certificate private key file for https. ' +
|
127 | 'Defaults to "key.pem".',
|
128 | defaultValue: 'key.pem',
|
129 | type: String,
|
130 | },
|
131 | {
|
132 | name: 'cert',
|
133 | description: 'Path to TLS certificate file for https. ' +
|
134 | 'Defaults to "cert.pem".',
|
135 | defaultValue: 'cert.pem',
|
136 | type: String,
|
137 | },
|
138 | {
|
139 | name: 'manifest',
|
140 | description: 'Path to HTTP/2 Push Manifest.',
|
141 | type: String,
|
142 | },
|
143 | {
|
144 | name: 'proxy-path',
|
145 | description: 'Top-level path that should be redirected to the proxy-target. ' +
|
146 | 'E.g. `api/v1` when you want to redirect all requests of ' +
|
147 | '`https://localhost/api/v1/`.',
|
148 | type: String,
|
149 | },
|
150 | {
|
151 | name: 'proxy-target',
|
152 | description: 'Host URL to proxy to, for example `https://myredirect:8080/foo`.',
|
153 | type: String,
|
154 | },
|
155 | {
|
156 | name: 'allow-origin',
|
157 | description: 'Set the Access-Control-Allow-Origin header.',
|
158 | type: String,
|
159 | },
|
160 | ];
|
161 |
|
\ | No newline at end of file |