@vueless/nuxt 1.2.1-beta.1 → 1.2.1-beta.2
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/module.json +1 -1
- package/dist/module.mjs +10 -1
- package/dist/package.json +1 -1
- package/dist/runtime/plugin.js +0 -1
- package/package.json +1 -1
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
|
+
import fs from 'node:fs';
|
|
2
|
+
import path from 'node:path';
|
|
1
3
|
import { defineNuxtModule, createResolver, hasNuxtModule, addPlugin, addComponent, addImportsDir } from '@nuxt/kit';
|
|
2
4
|
import { TailwindCSS, Vueless } from 'vueless/plugin-vite';
|
|
3
5
|
import { getVuelessConfig } from 'vueless/utils/node/vuelessConfig.js';
|
|
4
6
|
import { autoImportUserConfigs, cacheMergedConfigs } from 'vueless/utils/node/helper.js';
|
|
5
|
-
import { NUXT_MODULE_ENV, VUELESS_PACKAGE_DIR, COMPONENTS } from 'vueless/constants';
|
|
7
|
+
import { NUXT_MODULE_ENV, VUELESS_CACHE_DIR, VUELESS_CONFIG_FILE_NAME, VUELESS_PACKAGE_DIR, COMPONENTS } from 'vueless/constants';
|
|
6
8
|
|
|
7
9
|
const module = defineNuxtModule({
|
|
8
10
|
meta: {
|
|
@@ -40,6 +42,13 @@ const module = defineNuxtModule({
|
|
|
40
42
|
Vueless({ env: NUXT_MODULE_ENV, basePath, debug, include })
|
|
41
43
|
);
|
|
42
44
|
});
|
|
45
|
+
_nuxt.hook("nitro:build:public-assets", (nitro) => {
|
|
46
|
+
const vuelessConfigPath = `${VUELESS_CACHE_DIR}/${VUELESS_CONFIG_FILE_NAME}.mjs`;
|
|
47
|
+
const src = path.resolve(vuelessConfigPath);
|
|
48
|
+
const dest = path.join(nitro.options.output.dir, vuelessConfigPath);
|
|
49
|
+
fs.mkdirSync(path.dirname(dest), { recursive: true });
|
|
50
|
+
fs.copyFileSync(src, dest);
|
|
51
|
+
});
|
|
43
52
|
await autoImportUserConfigs(basePath);
|
|
44
53
|
await cacheMergedConfigs(VUELESS_PACKAGE_DIR);
|
|
45
54
|
addPlugin(resolve("./runtime/plugin"));
|
package/dist/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vueless/nuxt",
|
|
3
|
-
"version": "1.2.1-beta.
|
|
3
|
+
"version": "1.2.1-beta.2",
|
|
4
4
|
"description": "Nuxt Styleless UI Component Library, powered by Tailwind CSS.",
|
|
5
5
|
"author": "Johnny Grid <hello@vueless.com> (https://vueless.com)",
|
|
6
6
|
"homepage": "https://vueless.com",
|
package/dist/runtime/plugin.js
CHANGED
|
@@ -63,7 +63,6 @@ export default defineNuxtPlugin((_nuxtApp) => {
|
|
|
63
63
|
disabledOpacity: cookies?.[`vl-${DISABLED_OPACITY}`],
|
|
64
64
|
letterSpacing: cookies?.[`vl-${LETTER_SPACING}`]
|
|
65
65
|
});
|
|
66
|
-
console.log("normalizedThemeParams", normalizedThemeParams);
|
|
67
66
|
const theme = getTheme(normalizedThemeParams);
|
|
68
67
|
const themeRootVariables = setTheme(theme);
|
|
69
68
|
const colorModeClass = theme.colorMode === ColorMode.Dark ? DARK_MODE_CLASS : LIGHT_MODE_CLASS;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vueless/nuxt",
|
|
3
|
-
"version": "1.2.1-beta.
|
|
3
|
+
"version": "1.2.1-beta.2",
|
|
4
4
|
"description": "Nuxt Styleless UI Component Library, powered by Tailwind CSS.",
|
|
5
5
|
"author": "Johnny Grid <hello@vueless.com> (https://vueless.com)",
|
|
6
6
|
"homepage": "https://vueless.com",
|