kirbyup 1.1.0 → 1.2.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/chunks/index.mjs +7 -5
- package/dist/cli.mjs +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +13 -13
package/dist/chunks/index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { existsSync as existsSync$1 } from 'node:fs';
|
|
2
2
|
import { resolve, normalize, relative, dirname, basename } from 'pathe';
|
|
3
3
|
import { build as build$1, mergeConfig } from 'vite';
|
|
4
|
-
import
|
|
4
|
+
import vuePlugin from '@vitejs/plugin-vue2';
|
|
5
5
|
import postcssrc from 'postcss-load-config';
|
|
6
6
|
import postcssLogical from 'postcss-logical';
|
|
7
7
|
import postcssDirPseudoClass from 'postcss-dir-pseudo-class';
|
|
@@ -16,7 +16,7 @@ import { createConfigLoader } from 'unconfig';
|
|
|
16
16
|
import MagicString from 'magic-string';
|
|
17
17
|
|
|
18
18
|
const name = "kirbyup";
|
|
19
|
-
const version = "1.
|
|
19
|
+
const version = "1.2.0";
|
|
20
20
|
|
|
21
21
|
class PrettyError extends Error {
|
|
22
22
|
constructor(message) {
|
|
@@ -139,7 +139,7 @@ async function generate(options) {
|
|
|
139
139
|
const { alias = {}, extendViteConfig = {} } = resolvedKirbyupConfig;
|
|
140
140
|
const defaultConfig = {
|
|
141
141
|
mode,
|
|
142
|
-
plugins: [
|
|
142
|
+
plugins: [vuePlugin(), kirbyupAutoImportPlugin()],
|
|
143
143
|
build: {
|
|
144
144
|
lib: {
|
|
145
145
|
entry: resolve(options.cwd, options.entry),
|
|
@@ -210,8 +210,10 @@ async function build(_options) {
|
|
|
210
210
|
plugins: [postcssLogical(), postcssDirPseudoClass()]
|
|
211
211
|
};
|
|
212
212
|
}
|
|
213
|
-
|
|
214
|
-
|
|
213
|
+
{
|
|
214
|
+
consola.log(colors.green(`${name} v${version}`));
|
|
215
|
+
consola.start(`Building ${colors.cyan(options.entry)}`);
|
|
216
|
+
}
|
|
215
217
|
if (options.watch)
|
|
216
218
|
consola.info("Running in watch mode");
|
|
217
219
|
const debouncedBuild = debounce(async () => {
|
package/dist/cli.mjs
CHANGED
|
@@ -3,7 +3,7 @@ import { n as name, b as build, v as version, h as handleError } from './chunks/
|
|
|
3
3
|
import 'node:fs';
|
|
4
4
|
import 'pathe';
|
|
5
5
|
import 'vite';
|
|
6
|
-
import '
|
|
6
|
+
import '@vitejs/plugin-vue2';
|
|
7
7
|
import 'postcss-load-config';
|
|
8
8
|
import 'postcss-logical';
|
|
9
9
|
import 'postcss-dir-pseudo-class';
|
package/dist/index.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "kirbyup",
|
|
3
|
-
"version": "1.
|
|
4
|
-
"packageManager": "pnpm@7.
|
|
3
|
+
"version": "1.2.0",
|
|
4
|
+
"packageManager": "pnpm@7.5.2",
|
|
5
5
|
"description": "Zero-config bundler for Kirby Panel plugins",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Johann Schopplich",
|
|
@@ -21,8 +21,9 @@
|
|
|
21
21
|
"kirby-cms",
|
|
22
22
|
"kirby-plugin",
|
|
23
23
|
"kirby",
|
|
24
|
+
"cli",
|
|
24
25
|
"panel",
|
|
25
|
-
"
|
|
26
|
+
"bundler"
|
|
26
27
|
],
|
|
27
28
|
"exports": {
|
|
28
29
|
".": {
|
|
@@ -55,36 +56,35 @@
|
|
|
55
56
|
"prepare": "pnpm exec simple-git-hooks"
|
|
56
57
|
},
|
|
57
58
|
"dependencies": {
|
|
59
|
+
"@vitejs/plugin-vue2": "^1.1.2",
|
|
58
60
|
"cac": "^6.7.12",
|
|
59
61
|
"chokidar": "^3.5.3",
|
|
60
62
|
"consola": "^2.15.3",
|
|
61
|
-
"pathe": "^0.3.
|
|
63
|
+
"pathe": "^0.3.2",
|
|
62
64
|
"perfect-debounce": "^0.1.3",
|
|
63
65
|
"picocolors": "^1.0.0",
|
|
64
66
|
"postcss": "^8.4.14",
|
|
65
|
-
"postcss-dir-pseudo-class": "^6.0.
|
|
67
|
+
"postcss-dir-pseudo-class": "^6.0.5",
|
|
66
68
|
"postcss-load-config": "^4.0.1",
|
|
67
69
|
"postcss-logical": "^5.0.4",
|
|
68
70
|
"sass": "^1.53.0",
|
|
69
|
-
"unconfig": "^0.3.
|
|
70
|
-
"vite": "
|
|
71
|
-
"
|
|
72
|
-
"vue": "^2.6.14",
|
|
73
|
-
"vue-template-compiler": "^2.6.14"
|
|
71
|
+
"unconfig": "^0.3.5",
|
|
72
|
+
"vite": "^3.0.1",
|
|
73
|
+
"vue": "^2.7.7"
|
|
74
74
|
},
|
|
75
75
|
"devDependencies": {
|
|
76
76
|
"@antfu/eslint-config": "^0.25.2",
|
|
77
77
|
"@types/fs-extra": "^9.0.13",
|
|
78
|
-
"@types/node": "^18.0.
|
|
78
|
+
"@types/node": "^18.0.6",
|
|
79
79
|
"@types/prompts": "^2.4.0",
|
|
80
80
|
"bumpp": "^8.2.1",
|
|
81
|
-
"eslint": "^8.
|
|
81
|
+
"eslint": "^8.20.0",
|
|
82
82
|
"fast-glob": "^3.2.11",
|
|
83
83
|
"fs-extra": "^10.1.0",
|
|
84
84
|
"simple-git-hooks": "^2.8.0",
|
|
85
85
|
"typescript": "^4.7.4",
|
|
86
86
|
"unbuild": "^0.7.4",
|
|
87
|
-
"vitest": "^0.
|
|
87
|
+
"vitest": "^0.18.1"
|
|
88
88
|
},
|
|
89
89
|
"simple-git-hooks": {
|
|
90
90
|
"commit-msg": "node scripts/verifyCommit.mjs $1"
|