Security News
Bun 1.2 Released with 90% Node.js Compatibility and Built-in S3 Object Support
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
electron-forge
Advanced tools
The simple way to get started with Electron
npm install -g electron-forge
electron-forge init my-new-app
cd my-new-app
electron-forge start
Funnily enough, no :D. This is not another build tool, electron-forge
simply
unifies the existing (and well maintained) build tools for Electron development
into one, simple, easy to use package so that anyone can just jump right in
to Electron development.
This project has a few main goals.
babel
, browserify
, webpack
or
any of that nonsense. Everything should just work for them out of the box.With these goals in mind, under the hood this project uses
electron-compile
. A tool
that lets you use modern and futuristic langauges inside Electron without
worrying about transpiling or build tooling.
Glad you asked, it's beyond easy to get started with electron-forge
.
npm install -g electron-forge
electron-forge init my-new-project
This command will generate you a brand new project folder and install all your NPM dependencies so you will be all set to go.
When you want to start your app it's as simple as
electron-forge start
And when you get round to packaging your application, all you have to do is:
electron-forge package
electron-packager
Good news, the package
command also passes through any arguments you give it
directly to electron-packager
. So if you want the all the power, you have it.
electron-forge --help
Running --help
will give you a lot of the syntax that electron-forge
expects.
Basically there are 4 top level commands to provide electron-forge
.
init
- Similar to git init
and npm init
. It creates a new project from
scratch and sets everything up for youlint
- Run basic JS style linting across your application. Good for sanity
checking your code.package
- Packages your application into a platform specific format. Windows
will get .exe
, macOS will get .app
and so on.start
- Immediately launches your applicationFAQs
A complete tool for building modern Electron applications
The npm package electron-forge receives a total of 1,008 weekly downloads. As such, electron-forge popularity was classified as popular.
We found that electron-forge 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
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
Security News
Biden's executive order pushes for AI-driven cybersecurity, software supply chain transparency, and stronger protections for federal and open source systems.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.