@vueless/nuxt 1.2.1-beta.2 → 1.2.1-beta.4
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 +1 -12
- package/dist/package.json +9 -9
- package/dist/runtime/plugin.js +1 -4
- package/package.json +9 -9
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -1,10 +1,7 @@
|
|
|
1
|
-
import fs from 'node:fs';
|
|
2
|
-
import path from 'node:path';
|
|
3
1
|
import { defineNuxtModule, createResolver, hasNuxtModule, addPlugin, addComponent, addImportsDir } from '@nuxt/kit';
|
|
4
2
|
import { TailwindCSS, Vueless } from 'vueless/plugin-vite';
|
|
5
|
-
import { getVuelessConfig } from 'vueless/utils/node/vuelessConfig.js';
|
|
6
3
|
import { autoImportUserConfigs, cacheMergedConfigs } from 'vueless/utils/node/helper.js';
|
|
7
|
-
import { NUXT_MODULE_ENV,
|
|
4
|
+
import { NUXT_MODULE_ENV, VUELESS_PACKAGE_DIR, COMPONENTS } from 'vueless/constants.js';
|
|
8
5
|
|
|
9
6
|
const module = defineNuxtModule({
|
|
10
7
|
meta: {
|
|
@@ -24,7 +21,6 @@ const module = defineNuxtModule({
|
|
|
24
21
|
if (_nuxt.options._prepare) return;
|
|
25
22
|
const { resolve } = createResolver(import.meta.url);
|
|
26
23
|
const { include, debug, postcss, basePath } = _options;
|
|
27
|
-
_nuxt.options.runtimeConfig.public.vueless = await getVuelessConfig(basePath);
|
|
28
24
|
if (hasNuxtModule("@nuxtjs/i18n")) {
|
|
29
25
|
_nuxt.hook("i18n:registerModule", (register) => {
|
|
30
26
|
register({
|
|
@@ -42,13 +38,6 @@ const module = defineNuxtModule({
|
|
|
42
38
|
Vueless({ env: NUXT_MODULE_ENV, basePath, debug, include })
|
|
43
39
|
);
|
|
44
40
|
});
|
|
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
|
-
});
|
|
52
41
|
await autoImportUserConfigs(basePath);
|
|
53
42
|
await cacheMergedConfigs(VUELESS_PACKAGE_DIR);
|
|
54
43
|
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.4",
|
|
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",
|
|
@@ -30,21 +30,21 @@
|
|
|
30
30
|
"sb:preview": "vite preview --host --outDir=storybook-static"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"vueless": "^1.2.
|
|
33
|
+
"vueless": "^1.2.6"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
|
-
"@material-symbols/svg-500": "^0.
|
|
37
|
-
"@nuxt/devtools": "^2.6.
|
|
38
|
-
"@nuxt/eslint-config": "^1.
|
|
39
|
-
"@nuxt/kit": "^4.
|
|
36
|
+
"@material-symbols/svg-500": "^0.35.0",
|
|
37
|
+
"@nuxt/devtools": "^2.6.3",
|
|
38
|
+
"@nuxt/eslint-config": "^1.9.0",
|
|
39
|
+
"@nuxt/kit": "^4.1.1",
|
|
40
40
|
"@nuxt/module-builder": "^1.0.2",
|
|
41
|
-
"@nuxt/schema": "^4.
|
|
41
|
+
"@nuxt/schema": "^4.1.1",
|
|
42
42
|
"@nuxt/test-utils": "^3.19.2",
|
|
43
43
|
"@types/node": "latest",
|
|
44
|
-
"@vueless/storybook": "^1.2.
|
|
44
|
+
"@vueless/storybook": "^1.2.6",
|
|
45
45
|
"changelogen": "^0.6.2",
|
|
46
46
|
"eslint": "^9.33.0",
|
|
47
|
-
"nuxt": "^4.
|
|
47
|
+
"nuxt": "^4.1.1",
|
|
48
48
|
"release-it": "^19.0.4",
|
|
49
49
|
"typescript": "latest",
|
|
50
50
|
"vitest": "^3.2.4",
|
package/dist/runtime/plugin.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineNuxtPlugin
|
|
1
|
+
import { defineNuxtPlugin } from "#app";
|
|
2
2
|
import {
|
|
3
3
|
getTheme,
|
|
4
4
|
setTheme,
|
|
@@ -24,9 +24,6 @@ import {
|
|
|
24
24
|
} from "vueless/constants";
|
|
25
25
|
export default defineNuxtPlugin((_nuxtApp) => {
|
|
26
26
|
const vuelessOptions = {};
|
|
27
|
-
if (!import.meta.env.DEV) {
|
|
28
|
-
vuelessOptions.config = useRuntimeConfig().public.vueless;
|
|
29
|
-
}
|
|
30
27
|
if ("$i18n" in _nuxtApp) {
|
|
31
28
|
vuelessOptions.i18n = {
|
|
32
29
|
adapter: createVueI18nAdapter({ global: _nuxtApp.$i18n })
|
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.4",
|
|
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",
|
|
@@ -30,21 +30,21 @@
|
|
|
30
30
|
"sb:preview": "vite preview --host --outDir=storybook-static"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"vueless": "^1.2.
|
|
33
|
+
"vueless": "^1.2.6"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
|
-
"@material-symbols/svg-500": "^0.
|
|
37
|
-
"@nuxt/devtools": "^2.6.
|
|
38
|
-
"@nuxt/eslint-config": "^1.
|
|
39
|
-
"@nuxt/kit": "^4.
|
|
36
|
+
"@material-symbols/svg-500": "^0.35.0",
|
|
37
|
+
"@nuxt/devtools": "^2.6.3",
|
|
38
|
+
"@nuxt/eslint-config": "^1.9.0",
|
|
39
|
+
"@nuxt/kit": "^4.1.1",
|
|
40
40
|
"@nuxt/module-builder": "^1.0.2",
|
|
41
|
-
"@nuxt/schema": "^4.
|
|
41
|
+
"@nuxt/schema": "^4.1.1",
|
|
42
42
|
"@nuxt/test-utils": "^3.19.2",
|
|
43
43
|
"@types/node": "latest",
|
|
44
|
-
"@vueless/storybook": "^1.2.
|
|
44
|
+
"@vueless/storybook": "^1.2.6",
|
|
45
45
|
"changelogen": "^0.6.2",
|
|
46
46
|
"eslint": "^9.33.0",
|
|
47
|
-
"nuxt": "^4.
|
|
47
|
+
"nuxt": "^4.1.1",
|
|
48
48
|
"release-it": "^19.0.4",
|
|
49
49
|
"typescript": "latest",
|
|
50
50
|
"vitest": "^3.2.4",
|