Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
hhstore committed Oct 13, 2022
1 parent 06ec701 commit 21b11ce
Show file tree
Hide file tree
Showing 15 changed files with 801 additions and 43 deletions.
4 changes: 4 additions & 0 deletions crates/rs-tauri-vue/.eslintrc-auto-import.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@
"useAttrs": true,
"useCssModule": true,
"useCssVars": true,
"useDialog": true,
"useLoadingBar": true,
"useMessage": true,
"useNotification": true,
"useSlots": true,
"watch": true,
"watchEffect": true,
Expand Down
19 changes: 14 additions & 5 deletions crates/rs-tauri-vue/Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,17 @@ tasks:
- echo "init"

dev:
- echo "dev install"
- cargo install --force cargo-edit
- cargo install --locked cargo-outdated
cmds:
- echo "dev install"
- cargo install --force cargo-edit
- cargo install --locked cargo-outdated

dev:fe:
cmds:
- pnpm i unplugin-vue-components -D
- pnpm i -D naive-ui
- pnpm i -D vfonts
- pnpm i -D @vicons/ionicons5

install:
cmds:
Expand All @@ -21,8 +29,9 @@ tasks:
- pnpm dev

test:
- echo "test"
- cd src-tauri; cargo test
cmds:
- echo "test"
- cd src-tauri; cargo test

release:
cmds:
Expand Down
24 changes: 24 additions & 0 deletions crates/rs-tauri-vue/components.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
// generated by unplugin-vue-components
// We suggest you to commit this file into source control
// Read more: https://github.com/vuejs/core/pull/3399
import '@vue/runtime-core'

export {}

declare module '@vue/runtime-core' {
export interface GlobalComponents {
Button: typeof import('./src/components/Button.vue')['default']
HelloWorld: typeof import('./src/components/HelloWorld.vue')['default']
Layout: typeof import('./src/components/Layout.vue')['default']
Menu: typeof import('./src/components/Menu.vue')['default']
Menu2: typeof import('./src/components/Menu2.vue')['default']
NH2: typeof import('naive-ui')['NH2']
NLayout: typeof import('naive-ui')['NLayout']
NLayoutSider: typeof import('naive-ui')['NLayoutSider']
NMenu: typeof import('naive-ui')['NMenu']
NSpace: typeof import('naive-ui')['NSpace']
NSwitch: typeof import('naive-ui')['NSwitch']
Tab: typeof import('./src/components/Tab.vue')['default']
TabMenu: typeof import('./src/components/TabMenu.vue')['default']
}
}
4 changes: 4 additions & 0 deletions crates/rs-tauri-vue/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
"devDependencies": {
"@tauri-apps/cli": "1.1.1",
"@types/node": "18.7.23",
"@vicons/ionicons5": "^0.12.0",
"@vitejs/plugin-vue": "3.1.0",
"@vue/devtools": "6.4.2",
"@vue/eslint-config-typescript": "11.0.2",
Expand All @@ -30,12 +31,15 @@
"eslint-plugin-node": "11.1.0",
"eslint-plugin-security": "1.5.0",
"eslint-plugin-vue": "9.5.1",
"naive-ui": "^2.33.5",
"postcss": "8.4.16",
"postcss-import": "15.0.0",
"postcss-nesting": "10.2.0",
"tailwindcss": "3.1.8",
"typescript": "4.8.4",
"unplugin-auto-import": "0.11.2",
"unplugin-vue-components": "^0.22.8",
"vfonts": "^0.0.3",
"vite": "3.1.4",
"vitest": "0.23.4",
"vue-tsc": "0.40.13"
Expand Down
Loading

0 comments on commit 21b11ce

Please sign in to comment.