prev-cli 0.19.0 → 0.19.1
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/dist/cli.js +1 -4
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -1219,7 +1219,6 @@ var { values, positionals } = parseArgs({
|
|
|
1219
1219
|
port: { type: "string", short: "p" },
|
|
1220
1220
|
days: { type: "string", short: "d" },
|
|
1221
1221
|
cwd: { type: "string", short: "c" },
|
|
1222
|
-
include: { type: "string", short: "i", multiple: true },
|
|
1223
1222
|
help: { type: "boolean", short: "h" },
|
|
1224
1223
|
version: { type: "boolean", short: "v" }
|
|
1225
1224
|
},
|
|
@@ -1249,7 +1248,6 @@ Config subcommands:
|
|
|
1249
1248
|
Options:
|
|
1250
1249
|
-c, --cwd <path> Set working directory
|
|
1251
1250
|
-p, --port <port> Specify port (dev/preview)
|
|
1252
|
-
-i, --include <dir> Include dot-prefixed directory (can use multiple times)
|
|
1253
1251
|
-d, --days <days> Cache age threshold for clean (default: 30)
|
|
1254
1252
|
-h, --help Show this help message
|
|
1255
1253
|
-v, --version Show version number
|
|
@@ -1322,7 +1320,6 @@ Examples:
|
|
|
1322
1320
|
prev build Build static site to ./dist
|
|
1323
1321
|
prev create Create example preview in previews/example/
|
|
1324
1322
|
prev create my-demo Create preview in previews/my-demo/
|
|
1325
|
-
prev -i .c3 Include .c3 directory in docs
|
|
1326
1323
|
prev clean -d 7 Remove caches older than 7 days
|
|
1327
1324
|
`);
|
|
1328
1325
|
}
|
|
@@ -1603,7 +1600,7 @@ async function main() {
|
|
|
1603
1600
|
const config = loadConfig(rootDir);
|
|
1604
1601
|
const port = values.port ? parseInt(values.port, 10) : config.port;
|
|
1605
1602
|
const days = values.days ? parseInt(values.days, 10) : 30;
|
|
1606
|
-
const include =
|
|
1603
|
+
const include = config.include || [];
|
|
1607
1604
|
try {
|
|
1608
1605
|
switch (command) {
|
|
1609
1606
|
case "dev":
|