vueless 0.0.741 → 0.0.742

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vueless",
3
- "version": "0.0.741",
3
+ "version": "0.0.742",
4
4
  "license": "MIT",
5
5
  "description": "Vue Styleless UI Component Library, powered by Tailwind CSS.",
6
6
  "keywords": [
package/plugin-vite.js CHANGED
@@ -8,7 +8,7 @@ import UnpluginVueComponents from "unplugin-vue-components/vite";
8
8
  import { loadSvg } from "./utils/node/loaderSvg.js";
9
9
  import { cacheIcons, removeIconsCache, copyIconsCache } from "./utils/node/loaderIcon.js";
10
10
  import { createTailwindSafelist, clearTailwindSafelist } from "./utils/node/tailwindSafelist.js";
11
- import { getNuxtFiles, getVueFiles } from "./utils/node/helper.js";
11
+ import { getNuxtDirs, getVueDirs, getVuelessConfigDirs } from "./utils/node/helper.js";
12
12
  import { componentResolver, directiveResolver } from "./utils/node/vuelessResolver.js";
13
13
  import { setCustomPropTypes, removeCustomPropTypes } from "./utils/node/dynamicProps.js";
14
14
  import { buildWebTypes } from "./utils/node/webTypes.js";
@@ -35,7 +35,11 @@ export const Vueless = function (options = {}) {
35
35
  const isVuelessEnv = env === "vueless";
36
36
  const isNuxt = mode === "nuxt-module";
37
37
 
38
- const targetFiles = [...(include || []), ...(isNuxt ? getNuxtFiles() : getVueFiles())];
38
+ const targetFiles = [
39
+ ...(include || []),
40
+ ...getVuelessConfigDirs(),
41
+ ...(isNuxt ? getNuxtDirs() : getVueDirs()),
42
+ ];
39
43
 
40
44
  /* if server stopped by developer (Ctrl+C) */
41
45
  process.on("SIGINT", async () => {
@@ -51,7 +51,7 @@ export async function getDirFiles(dirPath, ext, { recursive = true, exclude = []
51
51
  .filter((filePath) => !statSync(filePath).isDirectory());
52
52
  }
53
53
 
54
- export function getNuxtFiles() {
54
+ export function getNuxtDirs() {
55
55
  return [
56
56
  path.join(cwd(), "composables"),
57
57
  path.join(cwd(), "components"),
@@ -68,10 +68,14 @@ export function getNuxtFiles() {
68
68
  ];
69
69
  }
70
70
 
71
- export function getVueFiles() {
71
+ export function getVueDirs() {
72
72
  return [path.join(cwd(), "src")];
73
73
  }
74
74
 
75
+ export function getVuelessConfigDirs() {
76
+ return [path.join(cwd(), ".vueless")];
77
+ }
78
+
75
79
  export async function getComponentDefaultConfig(name, entryPath) {
76
80
  const configOutPath = path.join(cwd(), `${VUELESS_CONFIGS_CACHED_DIR}/${name}.mjs`);
77
81