提交 95bf30e5 编写于 作者: 米司特包's avatar 米司特包

refactor: update frontend project directory and upgrade dependencies

上级 5ac5ebba
......@@ -2,15 +2,15 @@
"name": "{{.ProjectName}}",
"private": true,
"version": "0.1.0",
"description": "",
"description": "A Wails Template",
"main": "",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"postinstall": "((cp -f index.js.html JS/index.html) & (cp -f index.ts.html TS/index.html))& rm -rf *.html"
"postinstall": "((cp -f index.js.html packages/javascript/index.html) & (cp -f index.ts.html packages/typescript/index.html))& rm -rf *.html"
},
"author": "{{.AuthorName}}",
"license": "ISC",
"workspaces": ["JS", "TS"],
"license": "MIT",
"workspaces": ["packages/*"],
"engines": {
"node": ">=15.0.0",
"npm": ">=7.0.0"
......
......@@ -8,13 +8,13 @@
"preview": "vite preview"
},
"dependencies": {
"vue": "^3.2.23",
"vue": "^3.2.31",
"vue-i18n": "^9.1.9",
"vue-router": "^4.0.12"
},
"devDependencies": {
"@vitejs/plugin-vue": "^1.10.2",
"sass": "^1.44.0",
"vite": "^2.7.0"
"sass": "^1.49.9",
"vite": "^2.8.6"
}
}
......@@ -11,7 +11,7 @@ export default defineConfig({
},
},
build: {
outDir:"../dist",
outDir:"../../dist",
rollupOptions: {
output: {
entryFileNames: `assets/[name].js`,
......
......@@ -9,13 +9,14 @@
"preview": "vite preview"
},
"dependencies": {
"vue": "^3.2.23",
"vue": "^3.2.31",
"vue-router": "^4.0.12"
},
"devDependencies": {
"@vitejs/plugin-vue": "^1.10.2",
"sass": "^1.49.9",
"typescript": "^4.4.4",
"vite": "^2.7.0",
"vite": "^2.8.6",
"vue-tsc": "^0.28.10"
}
}
......@@ -11,7 +11,7 @@ export default defineConfig({
},
},
build: {
outDir:"../dist",
outDir:"../../dist",
rollupOptions: {
output: {
entryFileNames: `assets/[name].js`,
......
......@@ -5,7 +5,7 @@
"frontend:install": "npm install",
"frontend:build": "npm run build -w js",
"frontend:dev:watcher": "npm run build:watch -w js",
"debounceMS": 2000,
"debounceMS": 1500,
"author": {
"name": "{{.AuthorName}}",
"email": "{{.AuthorEmail}}"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册