@pinegrow/astro-module 3.0.0-beta.124 → 3.0.0-beta.128
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/README.md +0 -15
- package/dist/index.cjs +6 -26
- package/dist/index.js +6 -26
- package/package.json +2 -4
package/README.md
CHANGED
|
@@ -47,21 +47,6 @@ export default defineConfig({
|
|
|
47
47
|
liveDesigner: {
|
|
48
48
|
//...
|
|
49
49
|
},
|
|
50
|
-
// https://github.com/antfu/unplugin-vue-components#configuration
|
|
51
|
-
autoImportComponents: {
|
|
52
|
-
// dirs: ['src/components'], // default
|
|
53
|
-
// resolvers: [
|
|
54
|
-
// // add resolvers
|
|
55
|
-
// ],
|
|
56
|
-
},
|
|
57
|
-
// https://github.com/antfu/unplugin-auto-import#configuration
|
|
58
|
-
autoImportAPIs: {
|
|
59
|
-
// imports: [
|
|
60
|
-
// '@vueuse/head',
|
|
61
|
-
// '@vueuse/core',
|
|
62
|
-
// // add presets
|
|
63
|
-
// ],
|
|
64
|
-
},
|
|
65
50
|
}),
|
|
66
51
|
//...
|
|
67
52
|
],
|
package/dist/index.cjs
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }// src/index.ts
|
|
2
2
|
var _path = require('path'); var _path2 = _interopRequireDefault(_path);
|
|
3
|
-
var _vite = require('unplugin-vue-components/vite'); var _vite2 = _interopRequireDefault(_vite);
|
|
4
|
-
var _vite3 = require('unplugin-auto-import/vite'); var _vite4 = _interopRequireDefault(_vite3);
|
|
5
3
|
async function getViteConfiguration(moduleOptions) {
|
|
6
|
-
var _a, _b, _c
|
|
4
|
+
var _a, _b, _c;
|
|
7
5
|
let vitePlugin;
|
|
8
6
|
try {
|
|
9
7
|
const { liveDesigner } = await Promise.resolve().then(() => _interopRequireWildcard(require("./live-designer-PEHWBCFL.cjs")));
|
|
@@ -57,28 +55,8 @@ async function getViteConfiguration(moduleOptions) {
|
|
|
57
55
|
const mergeConfig = (defaults, overrides) => {
|
|
58
56
|
return mergeConfigRecursively(defaults || {}, overrides || {});
|
|
59
57
|
};
|
|
60
|
-
(_a = config.plugins) == null ? void 0 : _a.push(
|
|
61
|
-
_vite2.default.call(void 0, mergeConfig({}, moduleOptions.autoImportComponents)),
|
|
62
|
-
_vite4.default.call(void 0,
|
|
63
|
-
mergeConfig(
|
|
64
|
-
{
|
|
65
|
-
include: [
|
|
66
|
-
/\.[tj]sx?$/,
|
|
67
|
-
/\.vue$/,
|
|
68
|
-
/\.vue\?vue/,
|
|
69
|
-
/\.md$/
|
|
70
|
-
],
|
|
71
|
-
imports: ["vue", "vue-router"],
|
|
72
|
-
dirs: [],
|
|
73
|
-
vueTemplate: true,
|
|
74
|
-
cache: true
|
|
75
|
-
},
|
|
76
|
-
moduleOptions.autoImportAPIs
|
|
77
|
-
)
|
|
78
|
-
)
|
|
79
|
-
);
|
|
80
58
|
const ignoreList = [
|
|
81
|
-
.../* @__PURE__ */ new Set([...((
|
|
59
|
+
.../* @__PURE__ */ new Set([...((_b = (_a = config == null ? void 0 : config.server) == null ? void 0 : _a.watch) == null ? void 0 : _b.ignored) || [], "**/_pgbackup/**", "**/_pginfo/**", "**/pinegrow.json"])
|
|
82
60
|
];
|
|
83
61
|
config = mergeConfig(config, {
|
|
84
62
|
server: {
|
|
@@ -87,12 +65,14 @@ async function getViteConfiguration(moduleOptions) {
|
|
|
87
65
|
}
|
|
88
66
|
}
|
|
89
67
|
});
|
|
90
|
-
const alias = (
|
|
68
|
+
const alias = (_c = config == null ? void 0 : config.resolve) == null ? void 0 : _c.alias;
|
|
91
69
|
if (!alias) {
|
|
92
70
|
config = mergeConfig(config, {
|
|
93
71
|
resolve: {
|
|
94
72
|
alias: {
|
|
95
|
-
"@": _path2.default.resolve(config.root || process.cwd(), "./src")
|
|
73
|
+
"@": _path2.default.resolve(config.root || process.cwd(), "./src"),
|
|
74
|
+
"~": _path2.default.resolve(config.root || process.cwd(), "./src"),
|
|
75
|
+
"~~": _path2.default.resolve(config.root || process.cwd(), "./")
|
|
96
76
|
}
|
|
97
77
|
}
|
|
98
78
|
});
|
package/dist/index.js
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
// src/index.ts
|
|
2
2
|
import path from "path";
|
|
3
|
-
import autoImportComponents from "unplugin-vue-components/vite";
|
|
4
|
-
import autoImportAPIs from "unplugin-auto-import/vite";
|
|
5
3
|
async function getViteConfiguration(moduleOptions) {
|
|
6
|
-
var _a, _b, _c
|
|
4
|
+
var _a, _b, _c;
|
|
7
5
|
let vitePlugin;
|
|
8
6
|
try {
|
|
9
7
|
const { liveDesigner } = await import("./live-designer-TIVRM3WS.js");
|
|
@@ -57,28 +55,8 @@ async function getViteConfiguration(moduleOptions) {
|
|
|
57
55
|
const mergeConfig = (defaults, overrides) => {
|
|
58
56
|
return mergeConfigRecursively(defaults || {}, overrides || {});
|
|
59
57
|
};
|
|
60
|
-
(_a = config.plugins) == null ? void 0 : _a.push(
|
|
61
|
-
autoImportComponents(mergeConfig({}, moduleOptions.autoImportComponents)),
|
|
62
|
-
autoImportAPIs(
|
|
63
|
-
mergeConfig(
|
|
64
|
-
{
|
|
65
|
-
include: [
|
|
66
|
-
/\.[tj]sx?$/,
|
|
67
|
-
/\.vue$/,
|
|
68
|
-
/\.vue\?vue/,
|
|
69
|
-
/\.md$/
|
|
70
|
-
],
|
|
71
|
-
imports: ["vue", "vue-router"],
|
|
72
|
-
dirs: [],
|
|
73
|
-
vueTemplate: true,
|
|
74
|
-
cache: true
|
|
75
|
-
},
|
|
76
|
-
moduleOptions.autoImportAPIs
|
|
77
|
-
)
|
|
78
|
-
)
|
|
79
|
-
);
|
|
80
58
|
const ignoreList = [
|
|
81
|
-
.../* @__PURE__ */ new Set([...((
|
|
59
|
+
.../* @__PURE__ */ new Set([...((_b = (_a = config == null ? void 0 : config.server) == null ? void 0 : _a.watch) == null ? void 0 : _b.ignored) || [], "**/_pgbackup/**", "**/_pginfo/**", "**/pinegrow.json"])
|
|
82
60
|
];
|
|
83
61
|
config = mergeConfig(config, {
|
|
84
62
|
server: {
|
|
@@ -87,12 +65,14 @@ async function getViteConfiguration(moduleOptions) {
|
|
|
87
65
|
}
|
|
88
66
|
}
|
|
89
67
|
});
|
|
90
|
-
const alias = (
|
|
68
|
+
const alias = (_c = config == null ? void 0 : config.resolve) == null ? void 0 : _c.alias;
|
|
91
69
|
if (!alias) {
|
|
92
70
|
config = mergeConfig(config, {
|
|
93
71
|
resolve: {
|
|
94
72
|
alias: {
|
|
95
|
-
"@": path.resolve(config.root || process.cwd(), "./src")
|
|
73
|
+
"@": path.resolve(config.root || process.cwd(), "./src"),
|
|
74
|
+
"~": path.resolve(config.root || process.cwd(), "./src"),
|
|
75
|
+
"~~": path.resolve(config.root || process.cwd(), "./")
|
|
96
76
|
}
|
|
97
77
|
}
|
|
98
78
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pinegrow/astro-module",
|
|
3
|
-
"version": "3.0.0-beta.
|
|
3
|
+
"version": "3.0.0-beta.128",
|
|
4
4
|
"description": "Pinegrow Astro Module",
|
|
5
5
|
"author": "Pinegrow (http://pinegrow.com/)",
|
|
6
6
|
"license": "MIT",
|
|
@@ -33,9 +33,7 @@
|
|
|
33
33
|
"increment-beta-version": "npm version prerelease --preid=beta"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@pinegrow/vite-plugin": "3.0.0-beta.
|
|
37
|
-
"unplugin-vue-components": "^0.24.1",
|
|
38
|
-
"unplugin-auto-import": "^0.15.2"
|
|
36
|
+
"@pinegrow/vite-plugin": "3.0.0-beta.128"
|
|
39
37
|
},
|
|
40
38
|
"devDependencies": {
|
|
41
39
|
"astro": "^2.1.5",
|