Skip to content

Commit

Permalink
refactor: 安装相应依赖,并将项目中javascript替换为typescript
Browse files Browse the repository at this point in the history
  • Loading branch information
JeacsonSnake committed Aug 7, 2024
1 parent 6634cf5 commit c2df7f7
Show file tree
Hide file tree
Showing 21 changed files with 2,119 additions and 288 deletions.
3 changes: 2 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
</noscript>
<div id="app"></div>
<!-- built files will be auto injected -->
<script type="module" src="/src/main.js"></script>
<!-- <script type="module" src="/src/main.js"></script> -->
<script type="module" src="/src/main.ts"></script>
</body>

<style>
Expand Down
19 changes: 0 additions & 19 deletions jsconfig.json

This file was deleted.

8 changes: 6 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"type": "module",
"scripts": {
"dev": "vite",
"build": "vite build",
"build": "vue-tsc && vite build",
"serve": "vite preview"
},
"config": {
Expand All @@ -23,10 +23,14 @@
"vuex": "^4.1.0"
},
"devDependencies": {
"@types/node": "^22.1.0",
"@vitejs/plugin-legacy": "^5.4.1",
"@vitejs/plugin-vue": "^5.1.0",
"@vue/tsconfig": "^0.5.1",
"cz-git": "^1.9.4",
"style-loader": "^4.0.0",
"vite": "^5.3.5"
"typescript": "^5.5.4",
"vite": "^5.3.5",
"vue-tsc": "^2.0.29"
}
}
Loading

0 comments on commit c2df7f7

Please sign in to comment.