update template
This commit is contained in:
parent
787691977a
commit
91c90c819f
@ -1,21 +0,0 @@
|
|||||||
{
|
|
||||||
"name": "Node.js 22 Development Environment",
|
|
||||||
"image": "mcr.microsoft.com/devcontainers/javascript-node:22",
|
|
||||||
"runArgs": [
|
|
||||||
"--env",
|
|
||||||
"TZ=Asia/Shanghai"
|
|
||||||
],
|
|
||||||
"settings": {
|
|
||||||
"terminal.integrated.defaultProfile.linux": "/bin/bash",
|
|
||||||
"terminal.integrated.env.linux": {
|
|
||||||
"TZ": "Asia/Shanghai"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"remoteEnv": {
|
|
||||||
"TZ": "Asia/Shanghai"
|
|
||||||
},
|
|
||||||
"extensions": [
|
|
||||||
"dbaeumer.vscode-eslint"
|
|
||||||
],
|
|
||||||
"postCreateCommand": "sudo ln -snf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && echo Asia/Shanghai | sudo tee /etc/timezone && pnpm install -g @kevisual/envision-cli@latest && npm install"
|
|
||||||
}
|
|
4
.gitignore
vendored
4
.gitignore
vendored
@ -25,4 +25,6 @@ dist-ssr
|
|||||||
*.sw?
|
*.sw?
|
||||||
|
|
||||||
tsconfig.app.tsbuildinfo
|
tsconfig.app.tsbuildinfo
|
||||||
tsconfig.node.tsbuildinfo
|
tsconfig.node.tsbuildinfo
|
||||||
|
|
||||||
|
.turbo
|
||||||
|
10
package.json
10
package.json
@ -6,14 +6,13 @@
|
|||||||
"basename": "/",
|
"basename": "/",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "vite",
|
"dev": "vite",
|
||||||
"dev:web": "cross-env WEB_DEV=true vite --mode web",
|
|
||||||
"build": "vite build",
|
"build": "vite build",
|
||||||
"lint": "eslint .",
|
"lint": "eslint .",
|
||||||
"preview": "vite preview",
|
"preview": "vite preview",
|
||||||
"pub": "envision deploy ./dist -k vite-react -v 0.0.1",
|
"pub": "envision deploy ./dist -k vite-react -v 0.0.1",
|
||||||
"ev": "npm run build && npm run deploy"
|
"ev": "npm run build && npm run deploy",
|
||||||
|
"dev:lib": "turbo dev"
|
||||||
},
|
},
|
||||||
|
|
||||||
"author": "abearxiong <xiongxiao@xiongxiao.me>",
|
"author": "abearxiong <xiongxiao@xiongxiao.me>",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
@ -28,8 +27,6 @@
|
|||||||
"nanoid": "^5.1.5",
|
"nanoid": "^5.1.5",
|
||||||
"react": "^19.0.0",
|
"react": "^19.0.0",
|
||||||
"react-dom": "^19.0.0",
|
"react-dom": "^19.0.0",
|
||||||
"react-router": "^7.4.0",
|
|
||||||
"react-router-dom": "^7.4.0",
|
|
||||||
"react-toastify": "^11.0.5",
|
"react-toastify": "^11.0.5",
|
||||||
"zustand": "^5.0.3"
|
"zustand": "^5.0.3"
|
||||||
},
|
},
|
||||||
@ -52,5 +49,6 @@
|
|||||||
"typescript": "^5.8.2",
|
"typescript": "^5.8.2",
|
||||||
"typescript-eslint": "^8.28.0",
|
"typescript-eslint": "^8.28.0",
|
||||||
"vite": "^6.2.3"
|
"vite": "^6.2.3"
|
||||||
}
|
},
|
||||||
|
"packageManager": "pnpm@10.6.5"
|
||||||
}
|
}
|
0
packages/.gitkeep
Normal file
0
packages/.gitkeep
Normal file
1098
pnpm-lock.yaml
generated
1098
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
3
pnpm-workspace.yaml
Normal file
3
pnpm-workspace.yaml
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
packages:
|
||||||
|
- 'submodules/*'
|
||||||
|
- 'packages/*'
|
0
src/app.ts
Normal file
0
src/app.ts
Normal file
@ -1,5 +1,5 @@
|
|||||||
import { createRoot } from 'react-dom/client';
|
import { createRoot } from 'react-dom/client';
|
||||||
import { App } from './App.tsx';
|
import { App } from './pages/App.tsx';
|
||||||
|
|
||||||
import './index.css';
|
import './index.css';
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { basename } from './modules/basename';
|
import { basename } from '../modules/basename';
|
||||||
|
|
||||||
console.log('basename', basename);
|
console.log('basename', basename);
|
||||||
export const App = () => {
|
export const App = () => {
|
1
src/routes/index.ts
Normal file
1
src/routes/index.ts
Normal file
@ -0,0 +1 @@
|
|||||||
|
// import {}
|
0
submodules/.gitkeep
Normal file
0
submodules/.gitkeep
Normal file
22
turbo.json
Normal file
22
turbo.json
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
{
|
||||||
|
"$schema": "https://turbo.build/schema.json",
|
||||||
|
"tasks": {
|
||||||
|
"build": {
|
||||||
|
"dependsOn": [
|
||||||
|
"^build"
|
||||||
|
],
|
||||||
|
"outputs": [
|
||||||
|
"dist/**"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"dev:lib": {
|
||||||
|
"persistent": true,
|
||||||
|
"cache": true
|
||||||
|
},
|
||||||
|
"build:lib": {
|
||||||
|
"dependsOn": [
|
||||||
|
"^build:lib"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user