
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
electron-lab
Advanced tools
Electron 的研发脚手架,包含开发、构建脚本和对应的运行时 API。
$ npm install electron-lab --save
$ npx el start
$ npx el build
{
"scripts": {
"start": "el start",
"build": "el build"
}
}
参数 | 含义 | 默认值 | 示例 |
---|---|---|---|
--inspect | 主进程 debug 的 inspect 端口 | $ el start --inspect=3999 | |
--port | 渲染进程 dev server 端口 | $ el start --port=4001 |
参数 | 含义 | 默认值 | 示例 |
---|---|---|---|
--output | 打包输出路径 | ./dist | $ el build --output=./some-dir |
主进程和渲染进程都使用 webpack 打包,app 使用 electron-builder 打包,可以根据自己的需要增加额外一些配置。存放路径都在项目的根目录。
默认配置可以查看 node_modules/electron-lab/config
说明 | 路径 |
---|---|
主进程额外配置 | main.webpack.config.js |
渲染进程额外配置 | renderer.webpack.config.js |
builder 配置 | electron-builder.config.js |
import el from 'electron-lab';
el.getEntry(entry?:string): string
参数 | 说明 | 默认值 |
---|---|---|
entry | 入口名称 | "index" |
el.openSubWindow(options:BrowserWindowConstructorOptions & { entry: string }): BrowserWindow
参数 | 说明 | 默认值 |
---|---|---|
options | 启动子窗口的参数 | - |
FAQs
Electron 的研发脚手架,包含开发、构建脚本和对应的运行时 API。
We found that electron-lab demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
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.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.