create-lik-app 1.0.1 → 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (113) hide show
  1. package/dist/index.mjs +73 -73
  2. package/package.json +7 -9
  3. package/templates/.gitignore +1 -0
  4. package/templates/template-react/_gitignore +3 -0
  5. package/templates/template-react/env/.env +0 -0
  6. package/templates/template-react/env/.env.development +1 -0
  7. package/templates/template-react/env/.env.production +1 -0
  8. package/templates/template-react/eslint.config.mjs +1 -1
  9. package/templates/template-react/package.json +1 -0
  10. package/templates/template-react/plugins/index.ts +24 -0
  11. package/templates/template-react/src/main.tsx +1 -1
  12. package/templates/template-react/src/store/index.ts +1 -2
  13. package/templates/template-react/src/styles/main.css +10 -0
  14. package/templates/template-react/src/views/Home/components/React/index.tsx +3 -3
  15. package/templates/template-react/src/views/Home/index.tsx +7 -1
  16. package/templates/template-react/tsconfig.app.json +1 -1
  17. package/templates/template-react/tsconfig.node.json +6 -1
  18. package/templates/template-react/types/auto-imports.d.ts +47 -0
  19. package/templates/template-react/types/vite-env.d.ts +9 -0
  20. package/templates/template-react/vite.config.ts +6 -16
  21. package/templates/template-react-tanstack-jotai/.husky/commit-msg +6 -0
  22. package/templates/template-react-tanstack-jotai/.husky/lintstagedrc.cjs +8 -0
  23. package/templates/template-react-tanstack-jotai/.husky/pre-commit +10 -0
  24. package/templates/template-react-tanstack-jotai/.prettierignore +13 -0
  25. package/templates/template-react-tanstack-jotai/.vscode/extensions.json +5 -0
  26. package/templates/template-react-tanstack-jotai/README.md +40 -0
  27. package/templates/template-react-tanstack-jotai/_gitignore +27 -0
  28. package/templates/template-react-tanstack-jotai/commitlint.config.mjs +28 -0
  29. package/templates/template-react-tanstack-jotai/config/uno/rules.ts +127 -0
  30. package/templates/template-react-tanstack-jotai/env/.env +0 -0
  31. package/templates/template-react-tanstack-jotai/env/.env.development +1 -0
  32. package/templates/template-react-tanstack-jotai/env/.env.production +1 -0
  33. package/templates/template-react-tanstack-jotai/eslint.config.mjs +44 -0
  34. package/templates/template-react-tanstack-jotai/index.html +13 -0
  35. package/templates/template-react-tanstack-jotai/package.json +51 -0
  36. package/templates/template-react-tanstack-jotai/plugins/index.ts +26 -0
  37. package/templates/template-react-tanstack-jotai/prettier.config.mjs +11 -0
  38. package/templates/template-react-tanstack-jotai/public/lic.svg +1263 -0
  39. package/templates/template-react-tanstack-jotai/public/react.svg +1 -0
  40. package/templates/template-react-tanstack-jotai/public/vite.svg +1 -0
  41. package/templates/template-react-tanstack-jotai/src/assets/react.svg +1 -0
  42. package/templates/template-react-tanstack-jotai/src/components/Lic/index.tsx +12 -0
  43. package/templates/template-react-tanstack-jotai/src/libs/gsap/index.ts +6 -0
  44. package/templates/template-react-tanstack-jotai/src/main.tsx +23 -0
  45. package/templates/template-react-tanstack-jotai/src/routeTree.gen.ts +145 -0
  46. package/templates/template-react-tanstack-jotai/src/routes/__root.tsx +11 -0
  47. package/templates/template-react-tanstack-jotai/src/routes/_layout/about.tsx +6 -0
  48. package/templates/template-react-tanstack-jotai/src/routes/_layout/index.tsx +6 -0
  49. package/templates/template-react-tanstack-jotai/src/routes/_layout.tsx +23 -0
  50. package/templates/template-react-tanstack-jotai/src/store/index.ts +1 -0
  51. package/templates/template-react-tanstack-jotai/src/store/module/favorite.ts +5 -0
  52. package/templates/template-react-tanstack-jotai/src/styles/animation.css +8 -0
  53. package/templates/template-react-tanstack-jotai/src/styles/variable.css +21 -0
  54. package/templates/template-react-tanstack-jotai/src/types/color.d.ts +1 -0
  55. package/templates/template-react-tanstack-jotai/src/utils/rainbow-print.ts +10 -0
  56. package/templates/template-react-tanstack-jotai/src/views/404/index.tsx +18 -0
  57. package/templates/template-react-tanstack-jotai/src/views/About/index.tsx +7 -0
  58. package/templates/template-react-tanstack-jotai/src/views/Index/Button/index.tsx +24 -0
  59. package/templates/template-react-tanstack-jotai/src/views/Index/React/index.tsx +18 -0
  60. package/templates/template-react-tanstack-jotai/src/views/Index/Vite/index.tsx +20 -0
  61. package/templates/template-react-tanstack-jotai/src/views/Index/index.tsx +50 -0
  62. package/templates/template-react-tanstack-jotai/tsconfig.app.json +36 -0
  63. package/templates/template-react-tanstack-jotai/tsconfig.json +7 -0
  64. package/templates/template-react-tanstack-jotai/tsconfig.node.json +29 -0
  65. package/templates/template-react-tanstack-jotai/types/auto-imports.d.ts +47 -0
  66. package/templates/template-react-tanstack-jotai/types/vite-env.d.ts +9 -0
  67. package/templates/template-react-tanstack-jotai/uno.config.ts +40 -0
  68. package/templates/template-react-tanstack-jotai/vite.config.ts +18 -0
  69. package/templates/template-vue/.husky/commit-msg +1 -0
  70. package/templates/template-vue/.husky/lintstagedrc.cjs +15 -0
  71. package/templates/template-vue/.husky/pre-commit +10 -0
  72. package/templates/template-vue/.prettierrc.json +6 -0
  73. package/templates/template-vue/.vscode/extensions.json +8 -0
  74. package/templates/template-vue/README.md +39 -0
  75. package/templates/template-vue/_gitignore +33 -0
  76. package/templates/template-vue/commitlint.config.mjs +33 -0
  77. package/templates/template-vue/env/.env +0 -0
  78. package/templates/template-vue/env/.env.development +0 -0
  79. package/templates/template-vue/env/.env.production +0 -0
  80. package/templates/template-vue/env/.env.test +1 -0
  81. package/templates/template-vue/eslint.config.js +24 -0
  82. package/templates/template-vue/index.html +13 -0
  83. package/templates/template-vue/package.json +45 -0
  84. package/templates/template-vue/plugins/index.ts +28 -0
  85. package/templates/template-vue/public/lic.svg +1263 -0
  86. package/templates/template-vue/src/App.vue +87 -0
  87. package/templates/template-vue/src/assets/base.css +86 -0
  88. package/templates/template-vue/src/assets/logo.svg +1 -0
  89. package/templates/template-vue/src/assets/main.css +35 -0
  90. package/templates/template-vue/src/components/HelloWorld.vue +43 -0
  91. package/templates/template-vue/src/components/TheWelcome.vue +121 -0
  92. package/templates/template-vue/src/components/WelcomeItem.vue +87 -0
  93. package/templates/template-vue/src/components/icons/IconCommunity.vue +12 -0
  94. package/templates/template-vue/src/components/icons/IconDocumentation.vue +12 -0
  95. package/templates/template-vue/src/components/icons/IconEcosystem.vue +12 -0
  96. package/templates/template-vue/src/components/icons/IconSupport.vue +12 -0
  97. package/templates/template-vue/src/components/icons/IconTooling.vue +19 -0
  98. package/templates/template-vue/src/main.ts +14 -0
  99. package/templates/template-vue/src/router/index.ts +23 -0
  100. package/templates/template-vue/src/stores/index.ts +8 -0
  101. package/templates/template-vue/src/stores/module/counter.ts +12 -0
  102. package/templates/template-vue/src/views/AboutView.vue +15 -0
  103. package/templates/template-vue/src/views/HomeView.vue +7 -0
  104. package/templates/template-vue/tsconfig.app.json +13 -0
  105. package/templates/template-vue/tsconfig.json +11 -0
  106. package/templates/template-vue/tsconfig.node.json +19 -0
  107. package/templates/template-vue/types/auto-imports.d.ts +309 -0
  108. package/templates/template-vue/types/components.d.ts +21 -0
  109. package/templates/template-vue/types/env.d.ts +9 -0
  110. package/templates/template-vue/vite.config.ts +16 -0
  111. package/templates/template-react/src/store/module/counter.ts +0 -20
  112. package/templates/template-react/src/vite-env.d.ts +0 -1
  113. /package/templates/{template-react/src/styles/mian.css → template-react-tanstack-jotai/src/styles/main.css} +0 -0
