Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

nuxt-electron

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nuxt-electron - npm Package Compare versions

Comparing version 0.4.0 to 0.4.1

dist/index.cjs

19

package.json
{
"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 @@ ```

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc