create-unibest 3.1.0 → 3.1.1
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.js +6 -8
- package/package.json +9 -7
package/dist/index.js
CHANGED
|
@@ -229,7 +229,8 @@ var UI_LIBRARY_CONFIGS = {
|
|
|
229
229
|
pattern: "^sar-(.*)",
|
|
230
230
|
path: "sard-uniapp/components/$1/$1.vue"
|
|
231
231
|
},
|
|
232
|
-
types: ["sard-uniapp/global"]
|
|
232
|
+
types: ["sard-uniapp/global"],
|
|
233
|
+
appVueImport: "@import 'sard-uniapp/index.scss';"
|
|
233
234
|
},
|
|
234
235
|
"uview-pro": {
|
|
235
236
|
packageName: "uview-pro",
|
|
@@ -600,7 +601,7 @@ async function generateProject(options) {
|
|
|
600
601
|
log.success(`\u9879\u76EE${projectName}\u521B\u5EFA\u6210\u529F\uFF01`);
|
|
601
602
|
logger.info("\u4E0B\u4E00\u6B65:");
|
|
602
603
|
logger.info(` cd ${projectName}`);
|
|
603
|
-
logger.info(" pnpm
|
|
604
|
+
logger.info(" pnpm i");
|
|
604
605
|
logger.info(" pnpm dev");
|
|
605
606
|
logger.info(" \u8FD0\u884C\u5B8C\u4EE5\u4E0A\u547D\u4EE4\u540E\uFF0C\u518D\u8FD0\u884C\u5176\u4ED6\u5E73\u53F0");
|
|
606
607
|
logger.info(" \u5982\uFF1Apnpm dev:mp, pnpm dev:app \u7B49");
|
|
@@ -611,7 +612,7 @@ async function generateProject(options) {
|
|
|
611
612
|
}
|
|
612
613
|
|
|
613
614
|
// package.json
|
|
614
|
-
var version = "3.1.
|
|
615
|
+
var version = "3.1.1";
|
|
615
616
|
var package_default = {
|
|
616
617
|
name: "create-unibest",
|
|
617
618
|
type: "module",
|
|
@@ -775,7 +776,7 @@ function generateDeviceIdentifier() {
|
|
|
775
776
|
|
|
776
777
|
// src/commands/create.ts
|
|
777
778
|
async function createCommand(args) {
|
|
778
|
-
const projectName = args._[1];
|
|
779
|
+
const projectName = args._[1] || args._[0];
|
|
779
780
|
const versionUnibest = await unibestVersion_default() || "4.0.0";
|
|
780
781
|
intro(bold3(green3(`create-unibest@v${version} \u5FEB\u901F\u521B\u5EFA ${yellow3(`unibest@v${versionUnibest}`)} \u9879\u76EE`)));
|
|
781
782
|
if (projectName) {
|
|
@@ -853,10 +854,7 @@ function main() {
|
|
|
853
854
|
printVersion();
|
|
854
855
|
break;
|
|
855
856
|
default:
|
|
856
|
-
|
|
857
|
-
console.log(color.red(`\u672A\u77E5\u547D\u4EE4: ${command}`));
|
|
858
|
-
}
|
|
859
|
-
printHelp();
|
|
857
|
+
createCommand(args);
|
|
860
858
|
break;
|
|
861
859
|
}
|
|
862
860
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-unibest",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "3.1.
|
|
4
|
+
"version": "3.1.1",
|
|
5
|
+
"packageManager": "pnpm@9.0.0",
|
|
5
6
|
"description": "快速创建unibest项目的脚手架工具",
|
|
6
7
|
"author": "",
|
|
7
8
|
"license": "ISC",
|
|
@@ -15,6 +16,12 @@
|
|
|
15
16
|
"bin",
|
|
16
17
|
"dist"
|
|
17
18
|
],
|
|
19
|
+
"scripts": {
|
|
20
|
+
"dev": "cross-env NODE_ENV=development tsup --watch",
|
|
21
|
+
"build": "cross-env NODE_ENV=production tsup",
|
|
22
|
+
"prepare": "cross-env NODE_ENV=production npm run build",
|
|
23
|
+
"start": "cross-env NODE_ENV=development node bin/index.js"
|
|
24
|
+
},
|
|
18
25
|
"dependencies": {
|
|
19
26
|
"@clack/prompts": "^0.11.0",
|
|
20
27
|
"dayjs": "^1.11.18",
|
|
@@ -32,10 +39,5 @@
|
|
|
32
39
|
"cross-env": "^7.0.3",
|
|
33
40
|
"tsup": "^8.5.0",
|
|
34
41
|
"typescript": "^5.9.0"
|
|
35
|
-
},
|
|
36
|
-
"scripts": {
|
|
37
|
-
"dev": "cross-env NODE_ENV=development tsup --watch",
|
|
38
|
-
"build": "cross-env NODE_ENV=production tsup",
|
|
39
|
-
"start": "cross-env NODE_ENV=development node bin/index.js"
|
|
40
42
|
}
|
|
41
|
-
}
|
|
43
|
+
}
|