@vueless/nuxt 0.0.2 → 0.0.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.d.mts +7 -1
- package/dist/module.d.ts +7 -1
- package/dist/module.json +1 -1
- package/dist/module.mjs +11 -4
- package/dist/package.json +3 -2
- package/dist/runtime/plugin.js +1 -1
- package/package.json +3 -2
package/dist/module.d.mts
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
import * as _nuxt_schema from '@nuxt/schema';
|
|
2
2
|
|
|
3
|
-
declare const _default: _nuxt_schema.NuxtModule<
|
|
3
|
+
declare const _default: _nuxt_schema.NuxtModule<{
|
|
4
|
+
mirrorCacheDir: string;
|
|
5
|
+
debug: boolean;
|
|
6
|
+
}, {
|
|
7
|
+
mirrorCacheDir: string;
|
|
8
|
+
debug: boolean;
|
|
9
|
+
}, false>;
|
|
4
10
|
|
|
5
11
|
export { _default as default };
|
package/dist/module.d.ts
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
import * as _nuxt_schema from '@nuxt/schema';
|
|
2
2
|
|
|
3
|
-
declare const _default: _nuxt_schema.NuxtModule<
|
|
3
|
+
declare const _default: _nuxt_schema.NuxtModule<{
|
|
4
|
+
mirrorCacheDir: string;
|
|
5
|
+
debug: boolean;
|
|
6
|
+
}, {
|
|
7
|
+
mirrorCacheDir: string;
|
|
8
|
+
debug: boolean;
|
|
9
|
+
}, false>;
|
|
4
10
|
|
|
5
11
|
export { _default as default };
|
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -15,7 +15,7 @@ async function installTailwind(_nuxt = useNuxt()) {
|
|
|
15
15
|
write: true,
|
|
16
16
|
getContents: async () => `
|
|
17
17
|
import forms from "@tailwindcss/forms";
|
|
18
|
-
import { getSafelist, vuelessTailwindConfig } from "vueless/preset-tailwind
|
|
18
|
+
import { getSafelist, vuelessTailwindConfig } from "vueless/preset-tailwind";
|
|
19
19
|
|
|
20
20
|
export default {
|
|
21
21
|
plugins: [forms],
|
|
@@ -25,7 +25,8 @@ async function installTailwind(_nuxt = useNuxt()) {
|
|
|
25
25
|
`
|
|
26
26
|
});
|
|
27
27
|
const configPaths = [vuelessConfigFile.dst, join(_nuxt.options.rootDir, "tailwind.config")];
|
|
28
|
-
const { configPath
|
|
28
|
+
const { configPath = [], ...twModuleConfig } = _nuxt.options.tailwindcss ?? {};
|
|
29
|
+
const userConfigPath = configPath;
|
|
29
30
|
if (typeof userConfigPath === "string") {
|
|
30
31
|
configPaths.push(userConfigPath);
|
|
31
32
|
} else {
|
|
@@ -45,13 +46,19 @@ const module = defineNuxtModule({
|
|
|
45
46
|
nuxt: ">=3.13.0"
|
|
46
47
|
}
|
|
47
48
|
},
|
|
48
|
-
defaults: {
|
|
49
|
+
defaults: {
|
|
50
|
+
mirrorCacheDir: "",
|
|
51
|
+
debug: false
|
|
52
|
+
},
|
|
49
53
|
async setup(_options, _nuxt) {
|
|
50
54
|
const { resolve } = createResolver(import.meta.url);
|
|
55
|
+
const { mirrorCacheDir, debug } = _options;
|
|
51
56
|
_nuxt.options.build.transpile.push("vueless", "tailwindcss");
|
|
52
57
|
_nuxt.hook("vite:extendConfig", (config) => {
|
|
53
58
|
config.plugins = config.plugins || [];
|
|
54
|
-
config.plugins.push(
|
|
59
|
+
config.plugins.push(
|
|
60
|
+
Vueless({ mode: "nuxt-module", mirrorCacheDir, debug })
|
|
61
|
+
);
|
|
55
62
|
});
|
|
56
63
|
await installTailwind(_nuxt);
|
|
57
64
|
addPlugin(resolve("./runtime/plugin"));
|
package/dist/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vueless/nuxt",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.4",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "Nuxt Styleless UI Component Library, powered by Tailwind CSS.",
|
|
6
6
|
"keywords": [
|
|
@@ -40,6 +40,7 @@
|
|
|
40
40
|
"scripts": {
|
|
41
41
|
"dev": "nuxi dev playground",
|
|
42
42
|
"dev:build": "nuxi build playground",
|
|
43
|
+
"dev:preview": "nuxi preview playground",
|
|
43
44
|
"dev:prepare": "nuxt-module-build build --stub && nuxt-module-build prepare && nuxi prepare playground",
|
|
44
45
|
"prepack": "nuxt-module-build build && cp package.json LICENSE README.md dist/",
|
|
45
46
|
"release:patch": "release-it patch --ci --npm.publish",
|
|
@@ -57,7 +58,7 @@
|
|
|
57
58
|
"@nuxtjs/tailwindcss": "^6.12.1",
|
|
58
59
|
"defu": "^6.1.4",
|
|
59
60
|
"pathe": "^1.1.2",
|
|
60
|
-
"vueless": "^0.0.
|
|
61
|
+
"vueless": "^0.0.696"
|
|
61
62
|
},
|
|
62
63
|
"devDependencies": {
|
|
63
64
|
"@material-symbols/svg-500": "^0.25.0",
|
package/dist/runtime/plugin.js
CHANGED
|
@@ -4,7 +4,7 @@ import vTooltip from "vueless/directives/tooltip/vTooltip";
|
|
|
4
4
|
import { defineNuxtPlugin } from "#app";
|
|
5
5
|
export default defineNuxtPlugin((_nuxtApp) => {
|
|
6
6
|
const vueless = createVueless();
|
|
7
|
-
_nuxtApp.vueApp.use(vueless,
|
|
7
|
+
_nuxtApp.vueApp.use(vueless, []);
|
|
8
8
|
_nuxtApp.vueApp.directive("clickOutside", vClickOutside);
|
|
9
9
|
_nuxtApp.vueApp.directive("tooltip", vTooltip);
|
|
10
10
|
if (import.meta.server) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vueless/nuxt",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.4",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "Nuxt Styleless UI Component Library, powered by Tailwind CSS.",
|
|
6
6
|
"keywords": [
|
|
@@ -40,6 +40,7 @@
|
|
|
40
40
|
"scripts": {
|
|
41
41
|
"dev": "nuxi dev playground",
|
|
42
42
|
"dev:build": "nuxi build playground",
|
|
43
|
+
"dev:preview": "nuxi preview playground",
|
|
43
44
|
"dev:prepare": "nuxt-module-build build --stub && nuxt-module-build prepare && nuxi prepare playground",
|
|
44
45
|
"prepack": "nuxt-module-build build && cp package.json LICENSE README.md dist/",
|
|
45
46
|
"release:patch": "release-it patch --ci --npm.publish",
|
|
@@ -57,7 +58,7 @@
|
|
|
57
58
|
"@nuxtjs/tailwindcss": "^6.12.1",
|
|
58
59
|
"defu": "^6.1.4",
|
|
59
60
|
"pathe": "^1.1.2",
|
|
60
|
-
"vueless": "^0.0.
|
|
61
|
+
"vueless": "^0.0.696"
|
|
61
62
|
},
|
|
62
63
|
"devDependencies": {
|
|
63
64
|
"@material-symbols/svg-500": "^0.25.0",
|