@linktr.ee/create-link-app 1.0.3 → 1.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -1
- package/dist/commands/dev.js +6 -0
- package/oclif.manifest.json +8 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -94,10 +94,11 @@ Start development server for Link App project
|
|
|
94
94
|
|
|
95
95
|
```
|
|
96
96
|
USAGE
|
|
97
|
-
$ create-link-app dev [-p <value>] [--https]
|
|
97
|
+
$ create-link-app dev [-p <value>] [--https] [--host <value>]
|
|
98
98
|
|
|
99
99
|
FLAGS
|
|
100
100
|
-p, --port=<value> [default: 3000] Development server listening port
|
|
101
|
+
--host=<value> [default: localhost] Hostname
|
|
101
102
|
--https Use HTTPS for development server
|
|
102
103
|
|
|
103
104
|
DESCRIPTION
|
package/dist/commands/dev.js
CHANGED
|
@@ -18,7 +18,9 @@ class Dev extends base_1.default {
|
|
|
18
18
|
},
|
|
19
19
|
hot: false,
|
|
20
20
|
https: flags.https,
|
|
21
|
+
host: flags.host,
|
|
21
22
|
port: flags.port,
|
|
23
|
+
allowedHosts: 'all',
|
|
22
24
|
}, (0, webpack_1.default)(config));
|
|
23
25
|
await devServer.start();
|
|
24
26
|
}
|
|
@@ -35,4 +37,8 @@ Dev.flags = {
|
|
|
35
37
|
https: core_1.Flags.boolean({
|
|
36
38
|
description: 'Use HTTPS for development server',
|
|
37
39
|
}),
|
|
40
|
+
host: core_1.Flags.string({
|
|
41
|
+
description: 'Hostname',
|
|
42
|
+
default: 'localhost',
|
|
43
|
+
}),
|
|
38
44
|
};
|
package/oclif.manifest.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "1.0.
|
|
2
|
+
"version": "1.0.5",
|
|
3
3
|
"commands": {
|
|
4
4
|
"build": {
|
|
5
5
|
"id": "build",
|
|
@@ -141,6 +141,13 @@
|
|
|
141
141
|
"type": "boolean",
|
|
142
142
|
"description": "Use HTTPS for development server",
|
|
143
143
|
"allowNo": false
|
|
144
|
+
},
|
|
145
|
+
"host": {
|
|
146
|
+
"name": "host",
|
|
147
|
+
"type": "option",
|
|
148
|
+
"description": "Hostname",
|
|
149
|
+
"multiple": false,
|
|
150
|
+
"default": "localhost"
|
|
144
151
|
}
|
|
145
152
|
},
|
|
146
153
|
"args": {}
|