polylith 0.1.3 → 0.1.4
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/bin/apps.js +3 -6
- package/package.json +1 -1
package/bin/apps.js
CHANGED
|
@@ -87,8 +87,6 @@ async function getApp(spec, options) {
|
|
|
87
87
|
var filename = path.join(buildPath, spec.filename);
|
|
88
88
|
var app;
|
|
89
89
|
|
|
90
|
-
this.options = options;
|
|
91
|
-
|
|
92
90
|
if (!spec.code) {
|
|
93
91
|
var config = await(readJson(filename));
|
|
94
92
|
if (!config) return false;
|
|
@@ -136,9 +134,8 @@ export async function build(name, config, options, watch) {
|
|
|
136
134
|
}
|
|
137
135
|
|
|
138
136
|
|
|
139
|
-
async function server(apps) {
|
|
140
|
-
var
|
|
141
|
-
var server = new PolylithServer({apps: apps}, dest);
|
|
137
|
+
async function server(apps, options) {
|
|
138
|
+
var server = new PolylithServer({apps: apps}, options.dest);
|
|
142
139
|
server.create();
|
|
143
140
|
server.start(options.port || '8081');
|
|
144
141
|
}
|
|
@@ -150,5 +147,5 @@ export async function watch(name, config, options) {
|
|
|
150
147
|
app.watch();
|
|
151
148
|
}
|
|
152
149
|
|
|
153
|
-
server(apps);
|
|
150
|
+
server(apps, options);
|
|
154
151
|
}
|