create-umi 4.0.0-beta.18 → 4.0.0-canary-20240513.3

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 (70) hide show
  1. package/LICENSE +21 -0
  2. package/bin/create-umi.js +1 -0
  3. package/dist/cli.js +20 -28
  4. package/dist/index.d.ts +42 -3
  5. package/dist/index.js +286 -96
  6. package/dist/template.d.ts +12 -0
  7. package/dist/template.js +113 -0
  8. package/package.json +13 -12
  9. package/templates/app/.gitignore.tpl +2 -3
  10. package/templates/app/.npmrc.tpl +1 -0
  11. package/templates/app/.umirc.ts.tpl +9 -3
  12. package/templates/app/package.json.tpl +6 -4
  13. package/templates/app/{layouts → src/layouts}/index.tsx.tpl +0 -1
  14. package/templates/app/{pages → src/pages}/docs.tsx +3 -3
  15. package/templates/app/{pages → src/pages}/index.tsx +2 -2
  16. package/templates/app/tsconfig.json.tpl +3 -0
  17. package/templates/app/typings.d.ts +1 -3
  18. package/templates/max/.eslintrc.js.tpl +3 -0
  19. package/templates/max/.gitignore.tpl +13 -0
  20. package/templates/max/.husky/commit-msg +1 -0
  21. package/templates/max/.husky/pre-commit +1 -0
  22. package/templates/max/.lintstagedrc.tpl +17 -0
  23. package/templates/max/.npmrc.tpl +2 -0
  24. package/templates/max/.prettierignore.tpl +3 -0
  25. package/templates/max/.prettierrc.tpl +8 -0
  26. package/templates/max/.stylelintrc.js.tpl +3 -0
  27. package/templates/max/.umirc.ts.tpl +35 -0
  28. package/templates/max/README.md +3 -0
  29. package/templates/max/mock/userAPI.ts +20 -0
  30. package/templates/max/package.json.tpl +29 -0
  31. package/templates/max/src/access.ts +10 -0
  32. package/templates/max/src/app.ts +16 -0
  33. package/templates/max/src/assets/.gitkeep +0 -0
  34. package/templates/max/src/components/Guide/Guide.less +4 -0
  35. package/templates/max/src/components/Guide/Guide.tsx +23 -0
  36. package/templates/max/src/components/Guide/index.ts +2 -0
  37. package/templates/max/src/constants/index.ts +1 -0
  38. package/templates/max/src/models/global.ts +13 -0
  39. package/templates/max/src/pages/Access/index.tsx +21 -0
  40. package/templates/max/src/pages/Home/index.less +3 -0
  41. package/templates/max/src/pages/Home/index.tsx +18 -0
  42. package/templates/max/src/pages/Table/components/CreateForm.tsx +26 -0
  43. package/templates/max/src/pages/Table/components/UpdateForm.tsx +138 -0
  44. package/templates/max/src/pages/Table/index.tsx +270 -0
  45. package/templates/max/src/services/demo/UserController.ts +96 -0
  46. package/templates/max/src/services/demo/index.ts +7 -0
  47. package/templates/max/src/services/demo/typings.d.ts +68 -0
  48. package/templates/max/src/utils/format.ts +4 -0
  49. package/templates/max/tsconfig.json +3 -0
  50. package/templates/max/typings.d.ts +1 -0
  51. package/templates/plugin/.fatherrc.ts +5 -5
  52. package/templates/plugin/.gitignore.tpl +1 -1
  53. package/templates/plugin/.npmrc.tpl +1 -0
  54. package/templates/plugin/README.md.tpl +5 -14
  55. package/templates/plugin/package.json.tpl +12 -10
  56. package/templates/plugin/src/index.ts.tpl +2 -2
  57. package/templates/plugin/tsconfig.json +20 -0
  58. package/templates/vue-app/.gitignore.tpl +13 -0
  59. package/templates/vue-app/.npmrc.tpl +2 -0
  60. package/templates/vue-app/.umirc.ts.tpl +6 -0
  61. package/templates/vue-app/package.json.tpl +18 -0
  62. package/templates/vue-app/src/assets/yay.jpg +0 -0
  63. package/templates/vue-app/src/layouts/index.vue +28 -0
  64. package/templates/vue-app/src/pages/docs.vue +5 -0
  65. package/templates/vue-app/src/pages/index.vue +9 -0
  66. package/templates/vue-app/tsconfig.json.tpl +3 -0
  67. package/templates/vue-app/typings.d.ts +1 -0
  68. package/templates/app/tsconfig.json +0 -18
  69. /package/templates/app/{assets → src/assets}/yay.jpg +0 -0
  70. /package/templates/app/{layouts → src/layouts}/index.less +0 -0
@@ -1,18 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "target": "esnext",
4
- "module": "esnext",
5
- "moduleResolution": "node",
6
- "importHelpers": true,
7
- "jsx": "react",
8
- "esModuleInterop": true,
9
- "sourceMap": true,
10
- "baseUrl": ".",
11
- "strict": true,
12
- "paths": {
13
- "@/*": ["*"],
14
- "@@/*": [".umi/*"]
15
- },
16
- "allowSyntheticDefaultImports": true
17
- }
18
- }
File without changes