@@ -0,0 +1,51 @@
1
+ {
2
+ "name": "new-lic-blog",
3
+ "private": true,
4
+ "version": "0.0.0",
5
+ "type": "module",
6
+ "scripts": {
7
+ "dev": "vite",
8
+ "build": "tsc -b && vite build",
9
+ "lint": "eslint .",
10
+ "preview": "vite preview",
11
+ "preinstall": "npx only-allow pnpm",
12
+ "prepare": "husky"
13
+ },
14
+ "dependencies": {
15
+ "@gsap/react": "^2.1.1",
16
+ "@tanstack/react-router": "^1.92.3",
17
+ "@unocss/reset": "^0.64.1",
18
+ "gsap": "^3.12.5",
19
+ "jotai": "^2.11.0",
20
+ "rainbow-print": "0.0.1-alpha.2",
21
+ "react": "^18.3.1",
22
+ "react-dom": "^18.3.1"
23
+ },
24
+ "devDependencies": {
25
+ "@babel/plugin-proposal-decorators": "^7.25.9",
26
+ "@commitlint/cli": "^19.6.0",
27
+ "@commitlint/config-conventional": "^19.6.0",
28
+ "@eslint/js": "^9.13.0",
29
+ "@tanstack/router-devtools": "^1.92.3",
30
+ "@tanstack/router-plugin": "^1.91.1",
31
+ "@types/node": "^22.9.1",
32
+ "@types/react": "^18.3.12",
33
+ "@types/react-dom": "^18.3.1",
34
+ "@typescript-eslint/eslint-plugin": "^8.15.0",
35
+ "@vitejs/plugin-react": "^4.3.3",
36
+ "eslint": "^9.14.0",
37
+ "eslint-config-prettier": "^9.1.0",
38
+ "eslint-plugin-prettier": "^5.2.1",
39
+ "eslint-plugin-react-hooks": "^5.0.0",
40
+ "eslint-plugin-react-refresh": "^0.4.14",
41
+ "globals": "^15.11.0",
42
+ "husky": "^9.1.7",
43
+ "lint-staged": "^15.2.10",
44
+ "only-allow": "^1.2.1",
45
+ "typescript": "~5.6.2",
46
+ "typescript-eslint": "^8.13.0",
47
+ "unocss": "^0.64.0",
48
+ "unplugin-auto-import": "^0.18.6",
49
+ "vite": "^5.4.10"
50
+ }
51
+ }
@@ -0,0 +1,26 @@
1
+ import react from '@vitejs/plugin-react';
2
+ import unocss from 'unocss/vite';
3
+ import type { PluginOption } from 'vite';
4
+ import AutoImport from 'unplugin-auto-import/vite';
5
+ import { TanStackRouterVite } from '@tanstack/router-plugin/vite';
6
+
7
+ export const createPlugins = (): PluginOption[] => [
8
+ react({
9
+ babel: {
10
+ plugins: [
11
+ ['@babel/plugin-proposal-decorators', { legacy: true }]
12
+ // ['@babel/plugin-proposal-class-properties', { loose: true }]
13
+ ]
14
+ }
15
+ }),
16
+ unocss(),
17
+ AutoImport({
18
+ include: [
19
+ /\.[tj]sx?$/ // .ts, .tsx, .js, .jsx
20
+ ],
21
+ imports: ['react', 'react-router-dom'],
22
+ // 为true时在项目根目录自动创建
23
+ dts: 'types/auto-imports.d.ts'
24
+ }),
25
+ TanStackRouterVite()
26
+ ];
@@ -0,0 +1,11 @@
1
+ export default {
2
+ singleQuote: true,
3
+ semi: true,
4
+ bracketSpacing: true,
5
+ htmlWhitespaceSensitivity: 'ignore',
6
+ endOfLine: 'auto',
7
+ trailingComma: 'none',
8
+ tabWidth: 2,
9
+ printWidth: 80,
10
+ proseWrap: 'preserve'
11
+ }