Electron Forge
GitHub
Discord
Search…
V6
Getting Started
Import Existing Project
Configuration
CLI
Built-in Templates
TypeScript
TypeScript + Webpack
Webpack
Forge Configuration
Plugins
Makers
Publishers
Guides
Electron Guides
Framework Integration
Developing with WSL
Advanced
Auto Update
Debugging
Extending Electron Forge
API Docs
Powered By
GitBook
TypeScript
Create a new Electron app with TypeScript.
To get you up and running as fast as possible with
TypeScript
and Electron, we have provided a basic template that utilizes
tsc
and
eslint
.
If you need to use
import
or
export
statements, it's recommended to use the
TypeScript + Webpack template
instead.
NPM
Yarn
npx create-electron-app my-new-app --template=typescript
yarn create electron-app my-new-app --template=typescript
Once you've initialized the template, you'll need to run
npm start
(or
yarn start
, respectively) in the generated directory.
Previous
CLI
Next - Built-in Templates
TypeScript + Webpack
Last modified
1yr ago
Copy link
Edit on GitHub