nuxt-electron
Advanced tools
Comparing version 0.4.0 to 0.4.1
{ | ||
"name": "nuxt-electron", | ||
"version": "0.4.0", | ||
"version": "0.4.1", | ||
"description": "Nuxt Integration with Electron", | ||
"main": "index.mjs", | ||
"types": "types", | ||
"main": "./dist/index.cjs", | ||
"types": "./dist/index.d.ts", | ||
"exports": { | ||
".": { | ||
"import": "./index.mjs", | ||
"require": "./index.js" | ||
"types": "./dist/index.d.ts", | ||
"import": "./dist/index.mjs", | ||
"require": "./dist/index.cjs" | ||
} | ||
@@ -20,5 +21,5 @@ }, | ||
"scripts": { | ||
"build": "npm run types && vite build", | ||
"build": "vite build", | ||
"dev": "vite build --watch", | ||
"types": "rm -rf types && tsc -p tsconfig.build.json", | ||
"types": "tsc -p tsconfig.build.json", | ||
"prepublishOnly": "npm run build" | ||
@@ -40,5 +41,3 @@ }, | ||
"electron-env.d.ts", | ||
"types", | ||
"index.mjs", | ||
"index.js" | ||
"dist" | ||
], | ||
@@ -45,0 +44,0 @@ "keywords": [ |
@@ -1,10 +0,21 @@ | ||
# Nuxt Electron | ||
<p align="center"> | ||
<img width="170" src="https://github.com/caoxiemeihao/nuxt-electron/raw/main/logo.svg?raw=true"> | ||
</p> | ||
Integrate Nuxt and Electron | ||
<div align="center"> | ||
<h1>Nuxt Electron</h1> | ||
</div> | ||
<p align="center">Integrate Nuxt and Electron</p> | ||
<p align="center"> | ||
<a href="https://npmjs.org/package/nuxt-electron"> | ||
<img src="https://img.shields.io/npm/v/nuxt-electron.svg?colorA=18181B&colorB=28CF8D"> | ||
</a> | ||
<a href="https://npmjs.org/package/nuxt-electron"> | ||
<img src="https://img.shields.io/npm/dm/nuxt-electron.svg?colorA=18181B&colorB=28CF8D"> | ||
</a> | ||
<img src="https://camo.githubusercontent.com/1355d11db24d82f2b23bbe4957178a05c7d5ca0948ddfc9eec38f5a6864fe4e5/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6e7578742f6e7578742e7376673f7374796c653d666c617426636f6c6f72413d31383138314226636f6c6f72423d323843463844"> | ||
</p> | ||
[![NPM version](https://img.shields.io/npm/v/nuxt-electron.svg)](https://npmjs.org/package/nuxt-electron) | ||
[![NPM Downloads](https://img.shields.io/npm/dm/nuxt-electron.svg)](https://npmjs.org/package/nuxt-electron) | ||
<br/> | ||
![screenshort.png](https://github.com/caoxiemeihao/nuxt-electron/blob/main/screenshot.png?raw=true) | ||
## Features | ||
@@ -21,6 +32,13 @@ | ||
```sh | ||
npm i -D nuxt-electron vite-electron-plugin electron electron-builder | ||
# Using pnpm | ||
pnpm add -D nuxt-electron vite-electron-plugin electron electron-builder | ||
# Using yarn | ||
yarn add --dev nuxt-electron vite-electron-plugin electron electron-builder | ||
# Using npm | ||
npm install --save-dev nuxt-electron vite-electron-plugin electron electron-builder | ||
``` | ||
2. Add `nuxt-electron` to the modules section of `nuxt.config.ts` | ||
2. Add `nuxt-electron` to the `modules` section of `nuxt.config.ts` | ||
@@ -30,3 +48,3 @@ ```ts | ||
modules: [ | ||
['nuxt-electron'], | ||
'nuxt-electron', | ||
], | ||
@@ -57,3 +75,3 @@ }) | ||
## ElectronOptions | ||
## Electron options | ||
@@ -65,11 +83,10 @@ > This is based on the `vite-electron-plugin`, see the **[Documents](https://github.com/electron-vite/vite-electron-plugin#configuration)** for more detailed options | ||
```ts | ||
import type { ElectronOptions } from 'nuxt-electron' | ||
export default defineNuxtConfig({ | ||
modules: [ | ||
['nuxt-electron', <ElectronOptions>{ | ||
include: ['electron'], | ||
outDir: 'dist-electron', | ||
}], | ||
'nuxt-electron' | ||
], | ||
electron: { | ||
include: ['electron'], | ||
outDir: 'dist-electron', | ||
}, | ||
}) | ||
@@ -76,0 +93,0 @@ ``` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
8885
131
98
1