create-vuetify0 0.0.10-beta.4 → 0.0.10-beta.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.
- package/dist/index.mjs +44 -20
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -315,12 +315,12 @@ var require_isFunction = /* @__PURE__ */ __commonJS$1({ "../../node_modules/.pnp
|
|
|
315
315
|
* _.isFunction(/abc/);
|
|
316
316
|
* // => false
|
|
317
317
|
*/
|
|
318
|
-
function isFunction$
|
|
318
|
+
function isFunction$4(value) {
|
|
319
319
|
if (!isObject$12(value)) return false;
|
|
320
320
|
var tag = baseGetTag$4(value);
|
|
321
321
|
return tag == funcTag$1 || tag == genTag || tag == asyncTag || tag == proxyTag;
|
|
322
322
|
}
|
|
323
|
-
module.exports = isFunction$
|
|
323
|
+
module.exports = isFunction$4;
|
|
324
324
|
}) });
|
|
325
325
|
|
|
326
326
|
//#endregion
|
|
@@ -382,7 +382,7 @@ var require__toSource = /* @__PURE__ */ __commonJS$1({ "../../node_modules/.pnpm
|
|
|
382
382
|
//#endregion
|
|
383
383
|
//#region ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseIsNative.js
|
|
384
384
|
var require__baseIsNative = /* @__PURE__ */ __commonJS$1({ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseIsNative.js": ((exports, module) => {
|
|
385
|
-
var isFunction$
|
|
385
|
+
var isFunction$3 = require_isFunction(), isMasked = require__isMasked(), isObject$11 = require_isObject(), toSource$1 = require__toSource();
|
|
386
386
|
/**
|
|
387
387
|
* Used to match `RegExp`
|
|
388
388
|
* [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
|
|
@@ -408,7 +408,7 @@ var require__baseIsNative = /* @__PURE__ */ __commonJS$1({ "../../node_modules/.
|
|
|
408
408
|
*/
|
|
409
409
|
function baseIsNative$1(value) {
|
|
410
410
|
if (!isObject$11(value) || isMasked(value)) return false;
|
|
411
|
-
return (isFunction$
|
|
411
|
+
return (isFunction$3(value) ? reIsNative : reIsHostCtor).test(toSource$1(value));
|
|
412
412
|
}
|
|
413
413
|
module.exports = baseIsNative$1;
|
|
414
414
|
}) });
|
|
@@ -1872,7 +1872,7 @@ var require__initCloneObject = /* @__PURE__ */ __commonJS$1({ "../../node_module
|
|
|
1872
1872
|
//#endregion
|
|
1873
1873
|
//#region ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isArrayLike.js
|
|
1874
1874
|
var require_isArrayLike = /* @__PURE__ */ __commonJS$1({ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isArrayLike.js": ((exports, module) => {
|
|
1875
|
-
var isFunction$
|
|
1875
|
+
var isFunction$2 = require_isFunction(), isLength$1 = require_isLength();
|
|
1876
1876
|
/**
|
|
1877
1877
|
* Checks if `value` is array-like. A value is considered array-like if it's
|
|
1878
1878
|
* not a function and has a `value.length` that's an integer greater than or
|
|
@@ -1899,7 +1899,7 @@ var require_isArrayLike = /* @__PURE__ */ __commonJS$1({ "../../node_modules/.pn
|
|
|
1899
1899
|
* // => false
|
|
1900
1900
|
*/
|
|
1901
1901
|
function isArrayLike$6(value) {
|
|
1902
|
-
return value != null && isLength$1(value.length) && !isFunction$
|
|
1902
|
+
return value != null && isLength$1(value.length) && !isFunction$2(value);
|
|
1903
1903
|
}
|
|
1904
1904
|
module.exports = isArrayLike$6;
|
|
1905
1905
|
}) });
|
|
@@ -2359,7 +2359,7 @@ var require_toPlainObject = /* @__PURE__ */ __commonJS$1({ "../../node_modules/.
|
|
|
2359
2359
|
//#endregion
|
|
2360
2360
|
//#region ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseMergeDeep.js
|
|
2361
2361
|
var require__baseMergeDeep = /* @__PURE__ */ __commonJS$1({ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseMergeDeep.js": ((exports, module) => {
|
|
2362
|
-
var assignMergeValue$1 = require__assignMergeValue(), cloneBuffer = require__cloneBuffer(), cloneTypedArray = require__cloneTypedArray(), copyArray = require__copyArray(), initCloneObject = require__initCloneObject(), isArguments$1 = require_isArguments(), isArray$9 = require_isArray(), isArrayLikeObject = require_isArrayLikeObject(), isBuffer$1 = require_isBuffer(), isFunction = require_isFunction(), isObject$8 = require_isObject(), isPlainObject$3 = require_isPlainObject(), isTypedArray$1 = require_isTypedArray(), safeGet$1 = require__safeGet(), toPlainObject = require_toPlainObject();
|
|
2362
|
+
var assignMergeValue$1 = require__assignMergeValue(), cloneBuffer = require__cloneBuffer(), cloneTypedArray = require__cloneTypedArray(), copyArray = require__copyArray(), initCloneObject = require__initCloneObject(), isArguments$1 = require_isArguments(), isArray$9 = require_isArray(), isArrayLikeObject = require_isArrayLikeObject(), isBuffer$1 = require_isBuffer(), isFunction$1 = require_isFunction(), isObject$8 = require_isObject(), isPlainObject$3 = require_isPlainObject(), isTypedArray$1 = require_isTypedArray(), safeGet$1 = require__safeGet(), toPlainObject = require_toPlainObject();
|
|
2363
2363
|
/**
|
|
2364
2364
|
* A specialized version of `baseMerge` for arrays and objects which performs
|
|
2365
2365
|
* deep merges and tracks traversed objects enabling objects with circular
|
|
@@ -2398,7 +2398,7 @@ var require__baseMergeDeep = /* @__PURE__ */ __commonJS$1({ "../../node_modules/
|
|
|
2398
2398
|
else if (isPlainObject$3(srcValue) || isArguments$1(srcValue)) {
|
|
2399
2399
|
newValue = objValue;
|
|
2400
2400
|
if (isArguments$1(objValue)) newValue = toPlainObject(objValue);
|
|
2401
|
-
else if (!isObject$8(objValue) || isFunction(objValue)) newValue = initCloneObject(srcValue);
|
|
2401
|
+
else if (!isObject$8(objValue) || isFunction$1(objValue)) newValue = initCloneObject(srcValue);
|
|
2402
2402
|
} else isCommon = false;
|
|
2403
2403
|
}
|
|
2404
2404
|
if (isCommon) {
|
|
@@ -44512,7 +44512,7 @@ function typesPlugin(_fork) {
|
|
|
44512
44512
|
return type;
|
|
44513
44513
|
}
|
|
44514
44514
|
const isString$2 = defBuiltInType("string", "truthy");
|
|
44515
|
-
const isFunction$
|
|
44515
|
+
const isFunction$5 = defBuiltInType("function", function() {});
|
|
44516
44516
|
const isArray$4$1 = defBuiltInType("array", []);
|
|
44517
44517
|
const isObject$4$1 = defBuiltInType("object", {});
|
|
44518
44518
|
const isRegExp = defBuiltInType("RegExp", /./);
|
|
@@ -44523,7 +44523,7 @@ function typesPlugin(_fork) {
|
|
|
44523
44523
|
const isUndefined = defBuiltInType("undefined", void 0);
|
|
44524
44524
|
const builtInTypes$1 = {
|
|
44525
44525
|
string: isString$2,
|
|
44526
|
-
function: isFunction$
|
|
44526
|
+
function: isFunction$5,
|
|
44527
44527
|
array: isArray$4$1,
|
|
44528
44528
|
object: isObject$4$1,
|
|
44529
44529
|
RegExp: isRegExp,
|
|
@@ -44682,7 +44682,7 @@ function typesPlugin(_fork) {
|
|
|
44682
44682
|
var old = nodePrototype[name];
|
|
44683
44683
|
if (isUndefined.check(func)) delete nodePrototype[name];
|
|
44684
44684
|
else {
|
|
44685
|
-
isFunction$
|
|
44685
|
+
isFunction$5.assert(func);
|
|
44686
44686
|
Object.defineProperty(nodePrototype, name, {
|
|
44687
44687
|
enumerable: true,
|
|
44688
44688
|
configurable: true,
|
|
@@ -45467,7 +45467,7 @@ function pathVisitorPlugin(fork) {
|
|
|
45467
45467
|
var NodePath$1 = fork.use(nodePathPlugin);
|
|
45468
45468
|
var isArray$4$1 = types$1.builtInTypes.array;
|
|
45469
45469
|
var isObject$4$1 = types$1.builtInTypes.object;
|
|
45470
|
-
var isFunction$
|
|
45470
|
+
var isFunction$5 = types$1.builtInTypes.function;
|
|
45471
45471
|
var undefined$1;
|
|
45472
45472
|
const PathVisitor$1 = function PathVisitor$2() {
|
|
45473
45473
|
if (!(this instanceof PathVisitor$2)) throw new Error("PathVisitor constructor cannot be invoked without 'new'");
|
|
@@ -45488,7 +45488,7 @@ function pathVisitorPlugin(fork) {
|
|
|
45488
45488
|
for (var i$9 = 0; i$9 < typeNameCount; ++i$9) {
|
|
45489
45489
|
var typeName = typeNameKeys[i$9];
|
|
45490
45490
|
methodName = "visit" + supertypeTable[typeName];
|
|
45491
|
-
if (isFunction$
|
|
45491
|
+
if (isFunction$5.check(visitor[methodName])) methodNameTable[typeName] = methodName;
|
|
45492
45492
|
}
|
|
45493
45493
|
return methodNameTable;
|
|
45494
45494
|
}
|
|
@@ -45503,8 +45503,8 @@ function pathVisitorPlugin(fork) {
|
|
|
45503
45503
|
Vp.constructor = Visitor;
|
|
45504
45504
|
extend(Vp, methods);
|
|
45505
45505
|
extend(Visitor, PathVisitor$1);
|
|
45506
|
-
isFunction$
|
|
45507
|
-
isFunction$
|
|
45506
|
+
isFunction$5.assert(Visitor.fromMethodsObject);
|
|
45507
|
+
isFunction$5.assert(Visitor.visit);
|
|
45508
45508
|
return new Visitor();
|
|
45509
45509
|
};
|
|
45510
45510
|
function extend(target, source) {
|
|
@@ -52684,6 +52684,30 @@ export default withNuxt(
|
|
|
52684
52684
|
`;
|
|
52685
52685
|
}
|
|
52686
52686
|
|
|
52687
|
+
//#endregion
|
|
52688
|
+
//#region ../shared/src/utils/magicast.ts
|
|
52689
|
+
/**
|
|
52690
|
+
* Adds a statement to a function body using AST manipulation.
|
|
52691
|
+
* magicast's $body.push() doesn't work for function-expression types,
|
|
52692
|
+
* so we need to manipulate the AST directly.
|
|
52693
|
+
*/
|
|
52694
|
+
function addStatementToFunctionBody(fn$1, statement) {
|
|
52695
|
+
if (!fn$1 || !fn$1.$ast?.body?.body) return false;
|
|
52696
|
+
const newStatement = {
|
|
52697
|
+
type: "ExpressionStatement",
|
|
52698
|
+
expression: parseExpression(statement).$ast,
|
|
52699
|
+
loc: null
|
|
52700
|
+
};
|
|
52701
|
+
fn$1.$ast.body.body.push(newStatement);
|
|
52702
|
+
return true;
|
|
52703
|
+
}
|
|
52704
|
+
/**
|
|
52705
|
+
* Checks if the export is a function (either 'function' or 'function-expression')
|
|
52706
|
+
*/
|
|
52707
|
+
function isFunction(fn$1) {
|
|
52708
|
+
return fn$1 && (fn$1.$type === "function" || fn$1.$type === "function-expression");
|
|
52709
|
+
}
|
|
52710
|
+
|
|
52687
52711
|
//#endregion
|
|
52688
52712
|
//#region ../shared/src/features/i18n.ts
|
|
52689
52713
|
const i18n$1 = {
|
|
@@ -52717,7 +52741,7 @@ const i18n$1 = {
|
|
|
52717
52741
|
local: "i18n"
|
|
52718
52742
|
});
|
|
52719
52743
|
const registerPlugins = mod.exports.registerPlugins;
|
|
52720
|
-
if (registerPlugins
|
|
52744
|
+
if (isFunction(registerPlugins)) addStatementToFunctionBody(registerPlugins, "app.use(i18n)");
|
|
52721
52745
|
await writeFile(pluginsPath, mod.generate().code);
|
|
52722
52746
|
}
|
|
52723
52747
|
}
|
|
@@ -52838,7 +52862,7 @@ const pinia = {
|
|
|
52838
52862
|
imported: "createPinia"
|
|
52839
52863
|
});
|
|
52840
52864
|
const registerPlugins = mod.exports.registerPlugins;
|
|
52841
|
-
if (registerPlugins
|
|
52865
|
+
if (isFunction(registerPlugins)) addStatementToFunctionBody(registerPlugins, "app.use(createPinia())");
|
|
52842
52866
|
await writeFile(pluginsPath, mod.generate().code);
|
|
52843
52867
|
}
|
|
52844
52868
|
}
|
|
@@ -52896,7 +52920,7 @@ const router = {
|
|
|
52896
52920
|
local: "router"
|
|
52897
52921
|
});
|
|
52898
52922
|
const registerPlugins = mod.exports.registerPlugins;
|
|
52899
|
-
if (registerPlugins
|
|
52923
|
+
if (isFunction(registerPlugins)) addStatementToFunctionBody(registerPlugins, "app.use(router)");
|
|
52900
52924
|
await writeFile(pluginsPath, mod.generate().code);
|
|
52901
52925
|
}
|
|
52902
52926
|
};
|
|
@@ -52920,7 +52944,7 @@ const fileRouter = {
|
|
|
52920
52944
|
local: "router"
|
|
52921
52945
|
});
|
|
52922
52946
|
const registerPlugins = mod.exports.registerPlugins;
|
|
52923
|
-
if (registerPlugins
|
|
52947
|
+
if (isFunction(registerPlugins)) addStatementToFunctionBody(registerPlugins, "app.use(router)");
|
|
52924
52948
|
await writeFile(pluginsPath, mod.generate().code);
|
|
52925
52949
|
const viteConfigPath = join(cwd$2, `vite.config.m${ext}`);
|
|
52926
52950
|
if (existsSync(viteConfigPath)) {
|
|
@@ -55452,7 +55476,7 @@ function commandUpgradeFabric(pkgName) {
|
|
|
55452
55476
|
|
|
55453
55477
|
//#endregion
|
|
55454
55478
|
//#region package.json
|
|
55455
|
-
var version = "0.0.10-beta.
|
|
55479
|
+
var version = "0.0.10-beta.6";
|
|
55456
55480
|
|
|
55457
55481
|
//#endregion
|
|
55458
55482
|
//#region src/commands/upgrade.ts
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-vuetify0",
|
|
3
|
-
"version": "0.0.10-beta.
|
|
3
|
+
"version": "0.0.10-beta.6",
|
|
4
4
|
"description": "Create a new Vuetify project",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"nypm": "^0.6.2",
|
|
24
24
|
"pathe": "^2.0.3",
|
|
25
25
|
"tsdown": "^0.16.6",
|
|
26
|
-
"@vuetify/cli-shared": "0.0.10-beta.
|
|
26
|
+
"@vuetify/cli-shared": "0.0.10-beta.6"
|
|
27
27
|
},
|
|
28
28
|
"main": "./dist/index.mjs",
|
|
29
29
|
"module": "./dist/index.mjs",
|