create-young-proj 1.6.1 → 1.7.0

Sign up to get free protection for your applications and to get access to all the features.
package/CHANGELOG.md CHANGED
@@ -1,6 +1,34 @@
1
1
  # Changelog
2
2
 
3
3
 
4
+ ## v1.7.0
5
+
6
+ [compare changes](https://github.com/BluesYoung-web/create-young-proj/compare/v1.6.2...v1.7.0)
7
+
8
+ ### 🚀 Enhancements
9
+
10
+ - 🚀 多段兼容增强 ([7d2ad5f](https://github.com/BluesYoung-web/create-young-proj/commit/7d2ad5f))
11
+
12
+ ### 🏡 Chore
13
+
14
+ - 🏡 uni-app 依赖升级 ([c514c7b](https://github.com/BluesYoung-web/create-young-proj/commit/c514c7b))
15
+
16
+ ### ❤️ Contributors
17
+
18
+ - 张扬 <bluesyoung_web@163.com>
19
+
20
+ ## v1.6.2
21
+
22
+ [compare changes](https://github.com/BluesYoung-web/create-young-proj/compare/v1.6.1...v1.6.2)
23
+
24
+ ### 🩹 Fixes
25
+
26
+ - 🩹 fix element missing ([0c5cbca](https://github.com/BluesYoung-web/create-young-proj/commit/0c5cbca))
27
+
28
+ ### ❤️ Contributors
29
+
30
+ - 张扬 <bluesyoung_web@163.com>
31
+
4
32
  ## v1.6.1
5
33
 
6
34
  [compare changes](https://github.com/BluesYoung-web/create-young-proj/compare/v1.6.0...v1.6.1)
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "create-young-proj",
3
3
  "type": "module",
4
- "version": "1.6.1",
4
+ "version": "1.7.0",
5
5
  "description": "create project from template",
6
6
  "author": "BluesYoung-web",
7
7
  "license": "MIT",
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  * @Author: zhangyang
3
3
  * @Date: 2023-09-21 15:57:55
4
- * @LastEditTime: 2023-11-30 11:03:49
4
+ * @LastEditTime: 2023-12-22 09:31:07
5
5
  * @Description:
6
6
  */
7
7
  import { resolve } from 'node:path'
@@ -22,6 +22,8 @@ export default defineNuxtConfig({
22
22
  { name: 'renderer', content: 'webkit' },
23
23
  { name: 'mobile-web-app-capable', content: 'yes' },
24
24
  { name: 'creator', content: 'BluesYoung-web' },
25
+ { 'http-equiv': 'X-UA-Compatible', 'content': 'IE=edge,chrome=1' },
26
+ { id: 'viewportMeta', name: 'viewport', content: 'maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0' },
25
27
  ],
26
28
  link: [
27
29
  {
@@ -93,4 +93,9 @@ npm i -g young-commit
93
93
 
94
94
  2. 创建对应的 `.env.{mode}` 文件
95
95
 
96
- 3. 代码中使用 `import.meta.env.{变量名}` 直接读取使用
96
+ 3. 代码中使用 `import.meta.env.{变量名}` 直接读取使用
97
+
98
+
99
+ ## 注意!!!
100
+
101
+ **`APP` 必须配置 `VITE_API_BASE_URL` 的环境变量用以接口请求**
@@ -1,3 +1,4 @@
1
1
  # 此处存放公共配置
2
- VITE_APPID = tochangetowxappid_dev
2
+ VITE_APPID = tochangetoappid_dev
3
+ VITE_APPNAME = tochangetoappname
3
4
  VITE_CUSTOM_LOADING = true
@@ -423,7 +423,6 @@ declare module 'vue' {
423
423
  readonly effectScope: UnwrapRef<typeof import('vue')['effectScope']>
424
424
  readonly extendRef: UnwrapRef<typeof import('@vueuse/core')['extendRef']>
425
425
  readonly fingerPrintAuth: UnwrapRef<typeof import('./src/utils/auth')['fingerPrintAuth']>
426
- readonly geocoderLocation: UnwrapRef<typeof import('./src/utils/map')['geocoderLocation']>
427
426
  readonly getActivePinia: UnwrapRef<typeof import('pinia')['getActivePinia']>
428
427
  readonly getAuthInfo: UnwrapRef<typeof import('./src/utils/auth')['getAuthInfo']>
429
428
  readonly getCurrentInstance: UnwrapRef<typeof import('vue')['getCurrentInstance']>
@@ -516,7 +515,6 @@ declare module 'vue' {
516
515
  readonly resolveRef: UnwrapRef<typeof import('@vueuse/core')['resolveRef']>
517
516
  readonly resolveUnref: UnwrapRef<typeof import('@vueuse/core')['resolveUnref']>
518
517
  readonly route: UnwrapRef<typeof import('./src/utils/route')['route']>
519
- readonly searchLoaction: UnwrapRef<typeof import('./src/utils/map')['searchLoaction']>
520
518
  readonly setActivePinia: UnwrapRef<typeof import('pinia')['setActivePinia']>
521
519
  readonly setLocationInfo: UnwrapRef<typeof import('./src/store/local/index')['setLocationInfo']>
522
520
  readonly setMapStoreSuffix: UnwrapRef<typeof import('pinia')['setMapStoreSuffix']>
@@ -796,7 +794,6 @@ declare module '@vue/runtime-core' {
796
794
  readonly effectScope: UnwrapRef<typeof import('vue')['effectScope']>
797
795
  readonly extendRef: UnwrapRef<typeof import('@vueuse/core')['extendRef']>
798
796
  readonly fingerPrintAuth: UnwrapRef<typeof import('./src/utils/auth')['fingerPrintAuth']>
799
- readonly geocoderLocation: UnwrapRef<typeof import('./src/utils/map')['geocoderLocation']>
800
797
  readonly getActivePinia: UnwrapRef<typeof import('pinia')['getActivePinia']>
801
798
  readonly getAuthInfo: UnwrapRef<typeof import('./src/utils/auth')['getAuthInfo']>
802
799
  readonly getCurrentInstance: UnwrapRef<typeof import('vue')['getCurrentInstance']>
@@ -889,7 +886,6 @@ declare module '@vue/runtime-core' {
889
886
  readonly resolveRef: UnwrapRef<typeof import('@vueuse/core')['resolveRef']>
890
887
  readonly resolveUnref: UnwrapRef<typeof import('@vueuse/core')['resolveUnref']>
891
888
  readonly route: UnwrapRef<typeof import('./src/utils/route')['route']>
892
- readonly searchLoaction: UnwrapRef<typeof import('./src/utils/map')['searchLoaction']>
893
889
  readonly setActivePinia: UnwrapRef<typeof import('pinia')['setActivePinia']>
894
890
  readonly setLocationInfo: UnwrapRef<typeof import('./src/store/local/index')['setLocationInfo']>
895
891
  readonly setMapStoreSuffix: UnwrapRef<typeof import('pinia')['setMapStoreSuffix']>
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  * @Author: zhangyang
3
3
  * @Date: 2023-07-19 14:32:45
4
- * @LastEditTime: 2023-11-16 09:57:41
4
+ * @LastEditTime: 2024-02-01 11:29:08
5
5
  * @Description:
6
6
  */
7
7
  import type { Plugin } from 'vite'
@@ -22,6 +22,9 @@ export function multiConf(env: string) {
22
22
  },
23
23
  generateBundle(options, bundle) {
24
24
  const appid = configEnv.VITE_APPID
25
+ const appname = configEnv.VITE_APPNAME
26
+
27
+ // 微信小程序
25
28
  const json = bundle['project.config.json'] as OutputAsset
26
29
  if (json?.source && typeof json.source === 'string') {
27
30
  const jsonConf = JSON.parse(json.source)
@@ -80,6 +83,15 @@ export function multiConf(env: string) {
80
83
 
81
84
  app.source = JSON.stringify(appConf, null, 2)
82
85
  }
86
+
87
+ // APP
88
+ const manifest = bundle['manifest.json'] as OutputAsset
89
+ if (manifest?.source && typeof manifest.source === 'string') {
90
+ const manifestConf = JSON.parse(manifest.source)
91
+ manifestConf.id = appid
92
+ manifestConf.name = appname
93
+ manifest.source = JSON.stringify(manifestConf, null, 2)
94
+ }
83
95
  },
84
96
  } as Plugin
85
97
  }
@@ -47,19 +47,19 @@
47
47
  "dependencies": {
48
48
  "@bluesyoung/http": "^1.2.0",
49
49
  "@bluesyoung/utils": "^0.2.1",
50
- "@dcloudio/uni-app": "3.0.0-3080720230703001",
51
- "@dcloudio/uni-app-plus": "3.0.0-3080720230703001",
52
- "@dcloudio/uni-components": "3.0.0-3080720230703001",
53
- "@dcloudio/uni-h5": "3.0.0-3080720230703001",
54
- "@dcloudio/uni-mp-alipay": "3.0.0-3080720230703001",
55
- "@dcloudio/uni-mp-baidu": "3.0.0-3080720230703001",
56
- "@dcloudio/uni-mp-jd": "3.0.0-3080720230703001",
57
- "@dcloudio/uni-mp-kuaishou": "3.0.0-3080720230703001",
58
- "@dcloudio/uni-mp-lark": "3.0.0-3080720230703001",
59
- "@dcloudio/uni-mp-qq": "3.0.0-3080720230703001",
60
- "@dcloudio/uni-mp-toutiao": "3.0.0-3080720230703001",
61
- "@dcloudio/uni-mp-weixin": "3.0.0-3080720230703001",
62
- "@dcloudio/uni-quickapp-webview": "3.0.0-3080720230703001",
50
+ "@dcloudio/uni-app": "3.0.0-3090920231225001",
51
+ "@dcloudio/uni-app-plus": "3.0.0-3090920231225001",
52
+ "@dcloudio/uni-components": "3.0.0-3090920231225001",
53
+ "@dcloudio/uni-h5": "3.0.0-3090920231225001",
54
+ "@dcloudio/uni-mp-alipay": "3.0.0-3090920231225001",
55
+ "@dcloudio/uni-mp-baidu": "3.0.0-3090920231225001",
56
+ "@dcloudio/uni-mp-jd": "3.0.0-3090920231225001",
57
+ "@dcloudio/uni-mp-kuaishou": "3.0.0-3090920231225001",
58
+ "@dcloudio/uni-mp-lark": "3.0.0-3090920231225001",
59
+ "@dcloudio/uni-mp-qq": "3.0.0-3090920231225001",
60
+ "@dcloudio/uni-mp-toutiao": "3.0.0-3090920231225001",
61
+ "@dcloudio/uni-mp-weixin": "3.0.0-3090920231225001",
62
+ "@dcloudio/uni-quickapp-webview": "3.0.0-3090920231225001",
63
63
  "@uni-helper/uni-use": "^0.17.1",
64
64
  "@vueuse/core": "9",
65
65
  "dayjs": "^1.11.10",
@@ -78,11 +78,11 @@
78
78
  "devDependencies": {
79
79
  "@antfu/eslint-config": "^1.1.2",
80
80
  "@dcloudio/types": "^3.4.3",
81
- "@dcloudio/uni-automator": "3.0.0-3080720230703001",
82
- "@dcloudio/uni-cli-shared": "3.0.0-3080720230703001",
83
- "@dcloudio/uni-stacktracey": "3.0.0-3080720230703001",
81
+ "@dcloudio/uni-automator": "3.0.0-3090920231225001",
82
+ "@dcloudio/uni-cli-shared": "3.0.0-3090920231225001",
83
+ "@dcloudio/uni-stacktracey": "3.0.0-3090920231225001",
84
84
  "@dcloudio/uni-ui": "^1.4.28",
85
- "@dcloudio/vite-plugin-uni": "3.0.0-3080720230703001",
85
+ "@dcloudio/vite-plugin-uni": "3.0.0-3090920231225001",
86
86
  "@types/md5": "^2.3.5",
87
87
  "@uni-helper/pages-json-schema": "^0.2.12",
88
88
  "@uni-helper/uni-app-types": "^0.5.8",