@stacksjs/build 0.49.3 → 0.51.0

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/stacks.mjs CHANGED
@@ -10,7 +10,7 @@ import LinkAttributes from "markdown-it-link-attributes";
10
10
  import Shiki from "markdown-it-shiki";
11
11
  import { VitePWA } from "vite-plugin-pwa";
12
12
  import { defu } from "defu";
13
- import { componentsPath, frameworkPath, functionsPath, pagesPath, resolve, uiPath } from "@stacksjs/path";
13
+ import p, { resolve } from "@stacksjs/path";
14
14
  function inspect(options) {
15
15
  return Inspect(options);
16
16
  }
@@ -23,10 +23,10 @@ function components(options) {
23
23
  extensions: ["vue", "md"],
24
24
  include: [/\.vue$/, /\.vue\?vue/, /\.md$/],
25
25
  dirs: [
26
- componentsPath()
26
+ p.componentsPath()
27
27
  // pagesPath(),
28
28
  ],
29
- dts: frameworkPath("components.d.ts")
29
+ dts: p.frameworkPath("components.d.ts")
30
30
  };
31
31
  const newOptions = defu(options, defaultOptions);
32
32
  return Components(newOptions);
@@ -35,7 +35,7 @@ function pages(options) {
35
35
  const defaultOptions = {
36
36
  extensions: ["vue", "md"],
37
37
  dirs: [
38
- pagesPath()
38
+ p.pagesPath()
39
39
  ]
40
40
  };
41
41
  const newOptions = defu(options, defaultOptions);
@@ -62,7 +62,6 @@ function markdown(options) {
62
62
  return Markdown(newOptions);
63
63
  }
64
64
  function autoImports(options) {
65
- console.log("autoImports here?");
66
65
  const defaultOptions = {
67
66
  imports: [
68
67
  "vue",
@@ -71,22 +70,50 @@ function autoImports(options) {
71
70
  "@vueuse/core",
72
71
  "@vueuse/head",
73
72
  "@vueuse/math",
74
- "vitest"
75
- // { '@vueuse/shared': ['isClient', 'isDef', 'isBoolean', 'isFunction', 'isNumber', 'isString', 'isObject', 'isWindow', 'now', 'timestamp', 'clamp', 'noop', 'rand', 'isIOS', 'hasOwn'] },
73
+ "vitest",
74
+ { "@vueuse/shared": ["isClient", "isDef", "isBoolean", "isFunction", "isNumber", "isString", "isObject", "isWindow", "now", "timestamp", "clamp", "noop", "rand", "isIOS", "hasOwn"] }
76
75
  ],
77
76
  dirs: [
78
- functionsPath(),
79
- componentsPath()
80
- // projectPath('config'),
77
+ p.functionsPath(),
78
+ p.componentsPath(),
79
+ p.projectPath("config"),
81
80
  // auto imported utilities start here
82
- // arraysPath('src'),
83
- // stringsPath('src'),
84
- // collectionsPath('src'),
85
- // fsPath('src'),
86
- // pathPath('src'),
87
- // securityPath('src'),
81
+ p.aiPath("src"),
82
+ p.arraysPath("src"),
83
+ p.authPath("src"),
84
+ p.authPath("src"),
85
+ p.cachePath("src"),
86
+ p.chatPath("src"),
87
+ p.collectionsPath("src"),
88
+ p.databasePath("src"),
89
+ p.desktopPath("src"),
90
+ p.emailPath("src"),
91
+ p.errorHandlingPath("src"),
92
+ p.eventsPath("src"),
93
+ p.healthPath("src"),
94
+ p.lintPath("src"),
95
+ p.loggingPath("src"),
96
+ p.notificationsPath("src"),
97
+ p.objectsPath("src"),
98
+ p.pathPath("src"),
99
+ p.paymentsPath("src"),
100
+ p.pushPath("src"),
101
+ p.queuePath("src"),
102
+ p.realtimePath("src"),
103
+ p.routerPath("src"),
104
+ p.searchEnginePath("src"),
105
+ p.securityPath("src"),
106
+ p.smsPath("src"),
107
+ p.storagePath("src"),
108
+ p.stringsPath("src"),
109
+ p.tablesPath("src"),
110
+ p.stringsPath("src"),
111
+ p.testingPath("src"),
112
+ p.uiPath("src"),
113
+ p.utilsPath("src"),
114
+ p.validationPath("src")
88
115
  ],
89
- dts: frameworkPath("auto-imports.d.ts"),
116
+ dts: p.frameworkPath("auto-imports.d.ts"),
90
117
  vueTemplate: true,
91
118
  eslintrc: {
92
119
  enabled: false
@@ -98,7 +125,7 @@ function autoImports(options) {
98
125
  }
99
126
  function cssEngine(isWebComponent = false) {
100
127
  return Unocss({
101
- configFile: uiPath("src/unocss.ts"),
128
+ configFile: p.uiPath("src/unocss.ts"),
102
129
  mode: isWebComponent ? "shadow-dom" : "vue-scoped"
103
130
  });
104
131
  }
@@ -132,7 +159,6 @@ function pwa() {
132
159
  });
133
160
  }
134
161
  function uiEngine(isWebComponent = false) {
135
- console.log("here", isWebComponent, process.cwd(), __dirname, __filename);
136
162
  if (isWebComponent) {
137
163
  return Vue({
138
164
  include: [/\.vue$/, /\.md$/],
@@ -1,9 +1,9 @@
1
1
  import { defineConfig } from "vite";
2
- import { buildEntriesPath, componentsPath, frameworkPath, projectPath } from "@stacksjs/path";
2
+ import { buildEntriesPath, frameworkPath, projectPath } from "@stacksjs/path";
3
+ import { library } from "@stacksjs/config";
3
4
  import { server } from "@stacksjs/server";
4
5
  import { alias } from "@stacksjs/alias";
5
- import { autoImports, components, cssEngine, inspect, uiEngine } from "./index.mjs";
6
- console.log("componentsPath()", componentsPath());
6
+ import { autoImports, components, cssEngine, inspect, uiEngine } from "./stacks.mjs";
7
7
  export const vueComponentsConfig = {
8
8
  root: frameworkPath("components/vue"),
9
9
  envDir: projectPath(),
@@ -32,8 +32,7 @@ export function vueComponentsBuildOptions() {
32
32
  emptyOutDir: true,
33
33
  lib: {
34
34
  entry: buildEntriesPath("vue-components.ts"),
35
- // name: library.vueComponents.name,
36
- name: "test",
35
+ name: library.vueComponents.name,
37
36
  formats: ["cjs", "es"],
38
37
  fileName: (format) => {
39
38
  if (format === "es")
@@ -54,7 +53,6 @@ export function vueComponentsBuildOptions() {
54
53
  };
55
54
  }
56
55
  export default defineConfig(({ command }) => {
57
- console.log("command", command);
58
56
  if (command === "serve")
59
57
  return vueComponentsConfig;
60
58
  return vueComponentsConfig;
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@stacksjs/build",
3
3
  "type": "module",
4
- "version": "0.49.3",
5
- "packageManager": "pnpm@7.25.1",
4
+ "version": "0.51.0",
5
+ "packageManager": "pnpm@7.26.3",
6
6
  "description": "The Stacks framework build tools and configurations.",
7
7
  "author": "Chris Breuer",
8
8
  "license": "MIT",
@@ -34,18 +34,18 @@
34
34
  "README.md"
35
35
  ],
36
36
  "engines": {
37
- "node": ">=v18.13.0",
38
- "pnpm": ">=7.25.1"
37
+ "node": ">=v18.14.0",
38
+ "pnpm": ">=7.26.3"
39
39
  },
40
40
  "peerDependencies": {
41
41
  "@vitejs/plugin-vue": "^4.0.0",
42
42
  "markdown-it-link-attributes": "^4.0.1",
43
43
  "markdown-it-shiki": "^0.7.2",
44
44
  "unbuild": "^1.1.1",
45
- "unplugin-auto-import": "^0.12.1",
46
- "unplugin-vue-components": "^0.22.12",
47
- "vite": "^4.0.4",
48
- "vite-plugin-inspect": "^0.7.14",
45
+ "unplugin-auto-import": "^0.13.0",
46
+ "unplugin-vue-components": "^0.23.0",
47
+ "vite": "^4.1.1",
48
+ "vite-plugin-inspect": "^0.7.15",
49
49
  "vite-plugin-pages": "^0.28.0",
50
50
  "vite-plugin-pwa": "^0.14.1",
51
51
  "vite-plugin-vue-layouts": "^0.7.0",
@@ -53,17 +53,17 @@
53
53
  "vite-ssg": "^0.22.1",
54
54
  "vite-ssg-sitemap": "^0.4.3",
55
55
  "vue-docgen-web-types": "^0.1.8",
56
- "@stacksjs/alias": "0.49.3",
57
- "@stacksjs/config": "0.49.3",
58
- "@stacksjs/path": "0.49.3",
59
- "@stacksjs/server": "0.49.3",
60
- "@stacksjs/types": "0.49.3",
61
- "@stacksjs/utils": "0.49.3"
56
+ "@stacksjs/alias": "0.51.0",
57
+ "@stacksjs/config": "0.51.0",
58
+ "@stacksjs/path": "0.51.0",
59
+ "@stacksjs/server": "0.51.0",
60
+ "@stacksjs/types": "0.51.0",
61
+ "@stacksjs/utils": "0.51.0"
62
62
  },
63
63
  "devDependencies": {
64
64
  "mkdist": "^1.1.0",
65
- "typescript": "^4.9.4",
66
- "@stacksjs/testing": "0.49.3"
65
+ "typescript": "^4.9.5",
66
+ "@stacksjs/testing": "0.51.0"
67
67
  },
68
68
  "scripts": {
69
69
  "build": "mkdist -d",