create-pubinfo-pr 0.182.2 → 0.182.4

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.
Files changed (88) hide show
  1. package/dist/cli.js +1 -1
  2. package/package.json +2 -2
  3. package/templates/pubinfo-app/eslint.config.ts +1 -1
  4. package/templates/pubinfo-app/openapi.config.ts.hbs +2 -2
  5. package/templates/pubinfo-app/package.json.hbs +15 -15
  6. package/templates/pubinfo-app/pubinfo.config.ts +1 -1
  7. package/templates/pubinfo-app/src/api/request.ts +1 -1
  8. package/templates/pubinfo-app/src/components/UIProvider/index.vue +1 -1
  9. package/templates/pubinfo-app/src/layouts/index.vue +1 -1
  10. package/templates/pubinfo-app/src/main.ts.hbs +1 -1
  11. package/templates/pubinfo-app/src/modules/captcha.ts +1 -1
  12. package/templates/pubinfo-app/src/modules/rbac.ts +1 -1
  13. package/templates/pubinfo-app/src/routes/index.ts +1 -1
  14. package/templates/pubinfo-app/src/settings.ts.hbs +1 -1
  15. package/templates/pubinfo-app/src/stores/index.ts +1 -1
  16. package/templates/pubinfo-app/src/views/demo/breadcrumb_example/detail1.vue +1 -1
  17. package/templates/pubinfo-app/src/views/demo/breadcrumb_example/detail2.vue +1 -1
  18. package/templates/pubinfo-app/src/views/demo/breadcrumb_example/list1.vue +1 -1
  19. package/templates/pubinfo-app/src/views/demo/breadcrumb_example/list2.vue +1 -1
  20. package/templates/pubinfo-app/src/views/demo/multilevel_menu_example/level2/level3/page1.vue +1 -1
  21. package/templates/pubinfo-app/src/views/demo/multilevel_menu_example/level2/level3/page2.vue +1 -1
  22. package/templates/pubinfo-app/src/views/demo/multilevel_menu_example/level2/page.vue +1 -1
  23. package/templates/pubinfo-app/src/views/demo/multilevel_menu_example/page.vue +1 -1
  24. package/templates/pubinfo-app/src/views/demo/other_page/des.vue +1 -1
  25. package/templates/pubinfo-app/src/views/demo/other_page/index.vue +1 -1
  26. package/templates/pubinfo-app/src/views/demo/single/index.vue +1 -1
  27. package/templates/pubinfo-app/src/views/system/login/components/PasswordLogin.vue +2 -2
  28. package/templates/pubinfo-app/stylelint.config.js +1 -1
  29. package/templates/pubinfo-app/uno.config.ts +1 -1
  30. package/templates/pubinfo-module/eslint.config.ts +1 -1
  31. package/templates/pubinfo-module/package.json.hbs +11 -11
  32. package/templates/pubinfo-module/playground/openapi.config.ts.hbs +2 -2
  33. package/templates/pubinfo-module/playground/package.json.hbs +6 -6
  34. package/templates/pubinfo-module/playground/pubinfo.config.ts +1 -1
  35. package/templates/pubinfo-module/playground/src/api/request.ts +1 -1
  36. package/templates/pubinfo-module/playground/src/components/UIProvider/index.vue +1 -1
  37. package/templates/pubinfo-module/playground/src/layouts/index.vue +1 -1
  38. package/templates/pubinfo-module/playground/src/main.ts.hbs +1 -1
  39. package/templates/pubinfo-module/playground/src/modules/rbac.ts +1 -1
  40. package/templates/pubinfo-module/playground/src/routes/index.ts +1 -1
  41. package/templates/pubinfo-module/playground/src/settings.ts +1 -1
  42. package/templates/pubinfo-module/playground/src/stores/index.ts +1 -1
  43. package/templates/pubinfo-module/playground/src/views/demo/breadcrumb_example/detail1.vue +1 -1
  44. package/templates/pubinfo-module/playground/src/views/demo/breadcrumb_example/detail2.vue +1 -1
  45. package/templates/pubinfo-module/playground/src/views/demo/breadcrumb_example/list1.vue +1 -1
  46. package/templates/pubinfo-module/playground/src/views/demo/breadcrumb_example/list2.vue +1 -1
  47. package/templates/pubinfo-module/playground/src/views/demo/multilevel_menu_example/level2/level3/page1.vue +1 -1
  48. package/templates/pubinfo-module/playground/src/views/demo/multilevel_menu_example/level2/level3/page2.vue +1 -1
  49. package/templates/pubinfo-module/playground/src/views/demo/multilevel_menu_example/level2/page.vue +1 -1
  50. package/templates/pubinfo-module/playground/src/views/demo/multilevel_menu_example/page.vue +1 -1
  51. package/templates/pubinfo-module/playground/src/views/demo/other_page/des.vue +1 -1
  52. package/templates/pubinfo-module/playground/src/views/demo/other_page/index.vue +1 -1
  53. package/templates/pubinfo-module/playground/src/views/demo/single/index.vue +1 -1
  54. package/templates/pubinfo-module/playground/src/views/system/login/components/PasswordLogin.vue +1 -1
  55. package/templates/pubinfo-module/playground/uno.config.ts +1 -1
  56. package/templates/pubinfo-module/pubinfo.config.ts.hbs +1 -1
  57. package/templates/pubinfo-module/src/index.ts.hbs +2 -2
  58. package/templates/pubinfo-module/stylelint.config.js +1 -1
  59. package/templates/pubinfo-module/uno.config.ts +1 -1
  60. package/templates/pubinfo-monorepo/apps/basic/openapi.config.ts.hbs +2 -2
  61. package/templates/pubinfo-monorepo/apps/basic/package.json.hbs +12 -12
  62. package/templates/pubinfo-monorepo/apps/basic/pubinfo.config.ts +1 -1
  63. package/templates/pubinfo-monorepo/apps/basic/src/api/request.ts +1 -1
  64. package/templates/pubinfo-monorepo/apps/basic/src/components/UIProvider/index.vue +1 -1
  65. package/templates/pubinfo-monorepo/apps/basic/src/layouts/index.vue +1 -1
  66. package/templates/pubinfo-monorepo/apps/basic/src/main.ts.hbs +1 -1
  67. package/templates/pubinfo-monorepo/apps/basic/src/modules/captcha.ts +1 -1
  68. package/templates/pubinfo-monorepo/apps/basic/src/modules/rbac.ts +1 -1
  69. package/templates/pubinfo-monorepo/apps/basic/src/routes/index.ts +1 -1
  70. package/templates/pubinfo-monorepo/apps/basic/src/settings.ts.hbs +1 -1
  71. package/templates/pubinfo-monorepo/apps/basic/src/stores/index.ts +1 -1
  72. package/templates/pubinfo-monorepo/apps/basic/src/views/demo/breadcrumb_example/detail1.vue +1 -1
  73. package/templates/pubinfo-monorepo/apps/basic/src/views/demo/breadcrumb_example/detail2.vue +1 -1
  74. package/templates/pubinfo-monorepo/apps/basic/src/views/demo/breadcrumb_example/list1.vue +1 -1
  75. package/templates/pubinfo-monorepo/apps/basic/src/views/demo/breadcrumb_example/list2.vue +1 -1
  76. package/templates/pubinfo-monorepo/apps/basic/src/views/demo/multilevel_menu_example/level2/level3/page1.vue +1 -1
  77. package/templates/pubinfo-monorepo/apps/basic/src/views/demo/multilevel_menu_example/level2/level3/page2.vue +1 -1
  78. package/templates/pubinfo-monorepo/apps/basic/src/views/demo/multilevel_menu_example/level2/page.vue +1 -1
  79. package/templates/pubinfo-monorepo/apps/basic/src/views/demo/multilevel_menu_example/page.vue +1 -1
  80. package/templates/pubinfo-monorepo/apps/basic/src/views/demo/other_page/des.vue +1 -1
  81. package/templates/pubinfo-monorepo/apps/basic/src/views/demo/other_page/index.vue +1 -1
  82. package/templates/pubinfo-monorepo/apps/basic/src/views/demo/single/index.vue +1 -1
  83. package/templates/pubinfo-monorepo/apps/basic/src/views/system/login/components/PasswordLogin.vue +2 -2
  84. package/templates/pubinfo-monorepo/apps/basic/uno.config.ts +1 -1
  85. package/templates/pubinfo-monorepo/eslint.config.ts +1 -1
  86. package/templates/pubinfo-monorepo/package.json.hbs +6 -5
  87. package/templates/pubinfo-monorepo/pnpm-workspace.yaml +1 -1
  88. package/templates/pubinfo-monorepo/stylelint.config.js +1 -1
