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

@quiteer/electronup

Package Overview
Dependencies
Maintainers
1
Versions
47
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@quiteer/electronup

融合构建 electron 应用需要的构建工具,保留原有配置习惯的命令行工具

  • 0.0.6
  • unpublished
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

@quiteer/electronup

融合构建 electron 应用需要的构建工具,保留原有配置习惯的命令行工具 vite tsup electorn-builder 已内置 无需重复安装

安装

npm i @quiteer/electronup
yarn add @quiteer/electronup
pnpm add @quiteer/electronup

使用

  • 查看命令行指令
    • electornup -h
  • 查看命令行版本
    • electornup -v
  • 开发环境
    • electornup
    • electornup dev
    • electornup -c [file]
    • electornup --config [file]
  • 构建打包
    • electornup build

暴露的api

import type { CliOptions } from 'electron-builder'
import type { InlineConfig, UserConfigExport } from 'vite'
import type { Options } from 'tsup'

interface ElectronupConfig {
  builderConfig: CliOptions
  viteConfig: InlineConfig
  tsupConfig: Options
  /** 渲染进程输出目录 */
  renderDir: string
  /** 主进程输出目录 */
  mainDir: string
  /** electron-builder 输出目录 */
  outDir: string
}

declare const viteConfig: (config: UserConfigExport) => UserConfigExport

declare const tsupConfig: (config: Options) => Options | Options[] | ((overrideOptions: Options) => Options | Options[] | Promise<Options | Options[]>)

declare const buildConfig: (config: CliOptions) => CliOptions

declare const defineConfig: (options: ElectronupConfig) => ElectronupConfig

export { ElectronupConfig, buildConfig, defineConfig, tsupConfig, viteConfig }
获取类型提示

引入导出的 api 即可获取类型提示

Keywords

FAQs

Package last updated on 22 Nov 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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