windowpp 0.1.12 → 0.1.13
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/windowpp.js +3 -2
- package/lib/dev.js +2 -2
- package/package.json +1 -1
- package/templates/example/package.json +1 -1
- package/templates/solid/package.json +1 -1
package/bin/windowpp.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
// Usage:
|
|
6
6
|
// windowpp create <name> [--template solid] [--out-dir .] [--no-run]
|
|
7
7
|
// windowpp build [--clean] [--app-dir .] [--config Release|Debug]
|
|
8
|
-
// windowpp dev [--clean] [--app-dir .] [--port 3000]
|
|
8
|
+
// windowpp dev [--no-clean] [--app-dir .] [--port 3000]
|
|
9
9
|
|
|
10
10
|
'use strict';
|
|
11
11
|
|
|
@@ -25,6 +25,7 @@ function parseFlags(args) {
|
|
|
25
25
|
else if (a === '--config' && args[i + 1]) { flags.config = args[++i]; }
|
|
26
26
|
else if (a === '--port' && args[i + 1]) { flags.port = parseInt(args[++i], 10); }
|
|
27
27
|
else if (a === '--no-run') { flags.noRun = true; }
|
|
28
|
+
else if (a === '--no-clean') { flags.noClean = true; }
|
|
28
29
|
}
|
|
29
30
|
return flags;
|
|
30
31
|
}
|
|
@@ -40,7 +41,7 @@ switch (command) {
|
|
|
40
41
|
case 'dev': {
|
|
41
42
|
const flags = parseFlags(args.slice(1));
|
|
42
43
|
const { dev } = require('../lib/dev');
|
|
43
|
-
dev({ appDir: flags.appDir, clean: flags.
|
|
44
|
+
dev({ appDir: flags.appDir, clean: !flags.noClean, port: flags.port });
|
|
44
45
|
break;
|
|
45
46
|
}
|
|
46
47
|
|
package/lib/dev.js
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
// up either when the app closes or Vite stops.
|
|
7
7
|
//
|
|
8
8
|
// Usage (via CLI or directly):
|
|
9
|
-
// windowpp dev [--clean] [--app-dir <path>] [--port 3000]
|
|
9
|
+
// windowpp dev [--no-clean] [--app-dir <path>] [--port 3000]
|
|
10
10
|
|
|
11
11
|
'use strict';
|
|
12
12
|
|
|
@@ -18,7 +18,7 @@ const { build, findRootDir, resolveTarget, exePathFor } = require('./build');
|
|
|
18
18
|
function dev(options = {}) {
|
|
19
19
|
const {
|
|
20
20
|
appDir = process.cwd(),
|
|
21
|
-
clean =
|
|
21
|
+
clean = true,
|
|
22
22
|
port = null, // auto-detect from vite config; can be overridden
|
|
23
23
|
} = options;
|
|
24
24
|
|
package/package.json
CHANGED