create-lik-app 1.0.2 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.mjs +73 -73
- package/package.json +2 -3
- package/templates/template-react/_gitignore +3 -0
- package/templates/template-react/src/main.tsx +1 -1
- package/templates/template-react/src/store/index.ts +1 -2
- package/templates/template-react/src/styles/main.css +10 -0
- package/templates/template-react/src/views/Home/components/React/index.tsx +3 -3
- package/templates/template-react/vite.config.ts +1 -1
- package/templates/template-react-tanstack-jotai/.husky/commit-msg +6 -0
- package/templates/template-react-tanstack-jotai/.husky/lintstagedrc.cjs +8 -0
- package/templates/template-react-tanstack-jotai/.husky/pre-commit +10 -0
- package/templates/template-react-tanstack-jotai/.prettierignore +13 -0
- package/templates/template-react-tanstack-jotai/.vscode/extensions.json +5 -0
- package/templates/template-react-tanstack-jotai/README.md +40 -0
- package/templates/template-react-tanstack-jotai/_gitignore +27 -0
- package/templates/template-react-tanstack-jotai/commitlint.config.mjs +28 -0
- package/templates/template-react-tanstack-jotai/config/uno/rules.ts +127 -0
- package/templates/template-react-tanstack-jotai/env/.env +0 -0
- package/templates/template-react-tanstack-jotai/env/.env.development +1 -0
- package/templates/template-react-tanstack-jotai/env/.env.production +1 -0
- package/templates/template-react-tanstack-jotai/eslint.config.mjs +44 -0
- package/templates/template-react-tanstack-jotai/index.html +13 -0
- package/templates/template-react-tanstack-jotai/package.json +51 -0
- package/templates/template-react-tanstack-jotai/plugins/index.ts +26 -0
- package/templates/template-react-tanstack-jotai/prettier.config.mjs +11 -0
- package/templates/template-react-tanstack-jotai/public/lic.svg +1263 -0
- package/templates/template-react-tanstack-jotai/public/react.svg +1 -0
- package/templates/template-react-tanstack-jotai/public/vite.svg +1 -0
- package/templates/template-react-tanstack-jotai/src/assets/react.svg +1 -0
- package/templates/template-react-tanstack-jotai/src/components/Lic/index.tsx +12 -0
- package/templates/template-react-tanstack-jotai/src/libs/gsap/index.ts +6 -0
- package/templates/template-react-tanstack-jotai/src/main.tsx +23 -0
- package/templates/template-react-tanstack-jotai/src/routeTree.gen.ts +145 -0
- package/templates/template-react-tanstack-jotai/src/routes/__root.tsx +11 -0
- package/templates/template-react-tanstack-jotai/src/routes/_layout/about.tsx +6 -0
- package/templates/template-react-tanstack-jotai/src/routes/_layout/index.tsx +6 -0
- package/templates/template-react-tanstack-jotai/src/routes/_layout.tsx +23 -0
- package/templates/template-react-tanstack-jotai/src/store/index.ts +1 -0
- package/templates/template-react-tanstack-jotai/src/store/module/favorite.ts +5 -0
- package/templates/template-react-tanstack-jotai/src/styles/animation.css +8 -0
- package/templates/template-react-tanstack-jotai/src/styles/variable.css +21 -0
- package/templates/template-react-tanstack-jotai/src/types/color.d.ts +1 -0
- package/templates/template-react-tanstack-jotai/src/utils/rainbow-print.ts +10 -0
- package/templates/template-react-tanstack-jotai/src/views/404/index.tsx +18 -0
- package/templates/template-react-tanstack-jotai/src/views/About/index.tsx +7 -0
- package/templates/template-react-tanstack-jotai/src/views/Index/Button/index.tsx +24 -0
- package/templates/template-react-tanstack-jotai/src/views/Index/React/index.tsx +18 -0
- package/templates/template-react-tanstack-jotai/src/views/Index/Vite/index.tsx +20 -0
- package/templates/template-react-tanstack-jotai/src/views/Index/index.tsx +50 -0
- package/templates/template-react-tanstack-jotai/tsconfig.app.json +36 -0
- package/templates/template-react-tanstack-jotai/tsconfig.json +7 -0
- package/templates/template-react-tanstack-jotai/tsconfig.node.json +29 -0
- package/templates/template-react-tanstack-jotai/types/auto-imports.d.ts +47 -0
- package/templates/template-react-tanstack-jotai/types/vite-env.d.ts +9 -0
- package/templates/template-react-tanstack-jotai/uno.config.ts +40 -0
- package/templates/template-react-tanstack-jotai/vite.config.ts +18 -0
- package/templates/template-vue/_gitignore +3 -0
- package/templates/template-react/src/store/module/counter.ts +0 -20
- /package/templates/{template-react/src/styles/mian.css → template-react-tanstack-jotai/src/styles/main.css} +0 -0
@@ -0,0 +1,18 @@
|
|
1
|
+
import { defineConfig } from 'vite';
|
2
|
+
|
3
|
+
import path from 'node:path';
|
4
|
+
import process from 'node:process';
|
5
|
+
import { createPlugins } from './plugins';
|
6
|
+
|
7
|
+
// https://vite.dev/config/
|
8
|
+
export default defineConfig(() => ({
|
9
|
+
plugins: createPlugins(),
|
10
|
+
resolve: {
|
11
|
+
alias: {
|
12
|
+
'@': path.resolve(process.cwd(), 'src')
|
13
|
+
}
|
14
|
+
},
|
15
|
+
server: {
|
16
|
+
port: 8220
|
17
|
+
}
|
18
|
+
}));
|
@@ -1,20 +0,0 @@
|
|
1
|
-
import { makeObservable, action, observable } from 'mobx'
|
2
|
-
|
3
|
-
class CountStore {
|
4
|
-
count: number = 0
|
5
|
-
constructor() {
|
6
|
-
console.log('countStore cunstructed')
|
7
|
-
makeObservable(this, {
|
8
|
-
count: observable,
|
9
|
-
increment: action
|
10
|
-
})
|
11
|
-
}
|
12
|
-
|
13
|
-
increment(): void {
|
14
|
-
this.count++
|
15
|
-
}
|
16
|
-
}
|
17
|
-
|
18
|
-
const countStore = new CountStore()
|
19
|
-
|
20
|
-
export { countStore }
|
File without changes
|