mirror of
https://github.com/electron-vite/electron-vite-vue
synced 2025-01-31 20:16:36 +08:00
docs: dependencies
vs devDependencies
This commit is contained in:
parent
1294005455
commit
d4800fa089
34
README.md
34
README.md
@ -13,7 +13,7 @@
|
|||||||
📦 Out of the box
|
📦 Out of the box
|
||||||
🎯 Based on [vue-ts](https://github.com/vitejs/vite/tree/main/packages/create-vite/template-vue-ts) template, less invasive
|
🎯 Based on [vue-ts](https://github.com/vitejs/vite/tree/main/packages/create-vite/template-vue-ts) template, less invasive
|
||||||
🌱 Extensible, really simple directory structure
|
🌱 Extensible, really simple directory structure
|
||||||
💪 Support using Node.js API in Renderer-process
|
💪 Support using Node.js API in Electron-Renderer
|
||||||
🔩 Support C/C++ native addons
|
🔩 Support C/C++ native addons
|
||||||
🖥 It's easy to implement multiple windows
|
🖥 It's easy to implement multiple windows
|
||||||
|
|
||||||
@ -46,11 +46,35 @@ npm create electron-vite
|
|||||||
└── vite.config.ts
|
└── vite.config.ts
|
||||||
```
|
```
|
||||||
|
|
||||||
## `dependencies` vs `devDependencies`
|
## 🚨 `dependencies` vs `devDependencies`
|
||||||
|
|
||||||
The easiest way
|
**Put Node.js packages in `dependencies`**
|
||||||
|
|
||||||
- Put Node.js packages in `dependencies`
|
🚨 e.g.
|
||||||
- Put web packages in `devDependencies`
|
|
||||||
|
- `electron-store`
|
||||||
|
- `sqlite3`
|
||||||
|
- `serilaport`
|
||||||
|
- `mongodb`
|
||||||
|
- ...others Node.js packages
|
||||||
|
|
||||||
|
**Put Web packages in `devDependencies`**
|
||||||
|
|
||||||
|
🚨 e.g.
|
||||||
|
|
||||||
|
- `vue`
|
||||||
|
- `vue-router`
|
||||||
|
- `vuex`
|
||||||
|
- `pinia`
|
||||||
|
- `element-plus`
|
||||||
|
- `ant-design-vue`
|
||||||
|
- `axios`
|
||||||
|
- ...others Web packages
|
||||||
|
|
||||||
|
**TODO: ESM packages**
|
||||||
|
|
||||||
|
- `node-fetch`
|
||||||
|
- `execa`
|
||||||
|
- ...others ESM packages
|
||||||
|
|
||||||
See more 👉 [dependencies vs devDependencies](https://github.com/electron-vite/vite-plugin-electron-renderer#dependencies-vs-devdependencies)
|
See more 👉 [dependencies vs devDependencies](https://github.com/electron-vite/vite-plugin-electron-renderer#dependencies-vs-devdependencies)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user