webanvil 0.0.18 → 0.0.19
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 +32 -29
- package/dist/_chunks/commands.mjs +42 -13
- package/dist/index.d.mts +20 -3
- package/dist/index.mjs +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -58,18 +58,18 @@ wa typecheck # type-check the project
|
|
|
58
58
|
What it includes
|
|
59
59
|
----------------
|
|
60
60
|
|
|
61
|
-
| Project job | WebAnvil command
|
|
62
|
-
| -------------------------- |
|
|
63
|
-
| Web builds and development | `wa build`, `wa dev`, `wa preview`
|
|
64
|
-
| Node builds and watch mode | `wa build`, `wa dev`
|
|
65
|
-
| Design-system Storybook | `wa build`, `wa dev`, `wa preview` | Storybook |
|
|
66
|
-
| Tracked output cleanup | `wa clean`
|
|
67
|
-
| Static checks | `wa check`
|
|
68
|
-
| Tests | `wa test`
|
|
69
|
-
| Browser tests | `wa e2e`
|
|
70
|
-
| Linting | `wa lint`
|
|
71
|
-
| Formatting | `wa format`
|
|
72
|
-
| Type checking | `wa typecheck`
|
|
61
|
+
| Project job | WebAnvil command | Tool |
|
|
62
|
+
| -------------------------- | ---------------------------------------------------------- | ------------------------------------------------- |
|
|
63
|
+
| Web builds and development | `wa build`, `wa dev`, `wa preview` | Vite |
|
|
64
|
+
| Node builds and watch mode | `wa build`, `wa dev` | Rolldown |
|
|
65
|
+
| Design-system Storybook | `wa build --storybook`, `wa dev --storybook`, `wa preview` | Storybook |
|
|
66
|
+
| Tracked output cleanup | `wa clean` | WebAnvil |
|
|
67
|
+
| Static checks | `wa check` | Oxfmt, Oxlint, TypeScript Native, or svelte-check |
|
|
68
|
+
| Tests | `wa test` | Vitest |
|
|
69
|
+
| Browser tests | `wa e2e` | Playwright Test and Chromium |
|
|
70
|
+
| Linting | `wa lint` | Oxlint |
|
|
71
|
+
| Formatting | `wa format` | Oxfmt |
|
|
72
|
+
| Type checking | `wa typecheck` | TypeScript Native or svelte-check |
|
|
73
73
|
|
|
74
74
|
Getting started
|
|
75
75
|
---------------
|
|
@@ -196,11 +196,14 @@ export default {
|
|
|
196
196
|
} satisfies StorybookConfig
|
|
197
197
|
```
|
|
198
198
|
|
|
199
|
-
`wa dev` starts the package watcher, waits for its first successful
|
|
200
|
-
starts Storybook. `wa build` creates the package output
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
199
|
+
`wa dev --storybook` starts the package watcher, waits for its first successful
|
|
200
|
+
build, then starts Storybook. `wa build --storybook` creates the package output
|
|
201
|
+
and static Storybook. Without `--storybook`, these commands only run the package
|
|
202
|
+
workflow, even when `storybook` is configured. Run `wa build --storybook`
|
|
203
|
+
before `wa preview` to serve the static Storybook output. `wa clean` removes
|
|
204
|
+
both sets of tracked files. `--host` and `--port` on `wa dev --storybook`
|
|
205
|
+
configure Storybook. Storybook does not open a browser by default; pass `--open`
|
|
206
|
+
to open it. The package build still owns `--out-dir`.
|
|
204
207
|
|
|
205
208
|
Set `storybook.test: false` to exclude Storybook stories, including `play`
|
|
206
209
|
functions, from `wa test`. Chromium is downloaded by
|
|
@@ -605,17 +608,17 @@ That lets a project standardize on `wa` now and move settings into `webanvil.con
|
|
|
605
608
|
Command reference
|
|
606
609
|
-----------------
|
|
607
610
|
|
|
608
|
-
| Command | Description
|
|
609
|
-
| ------------------------- |
|
|
610
|
-
| `wa build [entry]` | Builds with Vite in web mode or Rolldown in Node mode.
|
|
611
|
-
| `wa clean` | Removes files emitted by prior WebAnvil builds.
|
|
612
|
-
| `wa check` | Checks formatting, linting, and types, stopping on the first failure.
|
|
613
|
-
| `wa dev [entry]` | Starts Vite or a Node build watcher.
|
|
614
|
-
| `wa preview` | Serves a Vite production build or configured static Storybook output.
|
|
615
|
-
| `wa test [filters...]` | Runs Vitest once, in watch mode, with coverage, or UI.
|
|
616
|
-
| `wa e2e [filters...]` | Builds, previews, and runs Playwright browser tests. Native Playwright configuration takes control.
|
|
617
|
-
| `wa lint [paths...]` | Runs Oxlint and treats warnings as failures.
|
|
618
|
-
| `wa format [paths...]` | Formats with Oxfmt.
|
|
619
|
-
| `wa typecheck [paths...]` | Type-checks with TypeScript Native.
|
|
611
|
+
| Command | Description | Options |
|
|
612
|
+
| ------------------------- | ---------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
613
|
+
| `wa build [entry]` | Builds with Vite in web mode or Rolldown in Node mode. `--storybook` also builds the configured Storybook. | `--mode`, `--out-dir`, `--copy`, `--bundle`, `--no-bundle`, `--formats`, `--declaration`, `--sourcemap`, `--minify`, `--platform`, `--target`, `--storybook` |
|
|
614
|
+
| `wa clean` | Removes files emitted by prior WebAnvil builds. | No options |
|
|
615
|
+
| `wa check` | Checks formatting, linting, and types, stopping on the first failure. | `--fix` |
|
|
616
|
+
| `wa dev [entry]` | Starts Vite or a Node build watcher. `--storybook` also starts the configured Storybook. | `--mode`, `--out-dir`, `--host`, `--port`, `--open`, `--copy`, `--bundle`, `--no-bundle`, `--formats`, `--declaration`, `--sourcemap`, `--minify`, `--platform`, `--target`, `--storybook` |
|
|
617
|
+
| `wa preview` | Serves a Vite production build or configured static Storybook output. | `--out-dir`, `--host`, `--port`, `--open` |
|
|
618
|
+
| `wa test [filters...]` | Runs Vitest once, in watch mode, with coverage, or UI. | `--environment`, `--watch`, `--coverage`, `--ui`, `--ui-port` |
|
|
619
|
+
| `wa e2e [filters...]` | Builds, previews, and runs Playwright browser tests. Native Playwright configuration takes control. | `--host`, `--port`, `--ui`, `--headed`, `--debug`, `--project` |
|
|
620
|
+
| `wa lint [paths...]` | Runs Oxlint and treats warnings as failures. | `--fix` |
|
|
621
|
+
| `wa format [paths...]` | Formats with Oxfmt. | `--check` |
|
|
622
|
+
| `wa typecheck [paths...]` | Type-checks with TypeScript Native. | No options |
|
|
620
623
|
|
|
621
624
|
Run `wa <command> --help` for the complete reference for a command.
|
|
@@ -1196,6 +1196,7 @@ const startStorybook = async (action, config = {}, options = {}, toolchain = new
|
|
|
1196
1196
|
...configDir === void 0 ? [] : ["--config-dir", configDir],
|
|
1197
1197
|
...action === "dev" && options.host !== void 0 ? ["--host", options.host] : [],
|
|
1198
1198
|
...action === "dev" && options.port !== void 0 ? ["--port", String(options.port)] : [],
|
|
1199
|
+
...action === "dev" && options.open !== true ? ["--no-open"] : [],
|
|
1199
1200
|
...action === "build" ? ["--output-dir", outDir] : []
|
|
1200
1201
|
], {
|
|
1201
1202
|
reject: false,
|
|
@@ -1316,7 +1317,7 @@ const mode = defineOption({
|
|
|
1316
1317
|
});
|
|
1317
1318
|
const open = defineOption({
|
|
1318
1319
|
name: "open",
|
|
1319
|
-
description: "Open the preview in the browser.",
|
|
1320
|
+
description: "Open Storybook or the preview in the browser.",
|
|
1320
1321
|
arity: 0
|
|
1321
1322
|
});
|
|
1322
1323
|
const outDir = defineOption({
|
|
@@ -1352,6 +1353,11 @@ const sourcemap = defineOption({
|
|
|
1352
1353
|
arity: 1,
|
|
1353
1354
|
schema: z.enum(["true", "false"]).transform((value) => value === "true")
|
|
1354
1355
|
});
|
|
1356
|
+
const storybook = defineOption({
|
|
1357
|
+
name: "storybook",
|
|
1358
|
+
description: "Also run the configured Storybook companion workflow.",
|
|
1359
|
+
arity: 0
|
|
1360
|
+
});
|
|
1355
1361
|
const target = defineOption({
|
|
1356
1362
|
name: "target",
|
|
1357
1363
|
description: "Production syntax target, or comma-separated targets.",
|
|
@@ -1497,7 +1503,9 @@ const commandRun$1 = (toolchain) => withConfig((config) => config.build, ({ copy
|
|
|
1497
1503
|
const executableMode = effective.mode;
|
|
1498
1504
|
if (executableMode !== "web" && executableMode !== "node") throw new Error("Expected a web or Node build mode");
|
|
1499
1505
|
return (async () => {
|
|
1500
|
-
|
|
1506
|
+
const configuredStorybook = explicit.storybook ? resolvedConfig.storybook : void 0;
|
|
1507
|
+
if (explicit.storybook && configuredStorybook === void 0) throw new Error("--storybook requires a storybook configuration");
|
|
1508
|
+
if (configuredStorybook !== void 0) assertSeparateStorybookOutput(effective.outDir, configuredStorybook);
|
|
1501
1509
|
await build(executableMode, effective.entry, effective.outDir, effective, resolvedConfig.plugins ?? [], resolvedConfig.vite, resolvedConfig.rolldown, toolchain, {
|
|
1502
1510
|
...explicit.entry === void 0 ? {} : { entry },
|
|
1503
1511
|
...explicit["out-dir"] === void 0 ? {} : { outDir },
|
|
@@ -1505,7 +1513,7 @@ const commandRun$1 = (toolchain) => withConfig((config) => config.build, ({ copy
|
|
|
1505
1513
|
...explicit.sourcemap === void 0 ? {} : { sourcemap },
|
|
1506
1514
|
...explicit.target === void 0 ? {} : { target }
|
|
1507
1515
|
});
|
|
1508
|
-
if (
|
|
1516
|
+
if (configuredStorybook !== void 0) await buildStorybook(configuredStorybook, toolchain);
|
|
1509
1517
|
})();
|
|
1510
1518
|
});
|
|
1511
1519
|
var build_default = defineCommand({
|
|
@@ -1522,14 +1530,22 @@ var build_default = defineCommand({
|
|
|
1522
1530
|
minify,
|
|
1523
1531
|
formats,
|
|
1524
1532
|
platform,
|
|
1525
|
-
target
|
|
1533
|
+
target,
|
|
1534
|
+
storybook
|
|
1526
1535
|
],
|
|
1527
1536
|
run: async (arguments_) => {
|
|
1528
|
-
const configured = arguments_.mode === void 0 ? (await loadConfig()).config : void 0;
|
|
1529
1537
|
const toolchain = new Toolchain(process.cwd());
|
|
1538
|
+
if (arguments_.storybook) {
|
|
1539
|
+
await Promise.all([
|
|
1540
|
+
toolchain.resolve("vite"),
|
|
1541
|
+
toolchain.resolve("rolldown"),
|
|
1542
|
+
toolchain.resolve("storybook")
|
|
1543
|
+
]);
|
|
1544
|
+
return commandRun$1(toolchain)(arguments_, (await loadConfig()).config);
|
|
1545
|
+
}
|
|
1546
|
+
const configured = arguments_.mode === void 0 ? (await loadConfig()).config : void 0;
|
|
1530
1547
|
await Promise.all([toolchain.resolve("vite"), toolchain.resolve("rolldown")]);
|
|
1531
1548
|
const config = configured ?? (await loadConfig()).config;
|
|
1532
|
-
if (config.storybook !== void 0) await toolchain.resolve("storybook");
|
|
1533
1549
|
return commandRun$1(toolchain)(arguments_, config);
|
|
1534
1550
|
}
|
|
1535
1551
|
});
|
|
@@ -1792,7 +1808,7 @@ dev.node = async (entry, outDir, plugins = [], waitForTermination = untilTermina
|
|
|
1792
1808
|
await watcher.close();
|
|
1793
1809
|
}
|
|
1794
1810
|
};
|
|
1795
|
-
const devWithStorybook = async (entry, outDir, storybook, host, port, plugins = [], options = {}, rolldownConfig = {}, toolchain = new Toolchain(process.cwd()), waitForTermination = untilTerminated) => {
|
|
1811
|
+
const devWithStorybook = async (entry, outDir, storybook, host, open, port, plugins = [], options = {}, rolldownConfig = {}, toolchain = new Toolchain(process.cwd()), waitForTermination = untilTerminated) => {
|
|
1796
1812
|
let stopNodeWatcher = () => {};
|
|
1797
1813
|
const nodeStopped = new Promise((resolve) => {
|
|
1798
1814
|
stopNodeWatcher = resolve;
|
|
@@ -1807,6 +1823,7 @@ const devWithStorybook = async (entry, outDir, storybook, host, port, plugins =
|
|
|
1807
1823
|
await Promise.race([built, node]);
|
|
1808
1824
|
storybookProcess = await startStorybook("dev", storybook, {
|
|
1809
1825
|
host: host ?? storybook.host,
|
|
1826
|
+
open,
|
|
1810
1827
|
port: port ?? storybook.port
|
|
1811
1828
|
}, toolchain);
|
|
1812
1829
|
if (await Promise.race([waitForTermination().then(() => "terminated"), storybookProcess.completed.then(() => "storybook")]) === "storybook") throw new Error("Storybook development stopped");
|
|
@@ -1816,7 +1833,7 @@ const devWithStorybook = async (entry, outDir, storybook, host, port, plugins =
|
|
|
1816
1833
|
await Promise.allSettled([node, ...storybookProcess === void 0 ? [] : [storybookProcess.completed]]);
|
|
1817
1834
|
}
|
|
1818
1835
|
};
|
|
1819
|
-
const commandRun = (toolchain) => withConfig((config) => config.build, ({ copy, declaration, formats, minify, mode, entry, "out-dir": outDir, host, platform, port, sourcemap, target }, buildConfig, resolvedConfig, explicit) => {
|
|
1836
|
+
const commandRun = (toolchain) => withConfig((config) => config.build, ({ copy, declaration, formats, minify, mode, entry, "out-dir": outDir, host, open, platform, port, sourcemap, target }, buildConfig, resolvedConfig, explicit) => {
|
|
1820
1837
|
if (explicit.bundle && explicit["no-bundle"]) throw new Error("--bundle and --no-bundle cannot be used together");
|
|
1821
1838
|
const effective = resolveEffectiveBuildConfig(resolvedConfig, {
|
|
1822
1839
|
bundle: explicit["no-bundle"] ? false : explicit.bundle ? true : buildConfig.bundle,
|
|
@@ -1834,7 +1851,10 @@ const commandRun = (toolchain) => withConfig((config) => config.build, ({ copy,
|
|
|
1834
1851
|
}, explicit.entry !== void 0);
|
|
1835
1852
|
const executableMode = effective.mode;
|
|
1836
1853
|
if (executableMode !== "web" && executableMode !== "node") throw new Error("Expected a web or Node build mode");
|
|
1837
|
-
|
|
1854
|
+
const configuredStorybook = explicit.storybook ? resolvedConfig.storybook : void 0;
|
|
1855
|
+
if (explicit.storybook && configuredStorybook === void 0) throw new Error("--storybook requires a storybook configuration");
|
|
1856
|
+
if (explicit.open && configuredStorybook === void 0) throw new Error("--open is only available with --storybook");
|
|
1857
|
+
if (configuredStorybook !== void 0) return devWithStorybook(effective.entry, effective.outDir, configuredStorybook, explicit.host === void 0 ? void 0 : host, explicit.open === void 0 ? void 0 : open, explicit.port === void 0 ? void 0 : port, resolvedConfig.plugins ?? [], effective, resolvedConfig.rolldown, toolchain);
|
|
1838
1858
|
return dev(executableMode, effective.entry, effective.outDir, host, port, resolvedConfig.plugins ?? [], effective, resolvedConfig.vite, resolvedConfig.rolldown, toolchain);
|
|
1839
1859
|
});
|
|
1840
1860
|
var dev_default = defineCommand({
|
|
@@ -1844,6 +1864,7 @@ var dev_default = defineCommand({
|
|
|
1844
1864
|
mode,
|
|
1845
1865
|
outDir,
|
|
1846
1866
|
host,
|
|
1867
|
+
open,
|
|
1847
1868
|
port,
|
|
1848
1869
|
bundle,
|
|
1849
1870
|
noBundle,
|
|
@@ -1853,14 +1874,22 @@ var dev_default = defineCommand({
|
|
|
1853
1874
|
minify,
|
|
1854
1875
|
formats,
|
|
1855
1876
|
platform,
|
|
1856
|
-
target
|
|
1877
|
+
target,
|
|
1878
|
+
storybook
|
|
1857
1879
|
],
|
|
1858
1880
|
run: async (arguments_) => {
|
|
1859
|
-
const configured = arguments_.mode === void 0 ? (await loadConfig()).config : void 0;
|
|
1860
1881
|
const toolchain = new Toolchain(process.cwd());
|
|
1882
|
+
if (arguments_.storybook) {
|
|
1883
|
+
await Promise.all([
|
|
1884
|
+
toolchain.resolve("vite"),
|
|
1885
|
+
toolchain.resolve("rolldown"),
|
|
1886
|
+
toolchain.resolve("storybook")
|
|
1887
|
+
]);
|
|
1888
|
+
return commandRun(toolchain)(arguments_, (await loadConfig()).config);
|
|
1889
|
+
}
|
|
1890
|
+
const configured = arguments_.mode === void 0 ? (await loadConfig()).config : void 0;
|
|
1861
1891
|
await Promise.all([toolchain.resolve("vite"), toolchain.resolve("rolldown")]);
|
|
1862
1892
|
const config = configured ?? (await loadConfig()).config;
|
|
1863
|
-
if (config.storybook !== void 0) await toolchain.resolve("storybook");
|
|
1864
1893
|
return commandRun(toolchain)(arguments_, config);
|
|
1865
1894
|
}
|
|
1866
1895
|
});
|
|
@@ -2080,4 +2109,4 @@ var test_default = defineCommand({
|
|
|
2080
2109
|
return runTest(arguments_);
|
|
2081
2110
|
}
|
|
2082
2111
|
});
|
|
2083
|
-
export { build, build_default, bundle, check, checkProject, check_default, clean, clean_default, copy, coverage, debug, declaration, dev, dev_default, e2e, e2e_default, entry, environment, filters, fix$1 as fix, format, format_default, formats, headed, host, lint, lint_default, logger, minify, mode, open, outDir, paths, platform, port, preview, preview_default, project, sourcemap, target, test, test_default, typecheck, typecheck_default, ui, uiPort, watch };
|
|
2112
|
+
export { build, build_default, bundle, check, checkProject, check_default, clean, clean_default, copy, coverage, debug, declaration, dev, dev_default, e2e, e2e_default, entry, environment, filters, fix$1 as fix, format, format_default, formats, headed, host, lint, lint_default, logger, minify, mode, open, outDir, paths, platform, port, preview, preview_default, project, sourcemap, storybook, target, test, test_default, typecheck, typecheck_default, ui, uiPort, watch };
|
package/dist/index.d.mts
CHANGED
|
@@ -371,6 +371,10 @@ declare const _default: import("cmdore").Command<readonly [{
|
|
|
371
371
|
readonly description: "Production syntax target, or comma-separated targets.";
|
|
372
372
|
readonly arity: 1;
|
|
373
373
|
readonly schema: import("zod").ZodPipe<import("zod").ZodPipe<import("zod").ZodString, import("zod").ZodTransform<string | string[], string>>, import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString>]>>;
|
|
374
|
+
}, {
|
|
375
|
+
readonly name: "storybook";
|
|
376
|
+
readonly description: "Also run the configured Storybook companion workflow.";
|
|
377
|
+
readonly arity: 0;
|
|
374
378
|
}], readonly [{
|
|
375
379
|
readonly name: "entry";
|
|
376
380
|
readonly description: "Web entry or Node public root; unbundled Node builds emit its reachable graph with preserveModules.";
|
|
@@ -414,6 +418,10 @@ declare const _default$3: import("cmdore").Command<readonly [{
|
|
|
414
418
|
readonly name: "host";
|
|
415
419
|
readonly description: "Host interface for the web server.";
|
|
416
420
|
readonly arity: 1;
|
|
421
|
+
}, {
|
|
422
|
+
readonly name: "open";
|
|
423
|
+
readonly description: "Open Storybook or the preview in the browser.";
|
|
424
|
+
readonly arity: 0;
|
|
417
425
|
}, {
|
|
418
426
|
readonly name: "port";
|
|
419
427
|
readonly description: "Port for the web server.";
|
|
@@ -480,6 +488,10 @@ declare const _default$3: import("cmdore").Command<readonly [{
|
|
|
480
488
|
readonly description: "Production syntax target, or comma-separated targets.";
|
|
481
489
|
readonly arity: 1;
|
|
482
490
|
readonly schema: import("zod").ZodPipe<import("zod").ZodPipe<import("zod").ZodString, import("zod").ZodTransform<string | string[], string>>, import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString>]>>;
|
|
491
|
+
}, {
|
|
492
|
+
readonly name: "storybook";
|
|
493
|
+
readonly description: "Also run the configured Storybook companion workflow.";
|
|
494
|
+
readonly arity: 0;
|
|
483
495
|
}], readonly [{
|
|
484
496
|
readonly name: "entry";
|
|
485
497
|
readonly description: "Web entry or Node public root; unbundled Node builds emit its reachable graph with preserveModules.";
|
|
@@ -560,7 +572,7 @@ declare const _default$7: import("cmdore").Command<readonly [{
|
|
|
560
572
|
readonly schema: import("zod").ZodCoercedNumber<unknown>;
|
|
561
573
|
}, {
|
|
562
574
|
readonly name: "open";
|
|
563
|
-
readonly description: "Open the preview in the browser.";
|
|
575
|
+
readonly description: "Open Storybook or the preview in the browser.";
|
|
564
576
|
readonly arity: 0;
|
|
565
577
|
}], readonly import("cmdore").Argument[]>;
|
|
566
578
|
declare const test: (filters: string[], config?: TestConfig, options?: {
|
|
@@ -682,7 +694,7 @@ declare const mode: {
|
|
|
682
694
|
};
|
|
683
695
|
declare const open: {
|
|
684
696
|
readonly name: "open";
|
|
685
|
-
readonly description: "Open the preview in the browser.";
|
|
697
|
+
readonly description: "Open Storybook or the preview in the browser.";
|
|
686
698
|
readonly arity: 0;
|
|
687
699
|
};
|
|
688
700
|
declare const outDir$1: {
|
|
@@ -721,6 +733,11 @@ declare const sourcemap$1: {
|
|
|
721
733
|
false: "false";
|
|
722
734
|
}>, z.ZodTransform<boolean, "true" | "false">>;
|
|
723
735
|
};
|
|
736
|
+
declare const storybook: {
|
|
737
|
+
readonly name: "storybook";
|
|
738
|
+
readonly description: "Also run the configured Storybook companion workflow.";
|
|
739
|
+
readonly arity: 0;
|
|
740
|
+
};
|
|
724
741
|
declare const target$1: {
|
|
725
742
|
readonly name: "target";
|
|
726
743
|
readonly description: "Production syntax target, or comma-separated targets.";
|
|
@@ -745,4 +762,4 @@ declare const watch: {
|
|
|
745
762
|
};
|
|
746
763
|
declare function defineConfig(config: UserConfig): UserConfig;
|
|
747
764
|
declare function defineConfig(config: UserConfigFactory): UserConfigFactory;
|
|
748
|
-
export { BuildConfig, ConfigExport, CopyMapping, FormatConfig, LintConfig, ResolvedConfig, RolldownConfig, StorybookConfig, SyntaxTarget, TestConfig, UnpluginAdapter, UserConfig, UserConfigFactory, ViteConfig, WebAnvilPlugin, WebAnvilUnplugin, assertSyntaxTarget, build, _default as buildCommand, buildConfigSchema, bundle$1 as bundle, check, _default$1 as checkCommand, checkProject, clean, _default$2 as cleanCommand, copy, copyMappingSchema, coverage, debug, declaration, defaultConfig, defineConfig, definePlugin, dev, _default$3 as devCommand, e2e, _default$4 as e2eCommand, effectiveUserConfigSchema, entry$1 as entry, environment, filters, fix, format, _default$5 as formatCommand, formatConfigSchema, formats$1 as formats, headed, host, isUnpluginAdapter, isWebAnvilPlugin, lint, _default$6 as lintCommand, lintConfigSchema, loadConfig, minify$1 as minify, mode, open, outDir$1 as outDir, paths, platform$1 as platform, port, preview, _default$7 as previewCommand, project, resolveEffectiveBuildConfig, resolveRolldownPlugins, resolveVitePlugins, rolldownConfigSchema, sourcemap$1 as sourcemap, storybookConfigSchema, syntaxTargetSchema, target$1 as target, test, _default$8 as testCommand, testConfigSchema, typecheck, _default$9 as typecheckCommand, ui, uiPort, userConfigSchema, viteConfigSchema, watch, withConfig };
|
|
765
|
+
export { BuildConfig, ConfigExport, CopyMapping, FormatConfig, LintConfig, ResolvedConfig, RolldownConfig, StorybookConfig, SyntaxTarget, TestConfig, UnpluginAdapter, UserConfig, UserConfigFactory, ViteConfig, WebAnvilPlugin, WebAnvilUnplugin, assertSyntaxTarget, build, _default as buildCommand, buildConfigSchema, bundle$1 as bundle, check, _default$1 as checkCommand, checkProject, clean, _default$2 as cleanCommand, copy, copyMappingSchema, coverage, debug, declaration, defaultConfig, defineConfig, definePlugin, dev, _default$3 as devCommand, e2e, _default$4 as e2eCommand, effectiveUserConfigSchema, entry$1 as entry, environment, filters, fix, format, _default$5 as formatCommand, formatConfigSchema, formats$1 as formats, headed, host, isUnpluginAdapter, isWebAnvilPlugin, lint, _default$6 as lintCommand, lintConfigSchema, loadConfig, minify$1 as minify, mode, open, outDir$1 as outDir, paths, platform$1 as platform, port, preview, _default$7 as previewCommand, project, resolveEffectiveBuildConfig, resolveRolldownPlugins, resolveVitePlugins, rolldownConfigSchema, sourcemap$1 as sourcemap, storybook, storybookConfigSchema, syntaxTargetSchema, target$1 as target, test, _default$8 as testCommand, testConfigSchema, typecheck, _default$9 as typecheckCommand, ui, uiPort, userConfigSchema, viteConfigSchema, watch, withConfig };
|
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { build, build_default, bundle, check, checkProject, check_default, clean, clean_default, copy, coverage, debug, declaration, dev, dev_default, e2e, e2e_default, entry, environment, filters, fix, format, format_default, formats, headed, host, lint, lint_default, minify, mode, open, outDir, paths, platform, port, preview, preview_default, project, sourcemap, target, test, test_default, typecheck, typecheck_default, ui, uiPort, watch } from "./_chunks/commands.mjs";
|
|
1
|
+
import { build, build_default, bundle, check, checkProject, check_default, clean, clean_default, copy, coverage, debug, declaration, dev, dev_default, e2e, e2e_default, entry, environment, filters, fix, format, format_default, formats, headed, host, lint, lint_default, minify, mode, open, outDir, paths, platform, port, preview, preview_default, project, sourcemap, storybook, target, test, test_default, typecheck, typecheck_default, ui, uiPort, watch } from "./_chunks/commands.mjs";
|
|
2
2
|
import { assertSyntaxTarget, buildConfigSchema, copyMappingSchema, defaultConfig, defineConfig as defineConfig$1, definePlugin, effectiveUserConfigSchema, formatConfigSchema, isUnpluginAdapter, isWebAnvilPlugin, lintConfigSchema, loadConfig, resolveEffectiveBuildConfig, resolveRolldownPlugins, resolveVitePlugins, rolldownConfigSchema, storybookConfigSchema, syntaxTargetSchema, testConfigSchema, userConfigSchema, viteConfigSchema, withConfig } from "./_chunks/config.mjs";
|
|
3
3
|
function defineConfig(config) {
|
|
4
4
|
return defineConfig$1(config);
|
|
5
5
|
}
|
|
6
|
-
export { assertSyntaxTarget, build, build_default as buildCommand, buildConfigSchema, bundle, check, check_default as checkCommand, checkProject, clean, clean_default as cleanCommand, copy, copyMappingSchema, coverage, debug, declaration, defaultConfig, defineConfig, definePlugin, dev, dev_default as devCommand, e2e, e2e_default as e2eCommand, effectiveUserConfigSchema, entry, environment, filters, fix, format, format_default as formatCommand, formatConfigSchema, formats, headed, host, isUnpluginAdapter, isWebAnvilPlugin, lint, lint_default as lintCommand, lintConfigSchema, loadConfig, minify, mode, open, outDir, paths, platform, port, preview, preview_default as previewCommand, project, resolveEffectiveBuildConfig, resolveRolldownPlugins, resolveVitePlugins, rolldownConfigSchema, sourcemap, storybookConfigSchema, syntaxTargetSchema, target, test, test_default as testCommand, testConfigSchema, typecheck, typecheck_default as typecheckCommand, ui, uiPort, userConfigSchema, viteConfigSchema, watch, withConfig };
|
|
6
|
+
export { assertSyntaxTarget, build, build_default as buildCommand, buildConfigSchema, bundle, check, check_default as checkCommand, checkProject, clean, clean_default as cleanCommand, copy, copyMappingSchema, coverage, debug, declaration, defaultConfig, defineConfig, definePlugin, dev, dev_default as devCommand, e2e, e2e_default as e2eCommand, effectiveUserConfigSchema, entry, environment, filters, fix, format, format_default as formatCommand, formatConfigSchema, formats, headed, host, isUnpluginAdapter, isWebAnvilPlugin, lint, lint_default as lintCommand, lintConfigSchema, loadConfig, minify, mode, open, outDir, paths, platform, port, preview, preview_default as previewCommand, project, resolveEffectiveBuildConfig, resolveRolldownPlugins, resolveVitePlugins, rolldownConfigSchema, sourcemap, storybook, storybookConfigSchema, syntaxTargetSchema, target, test, test_default as testCommand, testConfigSchema, typecheck, typecheck_default as typecheckCommand, ui, uiPort, userConfigSchema, viteConfigSchema, watch, withConfig };
|