boss-css 0.0.23 → 0.0.25
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/_virtual/{rolldown_runtime.cjs → _rolldown/runtime.cjs} +14 -24
- package/dist/_virtual/_rolldown/runtime.mjs +14 -0
- package/dist/ai/server.cjs +15 -16
- package/dist/ai/server.mjs +4 -6
- package/dist/ai/skills.cjs +2 -3
- package/dist/ai/skills.mjs +1 -2
- package/dist/api/browser.cjs +11 -12
- package/dist/api/browser.mjs +1 -3
- package/dist/api/config.cjs +6 -7
- package/dist/api/config.mjs +1 -3
- package/dist/api/css.cjs +1 -3
- package/dist/api/css.mjs +1 -2
- package/dist/api/dictionary.cjs +1 -3
- package/dist/api/dictionary.mjs +1 -2
- package/dist/api/file/dts.cjs +2 -4
- package/dist/api/file/dts.mjs +1 -3
- package/dist/api/file/file.cjs +4 -6
- package/dist/api/file/file.mjs +1 -3
- package/dist/api/file/js.cjs +6 -8
- package/dist/api/file/js.mjs +2 -4
- package/dist/api/file/text.cjs +2 -4
- package/dist/api/file/text.mjs +1 -3
- package/dist/api/names.cjs +1 -3
- package/dist/api/names.mjs +1 -3
- package/dist/api/noopCss.cjs +2 -3
- package/dist/api/noopCss.mjs +1 -2
- package/dist/api/propTree.cjs +1 -3
- package/dist/api/propTree.mjs +1 -2
- package/dist/api/server.cjs +15 -16
- package/dist/api/server.mjs +1 -3
- package/dist/cli/build.cjs +1 -1
- package/dist/cli/build.mjs +2 -3
- package/dist/cli/index.cjs +5 -7
- package/dist/cli/index.mjs +1 -3
- package/dist/cli/tasks/build.cjs +4 -7
- package/dist/cli/tasks/build.mjs +1 -4
- package/dist/cli/tasks/choose.cjs +3 -6
- package/dist/cli/tasks/choose.mjs +1 -4
- package/dist/cli/tasks/compile.cjs +3 -6
- package/dist/cli/tasks/compile.mjs +1 -4
- package/dist/cli/tasks/dev.cjs +8 -11
- package/dist/cli/tasks/dev.mjs +2 -5
- package/dist/cli/tasks/init.cjs +163 -44
- package/dist/cli/tasks/init.mjs +135 -17
- package/dist/cli/tasks/watch.cjs +3 -6
- package/dist/cli/tasks/watch.mjs +1 -4
- package/dist/cli/templates/init.cjs +1 -3
- package/dist/cli/templates/init.mjs +1 -2
- package/dist/cli/types.cjs +2 -4
- package/dist/cli/types.mjs +2 -4
- package/dist/cli/utils.cjs +2 -4
- package/dist/cli/utils.mjs +1 -3
- package/dist/compile/classname-strategy.cjs +3 -5
- package/dist/compile/classname-strategy.mjs +1 -3
- package/dist/compile/classname.cjs +6 -8
- package/dist/compile/classname.mjs +5 -7
- package/dist/compile/index.cjs +18 -20
- package/dist/compile/index.mjs +6 -8
- package/dist/compile/jsx.cjs +8 -10
- package/dist/compile/jsx.mjs +6 -8
- package/dist/compile/prepared.cjs +3 -5
- package/dist/compile/prepared.mjs +1 -3
- package/dist/compile/runtime.cjs +4 -5
- package/dist/compile/runtime.mjs +1 -3
- package/dist/compile/transform.cjs +7 -9
- package/dist/compile/transform.mjs +3 -5
- package/dist/cx/index.cjs +6 -7
- package/dist/cx/index.mjs +3 -5
- package/dist/detect-fw/index.cjs +6 -7
- package/dist/detect-fw/index.mjs +1 -3
- package/dist/dev/client.cjs +2 -3
- package/dist/dev/client.mjs +1 -2
- package/dist/dev/plugin/browser.cjs +2 -3
- package/dist/dev/plugin/browser.mjs +1 -2
- package/dist/dev/plugin/server.cjs +13 -14
- package/dist/dev/plugin/server.mjs +3 -5
- package/dist/dev/port.cjs +3 -5
- package/dist/dev/port.mjs +1 -3
- package/dist/dev/runtime.cjs +3 -5
- package/dist/dev/runtime.mjs +1 -3
- package/dist/dev/server.cjs +12 -13
- package/dist/dev/server.mjs +15 -17
- package/dist/dev/shared.cjs +1 -3
- package/dist/dev/shared.mjs +1 -2
- package/dist/eslint-plugin/index.cjs +10 -13
- package/dist/eslint-plugin/index.mjs +1 -4
- package/dist/eslint-plugin/rules/classnames-only.cjs +4 -6
- package/dist/eslint-plugin/rules/classnames-only.mjs +1 -3
- package/dist/eslint-plugin/rules/format-classnames.cjs +8 -10
- package/dist/eslint-plugin/rules/format-classnames.mjs +1 -3
- package/dist/eslint-plugin/rules/no-unknown-classes.cjs +5 -7
- package/dist/eslint-plugin/rules/no-unknown-classes.mjs +1 -3
- package/dist/eslint-plugin/rules/prefer-classnames.cjs +5 -7
- package/dist/eslint-plugin/rules/prefer-classnames.mjs +1 -3
- package/dist/eslint-plugin/rules/prefer-token-values.cjs +6 -8
- package/dist/eslint-plugin/rules/prefer-token-values.mjs +1 -3
- package/dist/eslint-plugin/rules/prefer-unitless-values.cjs +7 -9
- package/dist/eslint-plugin/rules/prefer-unitless-values.mjs +1 -3
- package/dist/eslint-plugin/rules/props-only.cjs +5 -7
- package/dist/eslint-plugin/rules/props-only.mjs +1 -3
- package/dist/eslint-plugin/rules/redundant-cx.cjs +3 -5
- package/dist/eslint-plugin/rules/redundant-cx.mjs +1 -3
- package/dist/eslint-plugin/rules/require-prop-functions.cjs +6 -8
- package/dist/eslint-plugin/rules/require-prop-functions.mjs +1 -3
- package/dist/eslint-plugin/utils/api.cjs +3 -5
- package/dist/eslint-plugin/utils/api.mjs +1 -3
- package/dist/eslint-plugin/utils/ast.cjs +1 -3
- package/dist/eslint-plugin/utils/ast.mjs +1 -2
- package/dist/eslint-plugin/utils/boss-classes.cjs +5 -7
- package/dist/eslint-plugin/utils/boss-classes.mjs +1 -3
- package/dist/eslint-plugin/utils/context.cjs +1 -3
- package/dist/eslint-plugin/utils/context.mjs +1 -2
- package/dist/eslint-plugin/utils/defaults.cjs +1 -3
- package/dist/eslint-plugin/utils/defaults.mjs +1 -2
- package/dist/eslint-plugin/utils/format.cjs +1 -3
- package/dist/eslint-plugin/utils/format.mjs +1 -2
- package/dist/eslint-plugin/utils/order.cjs +3 -5
- package/dist/eslint-plugin/utils/order.mjs +1 -3
- package/dist/eslint-plugin/utils/property-order.cjs +1 -3
- package/dist/eslint-plugin/utils/property-order.mjs +1 -2
- package/dist/eslint-plugin/utils/static.cjs +1 -3
- package/dist/eslint-plugin/utils/static.mjs +1 -2
- package/dist/fontsource/directory.cjs +1 -3
- package/dist/fontsource/directory.mjs +1 -2
- package/dist/fontsource/server.cjs +12 -13
- package/dist/fontsource/server.mjs +2 -4
- package/dist/index.cjs +6 -6
- package/dist/index.mjs +1 -2
- package/dist/log/browser.cjs +2 -4
- package/dist/log/browser.mjs +1 -3
- package/dist/log/server.cjs +6 -8
- package/dist/log/server.mjs +1 -3
- package/dist/merge/index.cjs +8 -9
- package/dist/merge/index.mjs +5 -7
- package/dist/native/browser.cjs +3 -4
- package/dist/native/browser.mjs +1 -3
- package/dist/native/server.cjs +7 -8
- package/dist/native/server.mjs +1 -3
- package/dist/native/styleTypes.cjs +5 -7
- package/dist/native/styleTypes.mjs +1 -3
- package/dist/parser/classname/server.cjs +17 -19
- package/dist/parser/classname/server.mjs +11 -13
- package/dist/parser/jsx/browser.cjs +7 -8
- package/dist/parser/jsx/browser.mjs +1 -3
- package/dist/parser/jsx/extractCode.cjs +2 -4
- package/dist/parser/jsx/extractCode.mjs +2 -3
- package/dist/parser/jsx/extractPrepared.cjs +3 -5
- package/dist/parser/jsx/extractPrepared.mjs +1 -3
- package/dist/parser/jsx/extractProps.cjs +3 -5
- package/dist/parser/jsx/extractProps.mjs +1 -3
- package/dist/parser/jsx/isDOMProp.cjs +3 -5
- package/dist/parser/jsx/isDOMProp.mjs +1 -3
- package/dist/parser/jsx/native.cjs +6 -7
- package/dist/parser/jsx/native.d.cts +2 -2
- package/dist/parser/jsx/native.d.mts +2 -2
- package/dist/parser/jsx/native.mjs +1 -3
- package/dist/parser/jsx/runtime.cjs +3 -3
- package/dist/parser/jsx/runtime.mjs +1 -2
- package/dist/parser/jsx/server.cjs +16 -17
- package/dist/parser/jsx/server.mjs +3 -5
- package/dist/postcss/index.cjs +2 -5
- package/dist/postcss/index.mjs +1 -4
- package/dist/prop/at/runtime-only.cjs +8 -9
- package/dist/prop/at/runtime-only.mjs +6 -8
- package/dist/prop/at/server.cjs +27 -28
- package/dist/prop/at/server.mjs +17 -19
- package/dist/prop/at/shared.cjs +1 -3
- package/dist/prop/at/shared.mjs +1 -2
- package/dist/prop/bosswind/browser.cjs +4 -5
- package/dist/prop/bosswind/browser.mjs +1 -3
- package/dist/prop/bosswind/runtime-only.cjs +4 -5
- package/dist/prop/bosswind/runtime-only.mjs +1 -3
- package/dist/prop/bosswind/selectors.cjs +1 -3
- package/dist/prop/bosswind/selectors.mjs +1 -2
- package/dist/prop/bosswind/server.cjs +12 -12
- package/dist/prop/bosswind/server.mjs +6 -7
- package/dist/prop/bosswind/shared.cjs +59 -9
- package/dist/prop/bosswind/shared.mjs +57 -8
- package/dist/prop/bosswind/tailwind-theme.cjs +2 -38
- package/dist/prop/bosswind/tailwind-theme.mjs +2 -37
- package/dist/prop/child/runtime-only.cjs +2 -3
- package/dist/prop/child/runtime-only.mjs +1 -2
- package/dist/prop/child/server.cjs +10 -11
- package/dist/prop/child/server.mjs +2 -4
- package/dist/prop/css/getDtsTemplate.cjs +7 -6
- package/dist/prop/css/getDtsTemplate.mjs +5 -4
- package/dist/prop/css/runtime-only.cjs +4 -5
- package/dist/prop/css/runtime-only.mjs +1 -3
- package/dist/prop/css/server.cjs +12 -13
- package/dist/prop/css/server.mjs +4 -6
- package/dist/prop/pseudo/runtime-only.cjs +3 -5
- package/dist/prop/pseudo/runtime-only.mjs +1 -3
- package/dist/prop/pseudo/server.cjs +19 -20
- package/dist/prop/pseudo/server.mjs +11 -13
- package/dist/prop/pseudo/shared.cjs +1 -3
- package/dist/prop/pseudo/shared.mjs +1 -2
- package/dist/reset/server.cjs +10 -11
- package/dist/reset/server.mjs +2 -4
- package/dist/runtime/index.cjs +5 -6
- package/dist/runtime/index.mjs +1 -3
- package/dist/runtime/preact.cjs +3 -3
- package/dist/runtime/preact.mjs +1 -2
- package/dist/runtime/qwik.cjs +3 -4
- package/dist/runtime/qwik.mjs +1 -3
- package/dist/runtime/react.cjs +3 -3
- package/dist/runtime/react.mjs +1 -2
- package/dist/runtime/solid.cjs +3 -4
- package/dist/runtime/solid.mjs +1 -3
- package/dist/runtime/stencil.cjs +4 -5
- package/dist/runtime/stencil.mjs +1 -3
- package/dist/runtime/style.cjs +2 -3
- package/dist/runtime/style.mjs +1 -2
- package/dist/shared/boundaries.cjs +4 -6
- package/dist/shared/boundaries.mjs +1 -3
- package/dist/shared/customCss.cjs +1 -3
- package/dist/shared/customCss.mjs +1 -2
- package/dist/shared/debug.cjs +2 -4
- package/dist/shared/debug.mjs +2 -3
- package/dist/shared/file.cjs +3 -5
- package/dist/shared/file.mjs +1 -3
- package/dist/shared/framework.cjs +1 -3
- package/dist/shared/framework.mjs +1 -2
- package/dist/shared/json.cjs +1 -3
- package/dist/shared/json.mjs +1 -2
- package/dist/shared/types.cjs +1 -3
- package/dist/shared/types.mjs +1 -2
- package/dist/strategy/classic/runtime-only.cjs +15 -16
- package/dist/strategy/classic/runtime-only.mjs +3 -5
- package/dist/strategy/classname-first/browser.cjs +7 -8
- package/dist/strategy/classname-first/browser.mjs +1 -3
- package/dist/strategy/classname-first/runtime-only.cjs +13 -14
- package/dist/strategy/classname-first/runtime-only.mjs +1 -3
- package/dist/strategy/classname-first/server.cjs +9 -11
- package/dist/strategy/classname-first/server.mjs +3 -5
- package/dist/strategy/classname-only/server.cjs +8 -10
- package/dist/strategy/classname-only/server.mjs +2 -4
- package/dist/strategy/inline-first/browser.cjs +6 -7
- package/dist/strategy/inline-first/browser.mjs +1 -3
- package/dist/strategy/inline-first/runtime-only.cjs +12 -13
- package/dist/strategy/inline-first/runtime-only.mjs +1 -3
- package/dist/strategy/inline-first/server.cjs +9 -11
- package/dist/strategy/inline-first/server.mjs +3 -5
- package/dist/strategy/runtime/runtime-only.cjs +6 -8
- package/dist/strategy/runtime/runtime-only.mjs +1 -4
- package/dist/strategy/runtime/server.cjs +11 -12
- package/dist/strategy/runtime/server.mjs +2 -4
- package/dist/strategy/runtime-only/css.cjs +5 -6
- package/dist/strategy/runtime-only/css.mjs +4 -5
- package/dist/tasks/build.cjs +8 -10
- package/dist/tasks/build.mjs +1 -3
- package/dist/tasks/compile.cjs +2 -4
- package/dist/tasks/compile.mjs +1 -3
- package/dist/tasks/postcss.cjs +11 -13
- package/dist/tasks/postcss.mjs +1 -3
- package/dist/tasks/session.cjs +4 -6
- package/dist/tasks/session.mjs +1 -3
- package/dist/tasks/watch.cjs +7 -9
- package/dist/tasks/watch.mjs +1 -3
- package/dist/transform/cache.cjs +1 -3
- package/dist/transform/cache.mjs +1 -2
- package/dist/transform/processFile.cjs +4 -6
- package/dist/transform/processFile.mjs +1 -3
- package/dist/use/token/browser.cjs +4 -5
- package/dist/use/token/browser.mjs +1 -3
- package/dist/use/token/normalize.cjs +1 -3
- package/dist/use/token/normalize.mjs +1 -2
- package/dist/use/token/propMap.cjs +1 -3
- package/dist/use/token/propMap.d.cts +1 -1
- package/dist/use/token/propMap.d.mts +1 -1
- package/dist/use/token/propMap.mjs +1 -2
- package/dist/use/token/runtime-only.cjs +5 -6
- package/dist/use/token/runtime-only.mjs +1 -3
- package/dist/use/token/server.cjs +13 -14
- package/dist/use/token/server.mjs +4 -6
- package/dist/use/token/vars.cjs +2 -4
- package/dist/use/token/vars.mjs +1 -3
- package/package.json +23 -23
- package/dist/_virtual/rolldown_runtime.mjs +0 -20
package/dist/cli/index.cjs
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
const
|
|
3
|
-
const require_api_config = require(
|
|
4
|
-
const require_utils = require(
|
|
2
|
+
const require_runtime = require("../_virtual/_rolldown/runtime.cjs");
|
|
3
|
+
const require_api_config = require("../api/config.cjs");
|
|
4
|
+
const require_utils = require("./utils.cjs");
|
|
5
5
|
let _clack_prompts = require("@clack/prompts");
|
|
6
6
|
let yargs_yargs = require("yargs/yargs");
|
|
7
|
-
yargs_yargs =
|
|
7
|
+
yargs_yargs = require_runtime.__toESM(yargs_yargs);
|
|
8
8
|
let yargs_helpers = require("yargs/helpers");
|
|
9
|
-
|
|
10
9
|
//#region src/cli/index.ts
|
|
11
10
|
(0, _clack_prompts.intro)("boss");
|
|
12
11
|
(async () => {
|
|
@@ -26,5 +25,4 @@ let yargs_helpers = require("yargs/helpers");
|
|
|
26
25
|
userConfig
|
|
27
26
|
});
|
|
28
27
|
})();
|
|
29
|
-
|
|
30
|
-
//#endregion
|
|
28
|
+
//#endregion
|
package/dist/cli/index.mjs
CHANGED
|
@@ -4,7 +4,6 @@ import { runTask } from "./utils.mjs";
|
|
|
4
4
|
import { intro } from "@clack/prompts";
|
|
5
5
|
import yargs from "yargs/yargs";
|
|
6
6
|
import { hideBin } from "yargs/helpers";
|
|
7
|
-
|
|
8
7
|
//#region src/cli/index.ts
|
|
9
8
|
intro("boss");
|
|
10
9
|
(async () => {
|
|
@@ -24,6 +23,5 @@ intro("boss");
|
|
|
24
23
|
userConfig
|
|
25
24
|
});
|
|
26
25
|
})();
|
|
27
|
-
|
|
28
26
|
//#endregion
|
|
29
|
-
export {
|
|
27
|
+
export {};
|
package/dist/cli/tasks/build.cjs
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
const require_build = require(
|
|
3
|
-
require(
|
|
1
|
+
require("../../_virtual/_rolldown/runtime.cjs");
|
|
2
|
+
const require_build = require("../../tasks/build.cjs");
|
|
3
|
+
require("../build.cjs");
|
|
4
4
|
let _clack_prompts = require("@clack/prompts");
|
|
5
|
-
|
|
6
5
|
//#region src/cli/tasks/build.ts
|
|
7
6
|
const build = async (config) => {
|
|
8
7
|
return [{ prompt: async () => {
|
|
@@ -18,7 +17,5 @@ const build = async (config) => {
|
|
|
18
17
|
}
|
|
19
18
|
} }];
|
|
20
19
|
};
|
|
21
|
-
var build_default = build;
|
|
22
|
-
|
|
23
20
|
//#endregion
|
|
24
|
-
exports.default =
|
|
21
|
+
exports.default = build;
|
package/dist/cli/tasks/build.mjs
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { runBuild } from "../../tasks/build.mjs";
|
|
2
2
|
import "../build.mjs";
|
|
3
3
|
import { log } from "@clack/prompts";
|
|
4
|
-
|
|
5
4
|
//#region src/cli/tasks/build.ts
|
|
6
5
|
const build = async (config) => {
|
|
7
6
|
return [{ prompt: async () => {
|
|
@@ -17,7 +16,5 @@ const build = async (config) => {
|
|
|
17
16
|
}
|
|
18
17
|
} }];
|
|
19
18
|
};
|
|
20
|
-
var build_default = build;
|
|
21
|
-
|
|
22
19
|
//#endregion
|
|
23
|
-
export {
|
|
20
|
+
export { build as default };
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
const require_utils = require(
|
|
1
|
+
require("../../_virtual/_rolldown/runtime.cjs");
|
|
2
|
+
const require_utils = require("../utils.cjs");
|
|
3
3
|
let _clack_prompts = require("@clack/prompts");
|
|
4
|
-
|
|
5
4
|
//#region src/cli/tasks/choose.ts
|
|
6
5
|
const chooseTask = async (config) => {
|
|
7
6
|
return [{ prompt: async () => {
|
|
@@ -41,7 +40,5 @@ const chooseTask = async (config) => {
|
|
|
41
40
|
return true;
|
|
42
41
|
} }];
|
|
43
42
|
};
|
|
44
|
-
var choose_default = chooseTask;
|
|
45
|
-
|
|
46
43
|
//#endregion
|
|
47
|
-
exports.default =
|
|
44
|
+
exports.default = chooseTask;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { cancelIf, runTask } from "../utils.mjs";
|
|
2
2
|
import { select } from "@clack/prompts";
|
|
3
|
-
|
|
4
3
|
//#region src/cli/tasks/choose.ts
|
|
5
4
|
const chooseTask = async (config) => {
|
|
6
5
|
return [{ prompt: async () => {
|
|
@@ -40,7 +39,5 @@ const chooseTask = async (config) => {
|
|
|
40
39
|
return true;
|
|
41
40
|
} }];
|
|
42
41
|
};
|
|
43
|
-
var choose_default = chooseTask;
|
|
44
|
-
|
|
45
42
|
//#endregion
|
|
46
|
-
export {
|
|
43
|
+
export { chooseTask as default };
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
const require_compile = require(
|
|
1
|
+
require("../../_virtual/_rolldown/runtime.cjs");
|
|
2
|
+
const require_compile = require("../../tasks/compile.cjs");
|
|
3
3
|
let _clack_prompts = require("@clack/prompts");
|
|
4
|
-
|
|
5
4
|
//#region src/cli/tasks/compile.ts
|
|
6
5
|
const compile = async (config) => {
|
|
7
6
|
return [{ prompt: async () => {
|
|
@@ -62,7 +61,5 @@ const coerceArgValue = (value) => {
|
|
|
62
61
|
if (value === "false") return false;
|
|
63
62
|
return value;
|
|
64
63
|
};
|
|
65
|
-
var compile_default = compile;
|
|
66
|
-
|
|
67
64
|
//#endregion
|
|
68
|
-
exports.default =
|
|
65
|
+
exports.default = compile;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { runCompile } from "../../tasks/compile.mjs";
|
|
2
2
|
import { log } from "@clack/prompts";
|
|
3
|
-
|
|
4
3
|
//#region src/cli/tasks/compile.ts
|
|
5
4
|
const compile = async (config) => {
|
|
6
5
|
return [{ prompt: async () => {
|
|
@@ -61,7 +60,5 @@ const coerceArgValue = (value) => {
|
|
|
61
60
|
if (value === "false") return false;
|
|
62
61
|
return value;
|
|
63
62
|
};
|
|
64
|
-
var compile_default = compile;
|
|
65
|
-
|
|
66
63
|
//#endregion
|
|
67
|
-
export {
|
|
64
|
+
export { compile as default };
|
package/dist/cli/tasks/dev.cjs
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
const
|
|
2
|
-
const require_shared = require(
|
|
3
|
-
const require_dev_server = require(
|
|
4
|
-
const require_port = require(
|
|
1
|
+
const require_runtime = require("../../_virtual/_rolldown/runtime.cjs");
|
|
2
|
+
const require_shared = require("../../dev/shared.cjs");
|
|
3
|
+
const require_dev_server = require("../../dev/server.cjs");
|
|
4
|
+
const require_port = require("../../dev/port.cjs");
|
|
5
5
|
let node_fs_promises = require("node:fs/promises");
|
|
6
|
-
node_fs_promises =
|
|
6
|
+
node_fs_promises = require_runtime.__toESM(node_fs_promises);
|
|
7
7
|
let node_path = require("node:path");
|
|
8
|
-
node_path =
|
|
8
|
+
node_path = require_runtime.__toESM(node_path);
|
|
9
9
|
let _clack_prompts = require("@clack/prompts");
|
|
10
|
-
|
|
11
10
|
//#region src/cli/tasks/dev.ts
|
|
12
11
|
const dev = async (config) => {
|
|
13
12
|
return [{ prompt: async () => {
|
|
@@ -21,7 +20,7 @@ const dev = async (config) => {
|
|
|
21
20
|
});
|
|
22
21
|
const configPath = await resolveConfigPath(userConfig);
|
|
23
22
|
if (configPath) {
|
|
24
|
-
if (!await require_port.updateDevPort(configPath, port, port !==
|
|
23
|
+
if (!await require_port.updateDevPort(configPath, port, port !== 48400)) _clack_prompts.log.warn(`Skipping devServer update for ${configPath}.`);
|
|
25
24
|
} else _clack_prompts.log.warn("No boss config found; skipping devServer update.");
|
|
26
25
|
const runtimeDir = userConfig.folder ?? configDir;
|
|
27
26
|
await require_port.updateRuntimePort(node_path.default.join(process.cwd(), runtimeDir, "index.js"), port);
|
|
@@ -45,7 +44,5 @@ const resolveConfigPath = async (userConfig) => {
|
|
|
45
44
|
}
|
|
46
45
|
return null;
|
|
47
46
|
};
|
|
48
|
-
var dev_default = dev;
|
|
49
|
-
|
|
50
47
|
//#endregion
|
|
51
|
-
exports.default =
|
|
48
|
+
exports.default = dev;
|
package/dist/cli/tasks/dev.mjs
CHANGED
|
@@ -4,7 +4,6 @@ import { updateDevPort, updateRuntimePort } from "../../dev/port.mjs";
|
|
|
4
4
|
import fs from "node:fs/promises";
|
|
5
5
|
import path from "node:path";
|
|
6
6
|
import { log } from "@clack/prompts";
|
|
7
|
-
|
|
8
7
|
//#region src/cli/tasks/dev.ts
|
|
9
8
|
const dev = async (config) => {
|
|
10
9
|
return [{ prompt: async () => {
|
|
@@ -18,7 +17,7 @@ const dev = async (config) => {
|
|
|
18
17
|
});
|
|
19
18
|
const configPath = await resolveConfigPath(userConfig);
|
|
20
19
|
if (configPath) {
|
|
21
|
-
if (!await updateDevPort(configPath, port, port !==
|
|
20
|
+
if (!await updateDevPort(configPath, port, port !== 48400)) log.warn(`Skipping devServer update for ${configPath}.`);
|
|
22
21
|
} else log.warn("No boss config found; skipping devServer update.");
|
|
23
22
|
const runtimeDir = userConfig.folder ?? configDir;
|
|
24
23
|
await updateRuntimePort(path.join(process.cwd(), runtimeDir, "index.js"), port);
|
|
@@ -42,7 +41,5 @@ const resolveConfigPath = async (userConfig) => {
|
|
|
42
41
|
}
|
|
43
42
|
return null;
|
|
44
43
|
};
|
|
45
|
-
var dev_default = dev;
|
|
46
|
-
|
|
47
44
|
//#endregion
|
|
48
|
-
export {
|
|
45
|
+
export { dev as default };
|
package/dist/cli/tasks/init.cjs
CHANGED
|
@@ -1,35 +1,34 @@
|
|
|
1
|
-
const
|
|
2
|
-
const require_api_server = require(
|
|
3
|
-
const require_json = require(
|
|
4
|
-
const require_utils = require(
|
|
5
|
-
const require_detect_fw_index = require(
|
|
6
|
-
const require_parser_jsx_server = require(
|
|
7
|
-
const require_parser_classname_server = require(
|
|
8
|
-
const require_prop_pseudo_server = require(
|
|
9
|
-
const require_prop_at_server = require(
|
|
10
|
-
const require_prop_child_server = require(
|
|
11
|
-
const require_prop_css_server = require(
|
|
12
|
-
const require_prop_bosswind_server = require(
|
|
13
|
-
const require_strategy_inline_first_server = require(
|
|
14
|
-
const require_strategy_classname_first_server = require(
|
|
15
|
-
const require_strategy_runtime_server = require(
|
|
16
|
-
const require_strategy_classname_only_server = require(
|
|
17
|
-
const require_reset_server = require(
|
|
18
|
-
const require_fontsource_server = require(
|
|
19
|
-
const require_use_token_server = require(
|
|
20
|
-
const require_ai_server = require(
|
|
21
|
-
const require_dev_plugin_server = require(
|
|
22
|
-
const require_init = require(
|
|
23
|
-
const require_types = require(
|
|
24
|
-
const require_types$1 = require(
|
|
1
|
+
const require_runtime = require("../../_virtual/_rolldown/runtime.cjs");
|
|
2
|
+
const require_api_server = require("../../api/server.cjs");
|
|
3
|
+
const require_json = require("../../shared/json.cjs");
|
|
4
|
+
const require_utils = require("../utils.cjs");
|
|
5
|
+
const require_detect_fw_index = require("../../detect-fw/index.cjs");
|
|
6
|
+
const require_parser_jsx_server = require("../../parser/jsx/server.cjs");
|
|
7
|
+
const require_parser_classname_server = require("../../parser/classname/server.cjs");
|
|
8
|
+
const require_prop_pseudo_server = require("../../prop/pseudo/server.cjs");
|
|
9
|
+
const require_prop_at_server = require("../../prop/at/server.cjs");
|
|
10
|
+
const require_prop_child_server = require("../../prop/child/server.cjs");
|
|
11
|
+
const require_prop_css_server = require("../../prop/css/server.cjs");
|
|
12
|
+
const require_prop_bosswind_server = require("../../prop/bosswind/server.cjs");
|
|
13
|
+
const require_strategy_inline_first_server = require("../../strategy/inline-first/server.cjs");
|
|
14
|
+
const require_strategy_classname_first_server = require("../../strategy/classname-first/server.cjs");
|
|
15
|
+
const require_strategy_runtime_server = require("../../strategy/runtime/server.cjs");
|
|
16
|
+
const require_strategy_classname_only_server = require("../../strategy/classname-only/server.cjs");
|
|
17
|
+
const require_reset_server = require("../../reset/server.cjs");
|
|
18
|
+
const require_fontsource_server = require("../../fontsource/server.cjs");
|
|
19
|
+
const require_use_token_server = require("../../use/token/server.cjs");
|
|
20
|
+
const require_ai_server = require("../../ai/server.cjs");
|
|
21
|
+
const require_dev_plugin_server = require("../../dev/plugin/server.cjs");
|
|
22
|
+
const require_init = require("../templates/init.cjs");
|
|
23
|
+
const require_types = require("../../shared/types.cjs");
|
|
24
|
+
const require_types$1 = require("../types.cjs");
|
|
25
25
|
let node_fs_promises = require("node:fs/promises");
|
|
26
|
-
node_fs_promises =
|
|
26
|
+
node_fs_promises = require_runtime.__toESM(node_fs_promises);
|
|
27
27
|
let node_path = require("node:path");
|
|
28
|
-
node_path =
|
|
28
|
+
node_path = require_runtime.__toESM(node_path);
|
|
29
29
|
let _clack_prompts = require("@clack/prompts");
|
|
30
30
|
let pluvo = require("pluvo");
|
|
31
|
-
pluvo =
|
|
32
|
-
|
|
31
|
+
pluvo = require_runtime.__toESM(pluvo);
|
|
33
32
|
//#region src/cli/tasks/init.ts
|
|
34
33
|
const EXTENSIONS = "html,js,jsx,mjs,cjs,ts,tsx,mdx,md";
|
|
35
34
|
const INIT_COMMENT_STYLES = {
|
|
@@ -197,6 +196,12 @@ const POSTCSS_CONFIG_FILES = [
|
|
|
197
196
|
".postcssrc.cjs",
|
|
198
197
|
".postcssrc.mjs"
|
|
199
198
|
];
|
|
199
|
+
const VITE_CONFIG_FILES = [
|
|
200
|
+
"vite.config.ts",
|
|
201
|
+
"vite.config.js",
|
|
202
|
+
"vite.config.mjs",
|
|
203
|
+
"vite.config.cjs"
|
|
204
|
+
];
|
|
200
205
|
const ESLINT_CONFIG_FILES = [
|
|
201
206
|
{
|
|
202
207
|
file: "eslint.config.js",
|
|
@@ -372,6 +377,7 @@ const init = async (config) => {
|
|
|
372
377
|
configDir: normalizedConfigDir,
|
|
373
378
|
packageJson: packageData
|
|
374
379
|
});
|
|
380
|
+
const nitroViteUpdate = await ensureNitroViteTraceDeps(cwd);
|
|
375
381
|
const packageManager = await detectPackageManager(cwd, config.runtimeType);
|
|
376
382
|
const installCommand = packageUpdate.bossCssAdded ? formatInstallCommand(packageManager) : null;
|
|
377
383
|
logInitSummary({
|
|
@@ -387,7 +393,8 @@ const init = async (config) => {
|
|
|
387
393
|
frameworkId: framework.id,
|
|
388
394
|
selectedStrategyId,
|
|
389
395
|
cssAutoLoad,
|
|
390
|
-
installCommand
|
|
396
|
+
installCommand,
|
|
397
|
+
nitroUpdated: nitroViteUpdate.updated
|
|
391
398
|
});
|
|
392
399
|
return true;
|
|
393
400
|
} }];
|
|
@@ -1086,7 +1093,7 @@ const findExportIdentifier = (content) => {
|
|
|
1086
1093
|
};
|
|
1087
1094
|
const findArrayBoundsByIdentifier = (content, identifier) => {
|
|
1088
1095
|
const escaped = escapeRegExp(identifier);
|
|
1089
|
-
const match = content.match(
|
|
1096
|
+
const match = content.match(new RegExp(`\\b(?:const|let|var)\\s+${escaped}\\s*=\\s*\\[`));
|
|
1090
1097
|
if (!match) return null;
|
|
1091
1098
|
if (match.index == null) return null;
|
|
1092
1099
|
const startIndex = match.index + match[0].length - 1;
|
|
@@ -1099,7 +1106,7 @@ const findArrayBoundsByIdentifier = (content, identifier) => {
|
|
|
1099
1106
|
};
|
|
1100
1107
|
const findDefineConfigArrayBoundsByIdentifier = (content, identifier) => {
|
|
1101
1108
|
const escaped = escapeRegExp(identifier);
|
|
1102
|
-
const match = content.match(
|
|
1109
|
+
const match = content.match(new RegExp(`\\b(?:const|let|var)\\s+${escaped}\\s*=\\s*defineConfig\\s*\\(`));
|
|
1103
1110
|
if (!match) return null;
|
|
1104
1111
|
if (match.index == null) return null;
|
|
1105
1112
|
return findDefineConfigArrayBounds(content, match.index + match[0].length - 1);
|
|
@@ -1118,7 +1125,7 @@ const findDefineConfigArrayBounds = (content, callStart) => {
|
|
|
1118
1125
|
};
|
|
1119
1126
|
const findObjectStartByIdentifier = (content, identifier) => {
|
|
1120
1127
|
const escaped = escapeRegExp(identifier);
|
|
1121
|
-
const match = content.match(
|
|
1128
|
+
const match = content.match(new RegExp(`\\b(?:const|let|var)\\s+${escaped}\\s*=\\s*\\{`));
|
|
1122
1129
|
if (!match) return null;
|
|
1123
1130
|
if (match.index == null) return null;
|
|
1124
1131
|
return match.index + match[0].length - 1;
|
|
@@ -1211,11 +1218,11 @@ const needsArrayComma = (content, bounds) => {
|
|
|
1211
1218
|
return lastChar !== "[" && lastChar !== ",";
|
|
1212
1219
|
};
|
|
1213
1220
|
const ensureArrayEntry = (content, key, entry) => {
|
|
1214
|
-
const arrayMatch = content.match(
|
|
1215
|
-
const stringMatch = !arrayMatch ? content.match(
|
|
1221
|
+
const arrayMatch = content.match(new RegExp(`${key}\\s*:\\s*\\[`));
|
|
1222
|
+
const stringMatch = !arrayMatch ? content.match(new RegExp(`${key}\\s*:\\s*(['"][^'"]+['"])`)) : null;
|
|
1216
1223
|
if (stringMatch) {
|
|
1217
|
-
const entryValue
|
|
1218
|
-
if (stringMatch[1].replace(/^['"]|['"]$/g, "") === entryValue
|
|
1224
|
+
const entryValue = entry.replace(/^['"]|['"]$/g, "");
|
|
1225
|
+
if (stringMatch[1].replace(/^['"]|['"]$/g, "") === entryValue) return {
|
|
1219
1226
|
updated: false,
|
|
1220
1227
|
content
|
|
1221
1228
|
};
|
|
@@ -1231,10 +1238,10 @@ const ensureArrayEntry = (content, key, entry) => {
|
|
|
1231
1238
|
updated: false,
|
|
1232
1239
|
content
|
|
1233
1240
|
};
|
|
1234
|
-
const insertion
|
|
1241
|
+
const insertion = `\n${`${getIndentFromIndex(content, objectStart)} `}${key}: [${entry}],`;
|
|
1235
1242
|
return {
|
|
1236
1243
|
updated: true,
|
|
1237
|
-
content: `${content.slice(0, objectStart + 1)}${insertion
|
|
1244
|
+
content: `${content.slice(0, objectStart + 1)}${insertion}${content.slice(objectStart + 1)}`
|
|
1238
1245
|
};
|
|
1239
1246
|
}
|
|
1240
1247
|
if (arrayMatch.index == null) return {
|
|
@@ -1248,7 +1255,7 @@ const ensureArrayEntry = (content, key, entry) => {
|
|
|
1248
1255
|
content
|
|
1249
1256
|
};
|
|
1250
1257
|
const entryValue = entry.replace(/^['"]|['"]$/g, "");
|
|
1251
|
-
if (
|
|
1258
|
+
if (new RegExp(`['"]${escapeRegExp(entryValue)}['"]`).test(content.slice(startIndex, endIndex))) return {
|
|
1252
1259
|
updated: false,
|
|
1253
1260
|
content
|
|
1254
1261
|
};
|
|
@@ -1258,6 +1265,93 @@ const ensureArrayEntry = (content, key, entry) => {
|
|
|
1258
1265
|
content: `${content.slice(0, endIndex)}${insertion}${content.slice(endIndex)}`
|
|
1259
1266
|
};
|
|
1260
1267
|
};
|
|
1268
|
+
const updateNitroViteConfigContent = (content) => {
|
|
1269
|
+
const nitroPattern = /\bnitro\s*\(/g;
|
|
1270
|
+
let next = content;
|
|
1271
|
+
let updated = false;
|
|
1272
|
+
let hasNitro = false;
|
|
1273
|
+
let unsupported = false;
|
|
1274
|
+
let offset = 0;
|
|
1275
|
+
while (true) {
|
|
1276
|
+
nitroPattern.lastIndex = offset;
|
|
1277
|
+
const match = nitroPattern.exec(next);
|
|
1278
|
+
if (!match) break;
|
|
1279
|
+
hasNitro = true;
|
|
1280
|
+
const callStart = match.index + match[0].length - 1;
|
|
1281
|
+
const callEnd = findMatchingIndex(next, callStart, "(", ")");
|
|
1282
|
+
if (callEnd === -1) {
|
|
1283
|
+
unsupported = true;
|
|
1284
|
+
break;
|
|
1285
|
+
}
|
|
1286
|
+
const rawArgs = next.slice(callStart + 1, callEnd);
|
|
1287
|
+
if (!rawArgs.trim()) {
|
|
1288
|
+
next = `${next.slice(0, callStart + 1)}{ traceDeps: ['jsdom'] }${next.slice(callEnd)}`;
|
|
1289
|
+
updated = true;
|
|
1290
|
+
offset = callStart + 1 + 24;
|
|
1291
|
+
continue;
|
|
1292
|
+
}
|
|
1293
|
+
const firstArgOffset = rawArgs.search(/\S/);
|
|
1294
|
+
if (firstArgOffset === -1) {
|
|
1295
|
+
next = `${next.slice(0, callStart + 1)}{ traceDeps: ['jsdom'] }${next.slice(callEnd)}`;
|
|
1296
|
+
updated = true;
|
|
1297
|
+
offset = callStart + 1 + 24;
|
|
1298
|
+
continue;
|
|
1299
|
+
}
|
|
1300
|
+
const objectStart = callStart + 1 + firstArgOffset;
|
|
1301
|
+
if (next[objectStart] !== "{") {
|
|
1302
|
+
unsupported = true;
|
|
1303
|
+
offset = callEnd + 1;
|
|
1304
|
+
continue;
|
|
1305
|
+
}
|
|
1306
|
+
const objectEnd = findMatchingIndex(next, objectStart, "{", "}");
|
|
1307
|
+
if (objectEnd === -1 || next.slice(objectEnd + 1, callEnd).trim()) {
|
|
1308
|
+
unsupported = true;
|
|
1309
|
+
offset = callEnd + 1;
|
|
1310
|
+
continue;
|
|
1311
|
+
}
|
|
1312
|
+
const objectText = next.slice(objectStart, objectEnd + 1);
|
|
1313
|
+
const updatedObject = ensureNitroTraceDepsInObject(objectText, getIndentFromIndex(next, objectStart));
|
|
1314
|
+
if (updatedObject !== objectText) {
|
|
1315
|
+
next = `${next.slice(0, objectStart)}${updatedObject}${next.slice(objectEnd + 1)}`;
|
|
1316
|
+
updated = true;
|
|
1317
|
+
offset = objectStart + updatedObject.length;
|
|
1318
|
+
continue;
|
|
1319
|
+
}
|
|
1320
|
+
offset = callEnd + 1;
|
|
1321
|
+
}
|
|
1322
|
+
return {
|
|
1323
|
+
content: next,
|
|
1324
|
+
updated,
|
|
1325
|
+
hasNitro,
|
|
1326
|
+
unsupported
|
|
1327
|
+
};
|
|
1328
|
+
};
|
|
1329
|
+
const ensureNitroTraceDepsInObject = (objectText, baseIndent) => {
|
|
1330
|
+
if (!objectText.startsWith("{") || !objectText.endsWith("}")) return objectText;
|
|
1331
|
+
const traceMatch = objectText.match(/\btraceDeps\s*:\s*\[/);
|
|
1332
|
+
if (!traceMatch) {
|
|
1333
|
+
if (objectText.trim() === "{}") return "{ traceDeps: ['jsdom'] }";
|
|
1334
|
+
if (!objectText.includes("\n")) return `{ traceDeps: ['jsdom'], ${objectText.slice(1, -1).trim()} }`;
|
|
1335
|
+
const entryIndent = `${baseIndent} `;
|
|
1336
|
+
return objectText.replace("{", `{\n${entryIndent}traceDeps: ['jsdom'],`);
|
|
1337
|
+
}
|
|
1338
|
+
const arrayStart = (traceMatch.index ?? 0) + traceMatch[0].length - 1;
|
|
1339
|
+
const arrayEnd = findMatchingIndex(objectText, arrayStart, "[", "]");
|
|
1340
|
+
if (arrayEnd === -1) return objectText;
|
|
1341
|
+
const arrayBody = objectText.slice(arrayStart + 1, arrayEnd);
|
|
1342
|
+
if (/['"]jsdom['"]/.test(arrayBody)) return objectText;
|
|
1343
|
+
const updatedArrayBody = appendTraceDep(arrayBody, `${baseIndent} `);
|
|
1344
|
+
return `${objectText.slice(0, arrayStart + 1)}${updatedArrayBody}${objectText.slice(arrayEnd)}`;
|
|
1345
|
+
};
|
|
1346
|
+
const appendTraceDep = (arrayBody, indent) => {
|
|
1347
|
+
if (!arrayBody.trim()) {
|
|
1348
|
+
if (!arrayBody.includes("\n")) return "'jsdom'";
|
|
1349
|
+
return `\n${indent}'jsdom'\n${arrayBody.match(/\n([ \t]*)$/)?.[1] ?? indent.slice(0, -2)}`;
|
|
1350
|
+
}
|
|
1351
|
+
if (!arrayBody.includes("\n")) return `${arrayBody.trim()}, 'jsdom'`;
|
|
1352
|
+
const trimmedEnd = arrayBody.replace(/\s*$/, "");
|
|
1353
|
+
return `${trimmedEnd}${/,\s*$/.test(trimmedEnd) ? "" : ","}\n${indent}'jsdom'\n${arrayBody.match(/\n([ \t]*)$/)?.[1] ?? indent.slice(0, -2)}`;
|
|
1354
|
+
};
|
|
1261
1355
|
const ensureAllowGlobalsRule = (rules) => {
|
|
1262
1356
|
const existing = rules["react/jsx-no-undef"];
|
|
1263
1357
|
if (Array.isArray(existing)) {
|
|
@@ -1512,7 +1606,7 @@ const insertManagedBlock = (content, lines) => {
|
|
|
1512
1606
|
const escapeRegExp = (value) => value.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
1513
1607
|
const hasImportPath = (content, importPath) => {
|
|
1514
1608
|
const escaped = escapeRegExp(importPath);
|
|
1515
|
-
return
|
|
1609
|
+
return new RegExp(`['"]${escaped}['"]`).test(content);
|
|
1516
1610
|
};
|
|
1517
1611
|
const insertImports = (content, importLines) => {
|
|
1518
1612
|
const lines = content.split("\n");
|
|
@@ -1711,6 +1805,31 @@ const ensureBossImport = (content, isEsm) => {
|
|
|
1711
1805
|
if (content.includes("const boss = require")) return content;
|
|
1712
1806
|
return `const boss = require('boss-css/postcss')\n${content}`;
|
|
1713
1807
|
};
|
|
1808
|
+
const detectViteConfigPath = async (cwd) => {
|
|
1809
|
+
for (const file of VITE_CONFIG_FILES) {
|
|
1810
|
+
const fullPath = node_path.default.join(cwd, file);
|
|
1811
|
+
if (await exists(fullPath)) return fullPath;
|
|
1812
|
+
}
|
|
1813
|
+
return null;
|
|
1814
|
+
};
|
|
1815
|
+
const ensureNitroViteTraceDeps = async (cwd) => {
|
|
1816
|
+
const viteConfigPath = await detectViteConfigPath(cwd);
|
|
1817
|
+
if (!viteConfigPath) return {
|
|
1818
|
+
updated: false,
|
|
1819
|
+
hasNitro: false
|
|
1820
|
+
};
|
|
1821
|
+
const update = updateNitroViteConfigContent(await node_fs_promises.default.readFile(viteConfigPath, "utf8"));
|
|
1822
|
+
if (update.unsupported) _clack_prompts.log.warn("Nitro detected in vite.config.*, but init could not safely add traceDeps: ['jsdom'].");
|
|
1823
|
+
if (!update.updated) return {
|
|
1824
|
+
updated: false,
|
|
1825
|
+
hasNitro: update.hasNitro
|
|
1826
|
+
};
|
|
1827
|
+
await node_fs_promises.default.writeFile(viteConfigPath, update.content);
|
|
1828
|
+
return {
|
|
1829
|
+
updated: true,
|
|
1830
|
+
hasNitro: update.hasNitro
|
|
1831
|
+
};
|
|
1832
|
+
};
|
|
1714
1833
|
const getIndentFromIndex = (content, index) => {
|
|
1715
1834
|
const lineStart = content.lastIndexOf("\n", index);
|
|
1716
1835
|
const match = content.slice(lineStart + 1).match(/^\s+/);
|
|
@@ -1817,7 +1936,7 @@ const exists = async (filePath) => {
|
|
|
1817
1936
|
return false;
|
|
1818
1937
|
}
|
|
1819
1938
|
};
|
|
1820
|
-
const logInitSummary = ({ configDir, isNext, postcssMode, postcssDetection, configFolder, srcRoot, globalsEnabled, eslintUpdated, useEslintPlugin, frameworkId, selectedStrategyId, cssAutoLoad, installCommand }) => {
|
|
1939
|
+
const logInitSummary = ({ configDir, isNext, postcssMode, postcssDetection, configFolder, srcRoot, globalsEnabled, eslintUpdated, useEslintPlugin, frameworkId, selectedStrategyId, cssAutoLoad, installCommand, nitroUpdated }) => {
|
|
1821
1940
|
_clack_prompts.log.info("boss init complete.");
|
|
1822
1941
|
_clack_prompts.log.message(`Generated Boss CSS config in ${configDir}`);
|
|
1823
1942
|
if (selectedStrategyId === "classname-only") _clack_prompts.log.message("Classname-only does not auto-load styles. Import styles.css manually.");
|
|
@@ -1859,10 +1978,10 @@ const logInitSummary = ({ configDir, isNext, postcssMode, postcssDetection, conf
|
|
|
1859
1978
|
_clack_prompts.log.message("Stencil note:");
|
|
1860
1979
|
_clack_prompts.log.message("- PostCSS setup is skipped; run `npx boss-css watch` for CSS generation.");
|
|
1861
1980
|
}
|
|
1981
|
+
if (nitroUpdated) _clack_prompts.log.message("Updated vite.config.* Nitro plugin with traceDeps: ['jsdom'].");
|
|
1862
1982
|
if (globalsEnabled) _clack_prompts.log.message("Global $$ enabled for JSX usage.");
|
|
1863
1983
|
if (eslintUpdated) _clack_prompts.log.message(useEslintPlugin ? "ESLint updated with Boss CSS plugin." : "ESLint updated with $$ globals.");
|
|
1864
1984
|
};
|
|
1865
|
-
var init_default = init;
|
|
1866
|
-
|
|
1867
1985
|
//#endregion
|
|
1868
|
-
exports.default =
|
|
1986
|
+
exports.default = init;
|
|
1987
|
+
exports.updateNitroViteConfigContent = updateNitroViteConfigContent;
|