@stacksjs/build 0.43.0 → 0.44.6

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.
@@ -0,0 +1,2 @@
1
+ declare const _default: import("vite").UserConfigExport;
2
+ export default _default;
@@ -0,0 +1,17 @@
1
+ import { defineConfig } from "vite";
2
+ import { server } from "@stacksjs/server";
3
+ import { cssEngine, uiEngine } from ".//index.mjs";
4
+ export default defineConfig({
5
+ clearScreen: false,
6
+ server,
7
+ envPrefix: "APP_",
8
+ plugins: [
9
+ uiEngine(),
10
+ cssEngine()
11
+ ],
12
+ build: {
13
+ target: ["es2021", "chrome97", "safari13"],
14
+ minify: !process.env.APP_DEBUG ? "esbuild" : false,
15
+ sourcemap: !!process.env.APP_DEBUG
16
+ }
17
+ });
@@ -1,7 +1,7 @@
1
1
  import { defineConfig } from "vite";
2
2
  import { examplesPath } from "@stacksjs/path";
3
3
  import { server } from "@stacksjs/server";
4
- import { alias } from "../../../buddy/alias";
4
+ import { alias } from "@stacksjs/alias";
5
5
  import { uiEngine } from "./index.mjs";
6
6
  export const vueComponentsExampleConfig = {
7
7
  root: examplesPath("vue-components"),
@@ -1,7 +1,7 @@
1
1
  import { defineConfig } from "vite";
2
2
  import { examplesPath } from "@stacksjs/path";
3
3
  import { server } from "@stacksjs/server";
4
- import { alias } from "../../../buddy/alias";
4
+ import { alias } from "@stacksjs/alias";
5
5
  import { uiEngine } from "./index.mjs";
6
6
  export const webComponentsExampleConfig = {
7
7
  root: examplesPath("web-components"),
@@ -1,7 +1,7 @@
1
1
  import { defineConfig } from "vite";
2
2
  import { buildEntriesPath, frameworkPath, functionsPath, projectPath } from "@stacksjs/path";
3
3
  import { library } from "@stacksjs/config";
4
- import { alias } from "../../../buddy/alias";
4
+ import { alias } from "@stacksjs/alias";
5
5
  import { autoImports } from "./index.mjs";
6
6
  export const functionsConfig = {
7
7
  root: functionsPath(),
package/dist/pages.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  import { defineConfig } from "vite";
2
2
  import generateSitemap from "vite-ssg-sitemap";
3
3
  import { functionsPath, projectPath } from "@stacksjs/path";
4
- import { alias } from "../../../buddy/alias";
4
+ import { alias } from "@stacksjs/alias";
5
5
  import { autoImports, components, cssEngine, i18n, inspect, layouts, markdown, pages, preview, pwa, uiEngine } from "./index.mjs";
6
6
  export const pagesConfig = {
7
7
  root: functionsPath(),
package/dist/stacks.d.ts CHANGED
@@ -2,7 +2,6 @@ import type { PluginOption } from 'vite';
2
2
  import type { AutoImportsOptions, ComponentOptions, InspectOptions, LayoutOptions, MarkdownOptions, PagesOptions, i18nOptions } from '@stacksjs/types';
3
3
  import { resolve } from '@stacksjs/path';
4
4
  declare function inspect(options?: InspectOptions): import("vite").Plugin;
5
- declare function preview(): any;
6
5
  declare function layouts(options?: LayoutOptions): import("vite").Plugin;
7
6
  declare function components(options?: ComponentOptions): PluginOption;
8
7
  declare function pages(options?: PagesOptions): import("vite").Plugin;
@@ -10,7 +9,7 @@ declare function markdown(options?: MarkdownOptions): import("vite").Plugin;
10
9
  declare function autoImports(options?: AutoImportsOptions): any;
11
10
  declare function cssEngine(isWebComponent?: boolean): import("vite").Plugin[];
12
11
  declare function pwa(): import("vite").Plugin[];
13
- declare function i18n(options?: i18nOptions): import("vite").Plugin;
12
+ declare function i18n(options?: i18nOptions): any;
14
13
  declare function uiEngine(isWebComponent?: boolean): import("vite").Plugin;
15
14
  declare const componentPreset: (isWebComponent?: boolean) => PluginOption;
16
- export { resolve, componentPreset, uiEngine, autoImports, cssEngine, components, inspect, markdown, pages, pwa, preview, layouts, i18n };
15
+ export { resolve, componentPreset, uiEngine, autoImports, cssEngine, components, inspect, markdown, pages, pwa, layouts, i18n };
package/dist/stacks.mjs CHANGED
@@ -6,7 +6,6 @@ import Inspect from "vite-plugin-inspect";
6
6
  import Pages from "vite-plugin-pages";
7
7
  import Layouts from "vite-plugin-vue-layouts";
8
8
  import VueI18n from "@intlify/vite-plugin-vue-i18n";
9
- import Preview from "vite-plugin-vue-component-preview";
10
9
  import Markdown from "vite-plugin-vue-markdown";
11
10
  import LinkAttributes from "markdown-it-link-attributes";
12
11
  import Shiki from "markdown-it-shiki";
@@ -16,9 +15,6 @@ import { arraysPath, collectionsPath, componentsPath, frameworkPath, fsPath, fun
16
15
  function inspect(options) {
17
16
  return Inspect(options);
18
17
  }
19
- function preview() {
20
- return Preview;
21
- }
22
18
  function layouts(options) {
23
19
  return Layouts(options);
24
20
  }
@@ -163,4 +159,4 @@ const componentPreset = (isWebComponent = false) => [
163
159
  components,
164
160
  markdown
165
161
  ];
166
- export { resolve, componentPreset, uiEngine, autoImports, cssEngine, components, inspect, markdown, pages, pwa, preview, layouts, i18n };
162
+ export { resolve, componentPreset, uiEngine, autoImports, cssEngine, components, inspect, markdown, pages, pwa, layouts, i18n };
@@ -2,7 +2,7 @@ import { defineConfig } from "vite";
2
2
  import { buildEntriesPath, componentsPath, frameworkPath, projectPath } from "@stacksjs/path";
3
3
  import { library } from "@stacksjs/config";
4
4
  import { server } from "@stacksjs/server";
5
- import { alias } from "../../../buddy/alias";
5
+ import { alias } from "@stacksjs/alias";
6
6
  import { autoImports, components, cssEngine, inspect, preview, uiEngine } from "./index.mjs";
7
7
  export const vueComponentsConfig = {
8
8
  root: componentsPath(),
@@ -2,7 +2,7 @@ import { defineConfig } from "vite";
2
2
  import { buildEntriesPath, componentsPath, frameworkPath, projectPath } from "@stacksjs/path";
3
3
  import { library } from "@stacksjs/config";
4
4
  import { server } from "@stacksjs/server";
5
- import { alias } from "../../../buddy/alias";
5
+ import { alias } from "@stacksjs/alias";
6
6
  import { autoImports, components, cssEngine, inspect, uiEngine } from "./index.mjs";
7
7
  const isWebComponent = true;
8
8
  export const webComponentsConfig = {
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@stacksjs/build",
3
3
  "type": "module",
4
- "version": "0.43.0",
5
- "packageManager": "pnpm@7.17.1",
4
+ "version": "0.44.6",
5
+ "packageManager": "pnpm@7.18.2",
6
6
  "description": "The Stacks framework build tools and configurations.",
7
7
  "author": "Chris Breuer",
8
8
  "license": "MIT",
@@ -35,36 +35,37 @@
35
35
  ],
36
36
  "engines": {
37
37
  "node": ">=v18.12.1",
38
- "pnpm": ">=7.17.1"
38
+ "pnpm": ">=7.18.2"
39
39
  },
40
40
  "peerDependencies": {
41
- "@intlify/vite-plugin-vue-i18n": "^6.0.3",
42
- "@vitejs/plugin-vue": "^3.2.0",
41
+ "@intlify/unplugin-vue-i18n": "^0.8.1",
42
+ "@vitejs/plugin-vue": "^4.0.0",
43
43
  "markdown-it-link-attributes": "^4.0.1",
44
44
  "markdown-it-shiki": "^0.7.2",
45
- "unbuild": "^1.0.1",
46
- "unplugin-auto-import": "^0.12.0",
47
- "unplugin-vue-components": "^0.22.11",
48
- "vite": "^3.2.4",
49
- "vite-plugin-inspect": "^0.7.9",
50
- "vite-plugin-pages": "^0.27.1",
51
- "vite-plugin-pwa": "^0.13.3",
52
- "vite-plugin-vue-component-preview": "^0.3.3",
45
+ "unbuild": "^1.0.2",
46
+ "unplugin-auto-import": "^0.12.1",
47
+ "unplugin-vue-components": "^0.22.12",
48
+ "vite": "^4.0.1",
49
+ "vite-plugin-inspect": "^0.7.10",
50
+ "vite-plugin-pages": "^0.28.0",
51
+ "vite-plugin-pwa": "^0.14.0",
53
52
  "vite-plugin-vue-layouts": "^0.7.0",
54
53
  "vite-plugin-vue-markdown": "^0.22.1",
55
- "vite-ssg": "^0.22.0",
54
+ "vite-ssg": "^0.22.1",
56
55
  "vite-ssg-sitemap": "^0.4.3",
57
56
  "vue-docgen-web-types": "^0.1.8",
58
57
  "vue-i18n": "^9.2.2",
59
- "@stacksjs/config": "0.43.0",
60
- "@stacksjs/server": "0.43.0",
61
- "@stacksjs/types": "0.43.0",
62
- "@stacksjs/utils": "0.43.0"
58
+ "@stacksjs/alias": "0.44.6",
59
+ "@stacksjs/path": "0.44.6",
60
+ "@stacksjs/server": "0.44.6",
61
+ "@stacksjs/config": "0.44.6",
62
+ "@stacksjs/utils": "0.44.6",
63
+ "@stacksjs/types": "0.44.6"
63
64
  },
64
65
  "devDependencies": {
65
66
  "mkdist": "^1.0.0",
66
- "typescript": "^4.9.3",
67
- "@stacksjs/testing": "0.43.0"
67
+ "typescript": "^4.9.4",
68
+ "@stacksjs/testing": "0.44.6"
68
69
  },
69
70
  "scripts": {
70
71
  "build": "mkdist -d",