create-young-proj 1.2.1 → 1.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (53) hide show
  1. package/CHANGELOG.md +61 -0
  2. package/README.md +6 -1
  3. package/dist/index.mjs +12 -12
  4. package/package.json +1 -1
  5. package/src/index.ts +6 -1
  6. package/template-nuxt-admin/env.d.ts +19 -1
  7. package/template-nuxt-admin/nuxt.config.ts +4 -2
  8. package/template-nuxt-admin/server/plugins/env.ts +0 -1
  9. package/template-nuxt-website/README.md +4 -0
  10. package/template-nuxt-website/composables/utils.ts +0 -4
  11. package/template-nuxt-website/env.d.ts +18 -1
  12. package/template-nuxt-website/nuxt.config.ts +3 -2
  13. package/template-nuxt-website/package.json +4 -5
  14. package/template-nuxt-website/server/api/get_footer_info.get.ts +3 -3
  15. package/template-nuxt-website/server/api/get_gray_status.get.ts +1 -0
  16. package/template-nuxt-website/server/api/get_head_nav.get.ts +1 -1
  17. package/template-nuxt-website/server/api/get_home_banner.get.ts +2 -2
  18. package/template-nuxt-website/server/routes/get/env.ts +13 -0
  19. package/template-nuxt-website/yarn.lock +1173 -1599
  20. package/template-uni-app/.vscode/vue-html.code-snippets +2 -7
  21. package/template-uni-app/README.md +2 -0
  22. package/template-uni-app/_env +1 -1
  23. package/template-uni-app/auto-imports.d.ts +718 -1
  24. package/template-uni-app/custom-plugins/multiconf.ts +13 -2
  25. package/template-uni-app/eslint.config.js +3 -1
  26. package/template-uni-app/package.json +11 -9
  27. package/template-uni-app/pnpm-lock.yaml +531 -866
  28. package/template-uni-app/src/manifest.json +1 -1
  29. package/template-uni-app/src/pages/index.vue +12 -9
  30. package/template-uni-app/src/pages/my.vue +6 -9
  31. package/template-uni-app/src/pages.json +1 -1
  32. package/template-uni-app/uni-pages.d.ts +24 -0
  33. package/template-uni-app/vite.config.ts +6 -3
  34. package/template-vitepress/.vitepress/components/HomePage.vue +54 -0
  35. package/template-vitepress/.vitepress/components/TodoItem.vue +16 -0
  36. package/template-vitepress/.vitepress/components.d.ts +13 -0
  37. package/template-vitepress/.vitepress/config.mts +159 -0
  38. package/template-vitepress/.vitepress/theme/index.ts +26 -0
  39. package/template-vitepress/.vitepress/theme/style.css +139 -0
  40. package/template-vitepress/Dockerfile +41 -0
  41. package/template-vitepress/README.md +102 -0
  42. package/template-vitepress/_gitignore +6 -0
  43. package/template-vitepress/_npmrc +2 -0
  44. package/template-vitepress/_nvmrc +1 -0
  45. package/template-vitepress/boot.mjs +17 -0
  46. package/template-vitepress/index.md +53 -0
  47. package/template-vitepress/nitro.config.ts +19 -0
  48. package/template-vitepress/package.json +26 -0
  49. package/template-vitepress/plugins/init.ts +204 -0
  50. package/template-vitepress/tsconfig.json +3 -0
  51. package/template-vitepress/vite.config.ts +66 -0
  52. package/template-uni-app/.eslintignore +0 -1
  53. package/template-uni-app/.eslintrc +0 -16
@@ -667,13 +667,8 @@
667
667
  },
668
668
  "route": {
669
669
  "body": [
670
- "<route lang=\"json\">",
671
- "{",
672
- " \"needLogin\": false,",
673
- " \"style\": {",
674
- "",
675
- " }",
676
- "}",
670
+ "<route lang=\"yaml\">",
671
+ "needLogin: false",
677
672
  "</route>"
678
673
  ],
679
674
  "prefix": "<route",
@@ -33,6 +33,8 @@ npm i -g young-commit
33
33
 
34
34
  - 🛠️ `pinia` 状态管理, 简单易用
35
35
 
36
+ - 🛠️ 便捷的工具函数库 [@uni-helper/uni-use](https://www.npmjs.com/package/@uni-helper/uni-use) 以及 [@vueuse/core](https://vueuse.org/functions.html)
37
+
36
38
  - 📦 自动按需导入组件和 `API`, 减少冗余代码, 自定义的组件和方法亦可自动导入
37
39
 
38
40
  - 方法自动导入,基于 [unplugin-auto-import](https://www.npmjs.com/package/unplugin-auto-import)
@@ -1,3 +1,3 @@
1
1
  # 此处存放公共配置
2
- VITE_APP_ID = tochangetowxappid_dev
2
+ VITE_APPID = tochangetowxappid_dev
3
3
  VITE_CUSTOM_LOADING = true