package/dist/cli.js CHANGED
@@ -43,7 +43,7 @@ const pubinfo = async (input$1, { auth }) => {
43
43
  async function download(options) {
44
44
  const finish = loading();
45
45
  try {
46
- await downloadTemplate(`pubinfo:${PKG_NAME}-${options.version}`, {
46
+ await downloadTemplate(`pubinfo-pr:${PKG_NAME}-${options.version}`, {
47
47
  providers: { pubinfo },
48
48
  force: true,
49
49
  forceClean: true,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "create-pubinfo-pr",
3
3
  "type": "module",
4
- "version": "0.182.2",
4
+ "version": "0.182.4",
5
5
  "description": "初始化项目框架",
6
6
  "author": "Werheng <werheng.zhang@gmail.com>",
7
7
  "license": "MIT",
@@ -27,7 +27,7 @@
27
27
  },
28
28
  "dependencies": {
29
29
  "@inquirer/prompts": "^7.6.0",
30
- "@pubinfo-pr/shared": "0.182.2",
30
+ "@pubinfo-pr/shared": "0.182.4",
31
31
  "ansi-colors": "^4.1.3",
32
32
  "cfonts": "^3.3.0",
33
33
  "commander": "^14.0.0",
@@ -1,3 +1,3 @@
1
- import pubinfo from 'pubinfo/eslint';
1
+ import pubinfo from 'pubinfo-pr/eslint';
2
2
 
3
3
  export default pubinfo();
@@ -1,5 +1,5 @@
1
- import { defineConfig } from '@pubinfo/openapi';
2
- import { presetName } from '@pubinfo/preset-openapi';
1
+ import { defineConfig } from '@pubinfo-pr/openapi';
2
+ import { presetName } from '@pubinfo-pr/preset-openapi';
3
3
 
4
4
  export default defineConfig({
5
5
  enabled: {{openapi}},
@@ -7,35 +7,35 @@
7
7
  "node": "^20.19.0 || >=22.12.0"
8
8
  },
9
9
  "scripts": {
10
- "dev": "pubinfo dev",
11
- "build": "pubinfo build",
12
- "preview": "pubinfo preview",
13
- "commit": "pubinfo commit",
14
- "upgrade": "pubinfo upgrade",
15
- "prepare": "pubinfo setup && pubinfo commit --init",
10
+ "dev": "pubinfo-pr dev",
11
+ "build": "pubinfo-pr build",
12
+ "preview": "pubinfo-pr preview",
13
+ "commit": "pubinfo-pr commit",
14
+ "upgrade": "pubinfo-pr upgrade",
15
+ "prepare": "pubinfo-pr setup && pubinfo-pr commit --init",
16
16
  "lint": "pnpm run lint:eslint && pnpm run lint:stylelint",
17
17
  "lint:eslint": "eslint . --cache --fix",
18
18
  "lint:stylelint": "stylelint \"src/**/*.{css,scss,vue}\" --cache --fix",
19
19
  "viewer:eslint-rule": "pnpx @eslint/config-inspector",
20
- "openapi": "pnpx @pubinfo/openapi generate",
21
- "icon:normalize": "pubinfo icon"
20
+ "openapi": "pnpx @pubinfo-pr/openapi generate",
21
+ "icon:normalize": "pubinfo-pr icon"
22
22
  },
23
23
  "dependencies": {
24
24
  "@ant-design/icons-vue": "^7.0.1",
25
- "@pubinfo/module-captcha": "{{version}}",
25
+ "@pubinfo-pr/module-captcha": "{{version}}",
26
26
  {{#if rbac}}
27
- "@pubinfo/module-rbac": "{{version}}",
27
+ "@pubinfo-pr/module-rbac": "{{version}}",
28
28
  {{/if}}
29
- "@pubinfo/pro-components": "^1.7.1",
29
+ "@pubinfo-pr/pro-components": "^1.7.1",
30
30
  "@vueuse/core": "^13.7.0",
31
31
  "alova": "^3.3.4",
32
32
  "ant-design-vue": "^4.2.6",
33
33
  "dayjs": "^1.11.13",
34
- "pubinfo": "{{version}}"
34
+ "pubinfo-pr": "{{version}}"
35
35
  },
36
36
  "devDependencies": {
37
- "@pubinfo/openapi": "^0.9.0",
38
- "@pubinfo/preset-openapi": "^0.9.0",
37
+ "@pubinfo-pr/openapi": "^0.9.0",
38
+ "@pubinfo-pr/preset-openapi": "^0.9.0",
39
39
  "eslint": "^9.30.1",
40
40
  "lint-staged": "^16.1.2",
41
41
  "simple-git-hooks": "^2.13.0",
@@ -44,7 +44,7 @@
44
44
  },
45
45
  "simple-git-hooks": {
46
46
  "pre-commit": "pnpm lint-staged",
47
- "commit-msg": "pnpm exec pubinfo commit --edit $1"
47
+ "commit-msg": "pnpm exec pubinfo-pr commit --edit $1"
48
48
  },
49
49
  "lint-staged": {
50
50
  "*.{vue,js,ts,jsx,tsx,md,json}": "eslint --cache --fix",
@@ -1,4 +1,4 @@
1
- import { definePubinfoConfig } from 'pubinfo/node';
1
+ import { definePubinfoConfig } from 'pubinfo-pr/node';
2
2
 
3
3
  export default definePubinfoConfig({
4
4
  vite: {
@@ -1,5 +1,5 @@
1
1
  import { message } from 'ant-design-vue';
2
- import { createRequest, RESPONSE_CODE } from 'pubinfo';
2
+ import { createRequest, RESPONSE_CODE } from 'pubinfo-pr';
3
3
  import { useUserStore } from '@/stores';
4
4
 
5
5
  /**
@@ -2,7 +2,7 @@
2
2
  import { legacyLogicalPropertiesTransformer, theme } from 'ant-design-vue';
3
3
  import zhCN from 'ant-design-vue/es/locale/zh_CN';
4
4
  import dayjs from 'dayjs';
5
- import { useTheme } from 'pubinfo';
5
+ import { useTheme } from 'pubinfo-pr';
6
6
  import 'dayjs/locale/zh-cn';
7
7
 
8
8
  defineOptions({
@@ -5,7 +5,7 @@ import {
5
5
  Logo,
6
6
  Tool,
7
7
  Tools,
8
- } from 'pubinfo';
8
+ } from 'pubinfo-pr';
9
9
 
10
10
  const title = import.meta.env.VITE_APP_TITLE;
11
11
  const dev = import.meta.env.DEV;
@@ -1,4 +1,4 @@
1
- import { createPubinfo } from 'pubinfo';
1
+ import { createPubinfo } from 'pubinfo-pr';
2
2
  import { auth, basic } from './api/request';
3
3
  import App from './App.vue';
4
4
  import { setupCaptcha } from './modules/captcha';
@@ -1,4 +1,4 @@
1
- import { captcha } from '@pubinfo/module-captcha';
1
+ import { captcha } from '@pubinfo-pr/module-captcha';
2
2
  import { auth } from '../api/request';
3
3
 
4
4
  export function setupCaptcha() {
@@ -1,4 +1,4 @@
1
- import { rbac } from '@pubinfo/module-rbac';
1
+ import { rbac } from '@pubinfo-pr/module-rbac';
2
2
  import { basic } from '../api/request';
3
3
 
4
4
  export function setupRbac() {
@@ -1,4 +1,4 @@
1
- import { defineAsyncRoutes, defineSystemRoutes } from 'pubinfo';
1
+ import { defineAsyncRoutes, defineSystemRoutes } from 'pubinfo-pr';
2
2
  import Login from '@/views/system/login/index.vue';
3
3
 
4
4
  import Breadcrumb from './modules/demo/breadcrumb.example';
@@ -1,4 +1,4 @@
1
- import { defineSettings } from 'pubinfo';
1
+ import { defineSettings } from 'pubinfo-pr';
2
2
 
3
3
  export default defineSettings({
4
4
  // 请在此处编写或粘贴配置代码
@@ -1,2 +1,2 @@
1
1
  export * from './modules/conter';
2
- export { useUserStore } from 'pubinfo';
2
+ export { useUserStore } from 'pubinfo-pr';
@@ -1,5 +1,5 @@
1
1
  <script setup lang="ts">
2
- import { PageMain } from 'pubinfo';
2
+ import { PageMain } from 'pubinfo-pr';
3
3
  </script>
4
4
 
5
5
  <template>
@@ -1,5 +1,5 @@
1
1
  <script setup lang="ts">
2
- import { PageMain } from 'pubinfo';
2
+ import { PageMain } from 'pubinfo-pr';
3
3
  </script>
4
4
 
5
5
  <template>
@@ -1,5 +1,5 @@
1
1
  <script setup lang="ts">
2
- import { PageMain } from 'pubinfo';
2
+ import { PageMain } from 'pubinfo-pr';
3
3
  </script>
4
4
 
5
5
  <template>
@@ -1,5 +1,5 @@
1
1
  <script setup lang="ts">
2
- import { PageMain } from 'pubinfo';
2
+ import { PageMain } from 'pubinfo-pr';
3
3
  </script>
4
4
 
5
5
  <template>
@@ -1,5 +1,5 @@
1
1
  <script setup lang="ts">
2
- import { PageMain } from 'pubinfo';
2
+ import { PageMain } from 'pubinfo-pr';
3
3
  </script>
4
4
 
5
5
  <template>
@@ -1,5 +1,5 @@
1
1
  <script setup lang="ts">
2
- import { PageMain } from 'pubinfo';
2
+ import { PageMain } from 'pubinfo-pr';
3
3
  </script>
4
4
 
5
5
  <template>
@@ -1,5 +1,5 @@
1
1
  <script setup lang="ts">
2
- import { PageMain } from 'pubinfo';
2
+ import { PageMain } from 'pubinfo-pr';
3
3
  </script>
4
4
 
5
5
  <template>
@@ -1,5 +1,5 @@
1
1
  <script setup lang="ts">
2
- import { PageMain } from 'pubinfo';
2
+ import { PageMain } from 'pubinfo-pr';
3
3
  </script>
4
4
 
5
5
  <template>
@@ -1,5 +1,5 @@
1
1
  <script setup lang="ts">
2
- import { PageMain } from 'pubinfo';
2
+ import { PageMain } from 'pubinfo-pr';
3
3
 
4
4
  defineOptions({
5
5
  name: 'OtherPageDetail',
@@ -1,5 +1,5 @@
1
1
  <script setup lang="ts">
2
- import { PageMain } from 'pubinfo';
2
+ import { PageMain } from 'pubinfo-pr';
3
3
 
4
4
  defineOptions({
5
5
  name: 'OtherPage',
@@ -1,5 +1,5 @@
1
1
  <script setup lang="ts">
2
- import { PageMain } from 'pubinfo';
2
+ import { PageMain } from 'pubinfo-pr';
3
3
 
4
4
  defineOptions({
5
5
  name: 'Demo',
@@ -1,10 +1,10 @@
1
1
  <script setup lang="ts">
2
2
  import type { FormInstance, Rule } from 'ant-design-vue/es/form';
3
3
  import type { UnwrapRef } from 'vue';
4
- import { PubinfoVerifyInput } from '@pubinfo/module-captcha';
4
+ import { PubinfoVerifyInput } from '@pubinfo-pr/module-captcha';
5
5
  import { useToggle } from '@vueuse/core';
6
6
  import { message, Modal } from 'ant-design-vue';
7
- import { RESPONSE_CODE, useUserStore } from 'pubinfo';
7
+ import { RESPONSE_CODE, useUserStore } from 'pubinfo-pr';
8
8
  import { useFocusElement } from '../composables';
9
9
  import Useragreement from './Useragreement.vue';
10
10
 
@@ -1,3 +1,3 @@
1
1
  export default {
2
- extends: ['pubinfo/stylelint'],
2
+ extends: ['pubinfo-pr/stylelint'],
3
3
  };
@@ -1,4 +1,4 @@
1
- import { presetUnocss } from 'pubinfo/unocss';
1
+ import { presetUnocss } from 'pubinfo-pr/unocss';
2
2
  import { defineConfig } from 'unocss';
3
3
 
4
4
  export default defineConfig({
@@ -1,3 +1,3 @@
1
- import pubinfo from 'pubinfo/eslint';
1
+ import pubinfo from 'pubinfo-pr/eslint';
2
2
 
3
3
  export default pubinfo();
@@ -24,35 +24,35 @@
24
24
  "play": "pnpm run -C playground dev",
25
25
  "play:build": "pnpm run -C playground build",
26
26
  "play:preview": "pnpm run -C playground preview",
27
- "dev": "pubinfo build -w",
28
- "build": "pubinfo build",
29
- "commit": "pubinfo commit",
30
- "upgrade": "pubinfo upgrade",
31
- "prepare": "pubinfo setup && pubinfo commit --init",
27
+ "dev": "pubinfo-pr build -w",
28
+ "build": "pubinfo-pr build",
29
+ "commit": "pubinfo-pr commit",
30
+ "upgrade": "pubinfo-pr upgrade",
31
+ "prepare": "pubinfo-pr setup && pubinfo-pr commit --init",
32
32
  "lint": "pnpm run lint:eslint && pnpm run lint:stylelint",
33
33
  "lint:eslint": "eslint . --cache --fix",
34
34
  "lint:stylelint": "stylelint \"src/**/*.{css,scss,vue}\" --cache --fix",
35
- "openapi": "pnpx @pubinfo/openapi generate",
35
+ "openapi": "pnpx @pubinfo-pr/openapi generate",
36
36
  "release": "bumpp",
37
37
  "deps": "pnpx taze -r",
38
38
  "deps:up": "pnpx taze -wr"
39
39
  },
40
40
  "peerDependencies": {
41
- "pubinfo": ">=2.0.0"
41
+ "pubinfo-pr": ">=2.0.0"
42
42
  },
43
43
  "devDependencies": {
44
- "@pubinfo/openapi": "^0.9.0",
45
- "@pubinfo/preset-openapi": "^0.9.0",
44
+ "@pubinfo-pr/openapi": "^0.9.0",
45
+ "@pubinfo-pr/preset-openapi": "^0.9.0",
46
46
  "eslint": "^9.30.1",
47
47
  "lint-staged": "^16.1.2",
48
- "pubinfo": "{{version}}",
48
+ "pubinfo-pr": "{{version}}",
49
49
  "simple-git-hooks": "^2.13.0",
50
50
  "stylelint": "^16.21.0",
51
51
  "typescript": "^5.8.3"
52
52
  },
53
53
  "simple-git-hooks": {
54
54
  "pre-commit": "pnpm lint-staged",
55
- "commit-msg": "pnpm exec pubinfo commit --edit $1"
55
+ "commit-msg": "pnpm exec pubinfo-pr commit --edit $1"
56
56
  },
57
57
  "lint-staged": {
58
58
  "*.{vue,js,ts,jsx,tsx,md,json}": "eslint --cache --fix",
@@ -1,5 +1,5 @@
1
- import { defineConfig } from '@pubinfo/openapi';
2
- import { presetName } from '@pubinfo/preset-openapi';
1
+ import { defineConfig } from '@pubinfo-pr/openapi';
2
+ import { presetName } from '@pubinfo-pr/preset-openapi';
3
3
 
4
4
  export default defineConfig({
5
5
  enabled: {{openapi}},
@@ -3,15 +3,15 @@
3
3
  "type": "module",
4
4
  "private": true,
5
5
  "scripts": {
6
- "dev": "pubinfo dev",
7
- "build": "pubinfo build",
8
- "preview": "pubinfo preview",
9
- "openapi": "pnpx @pubinfo/openapi generate"
6
+ "dev": "pubinfo-pr dev",
7
+ "build": "pubinfo-pr build",
8
+ "preview": "pubinfo-pr preview",
9
+ "openapi": "pnpx @pubinfo-pr/openapi generate"
10
10
  },
11
11
  "dependencies": {
12
12
  "@ant-design/icons-vue": "^7.0.1",
13
- "@pubinfo/module-rbac": "{{version}}",
14
- "@pubinfo/pro-components": "^1.7.3",
13
+ "@pubinfo-pr/module-rbac": "{{version}}",
14
+ "@pubinfo-pr/pro-components": "^1.7.3",
15
15
  "@vueuse/core": "^13.7.0",
16
16
  "alova": "^3.3.4",
17
17
  "ant-design-vue": "^4.2.6",
@@ -1,4 +1,4 @@
1
- import { definePubinfoConfig } from 'pubinfo/node';
1
+ import { definePubinfoConfig } from 'pubinfo-pr/node';
2
2
 
3
3
  export default definePubinfoConfig({
4
4
  vite: {
@@ -1,5 +1,5 @@
1
1
  import { message } from 'ant-design-vue';
2
- import { createRequest, RESPONSE_CODE } from 'pubinfo';
2
+ import { createRequest, RESPONSE_CODE } from 'pubinfo-pr';
3
3
  import { useUserStore } from '@/stores';
4
4
 
5
5
  /**
@@ -2,7 +2,7 @@
2
2
  import { legacyLogicalPropertiesTransformer, theme } from 'ant-design-vue';
3
3
  import zhCN from 'ant-design-vue/es/locale/zh_CN';
4
4
  import dayjs from 'dayjs';
5
- import { useTheme } from 'pubinfo';
5
+ import { useTheme } from 'pubinfo-pr';
6
6
  import 'dayjs/locale/zh-cn';
7
7
 
8
8
  defineOptions({
@@ -5,7 +5,7 @@ import {
5
5
  Logo,
6
6
  Tool,
7
7
  Tools,
8
- } from 'pubinfo';
8
+ } from 'pubinfo-pr';
9
9
 
10
10
  const title = import.meta.env.VITE_APP_TITLE;
11
11
  const dev = import.meta.env.DEV;
@@ -1,4 +1,4 @@
1
- import { createPubinfo } from 'pubinfo';
1
+ import { createPubinfo } from 'pubinfo-pr';
2
2
  import { {{camelCase dir}} } from 'pubinfo-module-{{kebabCase dir}}';
3
3
  import { auth, basic } from './api/request';
4
4
  import App from './App.vue';
@@ -1,4 +1,4 @@
1
- import { rbac } from '@pubinfo/module-rbac';
1
+ import { rbac } from '@pubinfo-pr/module-rbac';
2
2
  import { basic } from '../api/request';
3
3
 
4
4
  export function setupRbac() {
@@ -1,4 +1,4 @@
1
- import { defineAsyncRoutes, defineSystemRoutes } from 'pubinfo';
1
+ import { defineAsyncRoutes, defineSystemRoutes } from 'pubinfo-pr';
2
2
  import Login from '@/views/system/login/index.vue';
3
3
 
4
4
  import Breadcrumb from './modules/demo/breadcrumb.example';
@@ -1,4 +1,4 @@
1
- import { defineSettings } from 'pubinfo';
1
+ import { defineSettings } from 'pubinfo-pr';
2
2
 
3
3
  export default defineSettings({
4
4
  // 请在此处编写或粘贴配置代码
@@ -1,2 +1,2 @@
1
1
  export * from './modules/conter';
2
- export { useUserStore } from 'pubinfo';
2
+ export { useUserStore } from 'pubinfo-pr';
@@ -1,5 +1,5 @@
1
1
  <script setup lang="ts">
2
- import { PageMain } from 'pubinfo';
2
+ import { PageMain } from 'pubinfo-pr';
3
3
  </script>
4
4
 
5
5
  <template>
@@ -1,5 +1,5 @@
1
1
  <script setup lang="ts">
2
- import { PageMain } from 'pubinfo';
2
+ import { PageMain } from 'pubinfo-pr';
3
3
  </script>
4
4
 
5
5
  <template>
@@ -1,5 +1,5 @@
1
1
  <script setup lang="ts">
2
- import { PageMain } from 'pubinfo';
2
+ import { PageMain } from 'pubinfo-pr';
3
3
  </script>
4
4
 
5
5
  <template>
@@ -1,5 +1,5 @@
1
1
  <script setup lang="ts">
2
- import { PageMain } from 'pubinfo';
2
+ import { PageMain } from 'pubinfo-pr';
3
3
  </script>
4
4
 
5
5
  <template>
@@ -1,5 +1,5 @@
1
1
  <script setup lang="ts">
2
- import { PageMain } from 'pubinfo';
2
+ import { PageMain } from 'pubinfo-pr';
3
3
  </script>
4
4
 
5
5
  <template>
@@ -1,5 +1,5 @@
1
1
  <script setup lang="ts">
2
- import { PageMain } from 'pubinfo';
2
+ import { PageMain } from 'pubinfo-pr';
3
3
  </script>
4
4
 
5
5
  <template>
@@ -1,5 +1,5 @@
1
1
  <script setup lang="ts">
2
- import { PageMain } from 'pubinfo';
2
+ import { PageMain } from 'pubinfo-pr';
3
3
  </script>
4
4
 
5
5
  <template>
@@ -1,5 +1,5 @@
1
1
  <script setup lang="ts">
2
- import { PageMain } from 'pubinfo';
2
+ import { PageMain } from 'pubinfo-pr';
3
3
  </script>
4
4
 
5
5
  <template>
@@ -1,5 +1,5 @@
1
1
  <script setup lang="ts">
2
- import { PageMain } from 'pubinfo';
2
+ import { PageMain } from 'pubinfo-pr';
3
3
 
4
4
  defineOptions({
5
5
  name: 'OtherPageDetail',
@@ -1,5 +1,5 @@
1
1
  <script setup lang="ts">
2
- import { PageMain } from 'pubinfo';
2
+ import { PageMain } from 'pubinfo-pr';
3
3
 
4
4
  defineOptions({
5
5
  name: 'OtherPage',
@@ -1,5 +1,5 @@
1
1
  <script setup lang="ts">
2
- import { PageMain } from 'pubinfo';
2
+ import { PageMain } from 'pubinfo-pr';
3
3
 
4
4
  defineOptions({
5
5
  name: 'Demo',
@@ -3,7 +3,7 @@ import type { FormInstance, Rule } from 'ant-design-vue/es/form';
3
3
  import type { UnwrapRef } from 'vue';
4
4
  import { useToggle } from '@vueuse/core';
5
5
  import { message, Modal } from 'ant-design-vue';
6
- import { RESPONSE_CODE, useUserStore } from 'pubinfo';
6
+ import { RESPONSE_CODE, useUserStore } from 'pubinfo-pr';
7
7
  import { useCaptchas, useFocusElement } from '../composables';
8
8
  import Useragreement from './Useragreement.vue';
9
9
 
@@ -1,4 +1,4 @@
1
- import { presetUnocss } from 'pubinfo/unocss';
1
+ import { presetUnocss } from 'pubinfo-pr/unocss';
2
2
  import { defineConfig } from 'unocss';
3
3
 
4
4
  export default defineConfig({
@@ -1,4 +1,4 @@
1
- import { defineModuleConfig } from 'pubinfo/node';
1
+ import { defineModuleConfig } from 'pubinfo-pr/node';
2
2
  import pkg from './package.json' with { type: 'json' };
3
3
 
4
4
  const external = Object
@@ -1,9 +1,9 @@
1
- import type { ModuleOptions } from 'pubinfo';
1
+ import type { ModuleOptions } from 'pubinfo-pr';
2
2
  import 'uno.css';
3
3
 
4
4
  export function {{camelCase dir}}(): ModuleOptions {
5
5
  return {
6
- name: 'pubinfo:{{kebabCase dir}}',
6
+ name: 'pubinfo-pr:{{kebabCase dir}}',
7
7
  setup() {},
8
8
  };
9
9
  }
@@ -1,3 +1,3 @@
1
1
  export default {
2
- extends: ['pubinfo/stylelint'],
2
+ extends: ['pubinfo-pr/stylelint'],
3
3
  };
@@ -1,4 +1,4 @@
1
- import { presetUnocss } from 'pubinfo/unocss';
1
+ import { presetUnocss } from 'pubinfo-pr/unocss';
2
2
  import { defineConfig } from 'unocss';
3
3
 
4
4
  export default defineConfig({
@@ -1,5 +1,5 @@
1
- import { defineConfig } from '@pubinfo/openapi';
2
- import { presetName } from '@pubinfo/preset-openapi';
1
+ import { defineConfig } from '@pubinfo-pr/openapi';
2
+ import { presetName } from '@pubinfo-pr/preset-openapi';
3
3
 
4
4
  export default defineConfig({
5
5
  enabled: {{openapi}},
@@ -3,24 +3,24 @@
3
3
  "type": "module",
4
4
  "private": true,
5
5
  "scripts": {
6
- "dev": "pubinfo dev",
7
- "build": "pubinfo build",
8
- "preview": "pubinfo preview",
9
- "upgrade": "pubinfo upgrade",
10
- "prepare": "pubinfo setup",
11
- "openapi": "pnpx @pubinfo/openapi generate",
12
- "icon:normalize": "pubinfo icon"
6
+ "dev": "pubinfo-pr dev",
7
+ "build": "pubinfo-pr build",
8
+ "preview": "pubinfo-pr preview",
9
+ "upgrade": "pubinfo-pr upgrade",
10
+ "prepare": "pubinfo-pr setup",
11
+ "openapi": "pnpx @pubinfo-pr/openapi generate",
12
+ "icon:normalize": "pubinfo-pr icon"
13
13
  },
14
14
  "dependencies": {
15
- "@pubinfo/module-captcha": "{{version}}",
15
+ "@pubinfo-pr/module-captcha": "{{version}}",
16
16
  {{#if rbac}}
17
- "@pubinfo/module-rbac": "{{version}}",
17
+ "@pubinfo-pr/module-rbac": "{{version}}",
18
18
  {{/if}}
19
19
  "@vueuse/core": "^14.0.0",
20
- "pubinfo": "{{version}}"
20
+ "pubinfo-pr": "{{version}}"
21
21
  },
22
22
  "devDependencies": {
23
- "@pubinfo/openapi": "^0.9.1",
24
- "@pubinfo/preset-openapi": "^0.9.1"
23
+ "@pubinfo-pr/openapi": "^0.9.1",
24
+ "@pubinfo-pr/preset-openapi": "^0.9.1"
25
25
  }
26
26
  }
@@ -1,4 +1,4 @@
1
- import { definePubinfoConfig } from 'pubinfo/node';
1
+ import { definePubinfoConfig } from 'pubinfo-pr/node';
2
2
 
3
3
  export default definePubinfoConfig({
4
4
  vite: {
@@ -1,5 +1,5 @@
1
1
  import { message } from 'ant-design-vue';
2
- import { createRequest, RESPONSE_CODE } from 'pubinfo';
2
+ import { createRequest, RESPONSE_CODE } from 'pubinfo-pr';
3
3
  import { useUserStore } from '@/stores';
4
4
 
5
5
  /**
@@ -2,7 +2,7 @@
2
2
  import { legacyLogicalPropertiesTransformer, theme } from 'ant-design-vue';
3
3
  import zhCN from 'ant-design-vue/es/locale/zh_CN';
4
4
  import dayjs from 'dayjs';
5
- import { useTheme } from 'pubinfo';
5
+ import { useTheme } from 'pubinfo-pr';
6
6
  import 'dayjs/locale/zh-cn';
7
7
 
8
8
  defineOptions({
@@ -5,7 +5,7 @@ import {
5
5
  Logo,
6
6
  Tool,
7
7
  Tools,
8
- } from 'pubinfo';
8
+ } from 'pubinfo-pr';
9
9
 
10
10
  const title = import.meta.env.VITE_APP_TITLE;
11
11
  const dev = import.meta.env.DEV;
@@ -1,4 +1,4 @@
1
- import { createPubinfo } from 'pubinfo';
1
+ import { createPubinfo } from 'pubinfo-pr';
2
2
  import { auth, basic } from './api/request';
3
3
  import App from './App.vue';
4
4
  import { setupCaptcha } from './modules/captcha';
@@ -1,4 +1,4 @@
1
- import { captcha } from '@pubinfo/module-captcha';
1
+ import { captcha } from '@pubinfo-pr/module-captcha';
2
2
  import { auth } from '../api/request';
3
3
 
4
4
  export function setupCaptcha() {
@@ -1,4 +1,4 @@
1
- import { rbac } from '@pubinfo/module-rbac';
1
+ import { rbac } from '@pubinfo-pr/module-rbac';
2
2
  import { basic } from '../api/request';
3
3
 
4
4
  export function setupRbac() {
@@ -1,4 +1,4 @@
1
- import { defineAsyncRoutes, defineSystemRoutes } from 'pubinfo';
1
+ import { defineAsyncRoutes, defineSystemRoutes } from 'pubinfo-pr';
2
2
  import Login from '@/views/system/login/index.vue';
3
3
 
4
4
  import Breadcrumb from './modules/demo/breadcrumb.example';
@@ -1,4 +1,4 @@
1
- import { defineSettings } from 'pubinfo';
1
+ import { defineSettings } from 'pubinfo-pr';
2
2
 
3
3
  export default defineSettings({
4
4
  // 请在此处编写或粘贴配置代码
@@ -1,2 +1,2 @@
1
1
  export * from './modules/conter';
2
- export { useUserStore } from 'pubinfo';
2
+ export { useUserStore } from 'pubinfo-pr';
@@ -1,5 +1,5 @@
1
1
  <script setup lang="ts">
2
- import { PageMain } from 'pubinfo';
2
+ import { PageMain } from 'pubinfo-pr';
3
3
  </script>
4
4
 
5
5
  <template>
@@ -1,5 +1,5 @@
1
1
  <script setup lang="ts">
2
- import { PageMain } from 'pubinfo';
2
+ import { PageMain } from 'pubinfo-pr';
3
3
  </script>
4
4
 
5
5
  <template>
@@ -1,5 +1,5 @@
1
1
  <script setup lang="ts">
2
- import { PageMain } from 'pubinfo';
2
+ import { PageMain } from 'pubinfo-pr';
3
3
  </script>
4
4
 
5
5
  <template>
@@ -1,5 +1,5 @@
1
1
  <script setup lang="ts">
2
- import { PageMain } from 'pubinfo';
2
+ import { PageMain } from 'pubinfo-pr';
3
3
  </script>
4
4
 
5
5
  <template>
@@ -1,5 +1,5 @@
1
1
  <script setup lang="ts">
2
- import { PageMain } from 'pubinfo';
2
+ import { PageMain } from 'pubinfo-pr';
3
3
  </script>
4
4
 
5
5
  <template>
@@ -1,5 +1,5 @@
1
1
  <script setup lang="ts">
2
- import { PageMain } from 'pubinfo';
2
+ import { PageMain } from 'pubinfo-pr';
3
3
  </script>
4
4
 
5
5
  <template>
@@ -1,5 +1,5 @@
1
1
  <script setup lang="ts">
2
- import { PageMain } from 'pubinfo';
2
+ import { PageMain } from 'pubinfo-pr';
3
3
  </script>
4
4
 
5
5
  <template>
@@ -1,5 +1,5 @@
1
1
  <script setup lang="ts">
2
- import { PageMain } from 'pubinfo';
2
+ import { PageMain } from 'pubinfo-pr';
3
3
  </script>
4
4
 
5
5
  <template>
@@ -1,5 +1,5 @@
1
1
  <script setup lang="ts">
2
- import { PageMain } from 'pubinfo';
2
+ import { PageMain } from 'pubinfo-pr';
3
3
 
4
4
  defineOptions({
5
5
  name: 'OtherPageDetail',
@@ -1,5 +1,5 @@
1
1
  <script setup lang="ts">
2
- import { PageMain } from 'pubinfo';
2
+ import { PageMain } from 'pubinfo-pr';
3
3
 
4
4
  defineOptions({
5
5
  name: 'OtherPage',
@@ -1,5 +1,5 @@
1
1
  <script setup lang="ts">
2
- import { PageMain } from 'pubinfo';
2
+ import { PageMain } from 'pubinfo-pr';
3
3
 
4
4
  defineOptions({
5
5
  name: 'Demo',
@@ -1,10 +1,10 @@
1
1
  <script setup lang="ts">
2
2
  import type { FormInstance, Rule } from 'ant-design-vue/es/form';
3
3
  import type { UnwrapRef } from 'vue';
4
- import { PubinfoVerifyInput } from '@pubinfo/module-captcha';
4
+ import { PubinfoVerifyInput } from '@pubinfo-pr/module-captcha';
5
5
  import { useToggle } from '@vueuse/core';
6
6
  import { message, Modal } from 'ant-design-vue';
7
- import { RESPONSE_CODE, useUserStore } from 'pubinfo';
7
+ import { RESPONSE_CODE, useUserStore } from 'pubinfo-pr';
8
8
  import { useFocusElement } from '../composables';
9
9
  import Useragreement from './Useragreement.vue';
10
10
 
@@ -1,4 +1,4 @@
1
- import { presetUnocss } from 'pubinfo/node';
1
+ import { presetUnocss } from 'pubinfo-pr/node';
2
2
  import { defineConfig } from 'unocss';
3
3
 
4
4
  export default defineConfig({
@@ -1,3 +1,3 @@
1
- import pubinfo from '@pubinfo/config/eslint';
1
+ import pubinfo from '@pubinfo-pr/config/eslint';
2
2
 
3
3
  export default pubinfo();
@@ -9,19 +9,20 @@
9
9
  "lint": "pnpm run lint:eslint && pnpm run lint:stylelint",
10
10
  "lint:eslint": "eslint . --cache --fix",
11
11
  "lint:stylelint": "stylelint \"apps/*/src/**/*.{css,scss,vue}\" --cache --fix",
12
- "viewer:eslint-rule": "pnpx @eslint/config-inspector"
12
+ "viewer:eslint-rule": "pnpx @eslint/config-inspector",
13
+ "generate": "pubinfo-pr generate"
13
14
  },
14
15
  "dependencies": {
15
16
  "@ant-design/icons-vue": "^7.0.1",
16
- "@pubinfo/pro-components": "^1.8.1",
17
+ "@pubinfo-pr/pro-components": "^1.8.1",
17
18
  "@vueuse/core": "^14.0.0",
18
19
  "alova": "^3.3.4",
19
20
  "ant-design-vue": "^4.2.6",
20
21
  "dayjs": "^1.11.19"
21
22
  },
22
23
  "devDependencies": {
23
- "@pubinfo/commitlint": "{{version}}",
24
- "@pubinfo/config": "{{version}}",
24
+ "@pubinfo-pr/commitlint": "{{version}}",
25
+ "@pubinfo-pr/config": "{{version}}",
25
26
  "eslint": "^9.39.1",
26
27
  "lint-staged": "^16.2.6",
27
28
  "simple-git-hooks": "^2.13.1",
@@ -30,7 +31,7 @@
30
31
  },
31
32
  "simple-git-hooks": {
32
33
  "pre-commit": "pnpm lint-staged && pnpm run lint",
33
- "commit-msg": "pnpm exec pubinfo commit --edit $1"
34
+ "commit-msg": "pnpm exec pubinfo-commit --edit $1"
34
35
  },
35
36
  "lint-staged": {
36
37
  "*.{vue,js,ts,jsx,tsx,md,json}": "eslint --cache --fix",
@@ -2,7 +2,7 @@ packages:
2
2
  - apps/*
3
3
 
4
4
  onlyBuiltDependencies:
5
- - '@pubinfo/pro-components'
5
+ - '@pubinfo-pr/pro-components'
6
6
  - core-js
7
7
  - es5-ext
8
8
  - esbuild
@@ -1,3 +1,3 @@
1
1
  export default {
2
- extends: ['@pubinfo/config/stylelint'],
2
+ extends: ['@pubinfo-pr/config/stylelint'],
3
3
  };