An open API service indexing awesome lists of open source software.

https://github.com/gabrielfalcao/tesla-editor

A toy project that combines React + Webpack + Electron + Monaco Editor
https://github.com/gabrielfalcao/tesla-editor

electron-builder electron-react electronjs monaco-editor react react-hooks reactjs webpack

Last synced: 4 months ago
JSON representation

A toy project that combines React + Webpack + Electron + Monaco Editor

Awesome Lists containing this project

README

        

# Tesla Editor

![Screenshot](https://github.com/gabrielfalcao/tesla-editor/raw/main/screenshot.png)

[Demo Video](https://github.com/gabrielfalcao/tesla-editor/raw/main/screencast.mp4)

A simple editor powered by [Electron](https://www.electronjs.org/), [react](https://reactjs.org/) and [Monaco Editor](https://microsoft.github.io/monaco-editor/)

* Built with [electron-webpack](https://webpack.electron.build/)
* Use [`webpack-dev-server`](https://github.com/webpack/webpack-dev-server) for development
* Hot Module Reloading for both `renderer` and `main` processes
* Auto configures [`babel-preset-env`](https://github.com/babel/babel-preset-env) based on the `electron` version
* Use [`electron-builder`](https://github.com/electron-userland/electron-builder) to package and build a distributable electron application.

## Getting Started

Simply clone down this repository, install dependencies, and get started on your application.

The use of the [yarn](https://yarnpkg.com/) package manager is **strongly** recommended, as opposed to using `npm`.

```bash
git clone [email protected]:gabrielfalcao/tesla-editor.git
cd tesla-editor
yarn
```

### Development Scripts

```bash
# run application in development mode
yarn dev

# compile source code and create webpack output
yarn compile

# `yarn compile` & create build with electron-builder
yarn dist

# `yarn compile` & create unpacked build with electron-builder
yarn dist:dir
```

----

Based on the excellent [electron-react-boilerplate](https://github.com/electron-react-boilerplate/electron-react-boilerplate).