diff --git a/.npmrc b/.npmrc index 5f969a8..3c847a9 100644 --- a/.npmrc +++ b/.npmrc @@ -1,2 +1,3 @@ @abearxiong:registry=https://npm.pkg.github.com -@build:registry=https://npm.xiongxiao.me \ No newline at end of file +@build:registry=https://npm.xiongxiao.me +@registry:registry=https://npm.xiongxiao.me \ No newline at end of file diff --git a/package.json b/package.json index 4800f01..68cdd4c 100644 --- a/package.json +++ b/package.json @@ -1,47 +1,50 @@ { "name": "vite-react", "private": true, - "version": "0.0.0", + "version": "0.0.1", "type": "module", "scripts": { "dev": "vite", - "build": "tsc -b && vite build", + "build": "vite build", "lint": "eslint .", - "preview": "vite preview" + "deploy": "rsync -avz --delete dist/ light:~/apps/ai/dist", + "preview": "vite preview", + "pub": "npm run build && npm run deploy" }, "dependencies": { "@ant-design/icons": "^5.5.1", - "@kevisual/query": "^0.0.6", - "antd": "^5.21.2", + "@kevisual/query": "0.0.7-alpha.1", + "antd": "^5.21.4", "clsx": "^2.1.1", + "dayjs": "^1.11.13", "immer": "^10.1.1", "lodash-es": "^4.17.21", "nanoid": "^5.0.7", "react": "^18.3.1", "react-dom": "^18.3.1", - "react-router": "^6.26.2", - "react-router-dom": "^6.26.2", - "react-toastify": "^10.0.5", - "zustand": "^4.5.5" + "react-router": "^6.27.0", + "react-router-dom": "^6.27.0", + "react-toastify": "^10.0.6", + "zustand": "^5.0.0" }, "devDependencies": { - "@eslint/js": "^9.11.1", + "@eslint/js": "^9.13.0", "@tailwindcss/aspect-ratio": "^0.4.2", "@tailwindcss/typography": "^0.5.15", - "@types/node": "^22.7.4", + "@types/node": "^22.7.7", "@types/react": "^18.3.11", - "@types/react-dom": "^18.3.0", - "@vitejs/plugin-react": "^4.3.2", + "@types/react-dom": "^18.3.1", + "@vitejs/plugin-react": "^4.3.3", "autoprefixer": "^10.4.20", - "eslint": "^9.11.1", + "eslint": "^9.13.0", "eslint-plugin-react-hooks": "^5.1.0-rc.0", - "eslint-plugin-react-refresh": "^0.4.12", - "globals": "^15.10.0", - "tailwind-merge": "^2.5.2", - "tailwindcss": "^3.4.13", + "eslint-plugin-react-refresh": "^0.4.13", + "globals": "^15.11.0", + "tailwind-merge": "^2.5.4", + "tailwindcss": "^3.4.14", "tailwindcss-animate": "^1.0.7", - "typescript": "^5.6.2", - "typescript-eslint": "^8.8.0", - "vite": "^5.4.8" + "typescript": "^5.6.3", + "typescript-eslint": "^8.10.0", + "vite": "^5.4.9" } } \ No newline at end of file diff --git a/tsconfig.app.json b/tsconfig.app.json index c15dbd6..df92285 100644 --- a/tsconfig.app.json +++ b/tsconfig.app.json @@ -2,10 +2,13 @@ "compilerOptions": { "target": "ES2020", "useDefineForClassFields": true, - "lib": ["ES2020", "DOM", "DOM.Iterable"], + "lib": [ + "ES2020", + "DOM", + "DOM.Iterable" + ], "module": "ESNext", "skipLibCheck": true, - /* Bundler mode */ "moduleResolution": "bundler", "allowImportingTsExtensions": true, @@ -13,12 +16,21 @@ "moduleDetection": "force", "noEmit": true, "jsx": "react-jsx", - + "baseUrl": "./", + "types": [], + "paths": { + "@/*": [ + "src/*" + ] + }, /* Linting */ "strict": true, + "noImplicitAny": false, "noUnusedLocals": false, "noUnusedParameters": false, "noFallthroughCasesInSwitch": true }, - "include": ["src"] -} + "include": [ + "src", + ] +} \ No newline at end of file diff --git a/vite.config.ts b/vite.config.ts index 4963152..69e3a29 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -10,6 +10,7 @@ export default defineConfig({ plugins: [react()], css: { postcss: { + // @ts-ignore plugins: [nesting, tailwindcss, autoprefixer], }, }, @@ -31,7 +32,7 @@ export default defineConfig({ rewrite: (path) => path.replace(/^\/api/, '/api'), }, '/api/router': { - target: 'ws://localhost:3003', + target: 'ws://localhost:3000', changeOrigin: true, ws: true, rewriteWsOrigin: true,