react-electron-scripts
Configuration and scripts for creating React Apps running in Electron.
Last updated 3 years ago by paulsevere .
BSD-3-Clause · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install react-electron-scripts 
SYNC missed versions from official npm registry.

react-scripts for electron apps

This package includes scripts and configuration used by Create React App. It is a fork of the official react-scripts package aimed at bringing the convenience of "create-react-app" to desktop app development with electron.

Repository

Use

create-react-app <my_app> --scripts-version react-electron-scripts

NOTE: This package uses a globally installed electron version (Using the electron binary from a locally installed was causing problems for some reason). If you have not yet installed electron, you will be prompted.

NOTE: running npm/yarn start will run the webpack dev server and start the electron app. Changes to the code run by the renderer process will cause a hot reload. To restart the main process, close the spawned application (you will be prompted to restart). To run the main process indepentent of the webpack dev server, run:

electron .

App source Structure

  • src/
    • Contains React app skeleton including a react component implementing the close, minimize and fullscreen buttons in a MacOS style (replacing the native buttons).
  • main_process/
    • main.js
      • Main electron process.
  • index.js
    • Kicks off main process.

TODO

  • [ ] Create scripts for building and bundling electron app.

Current Tags

  • 0.5.0                                ...           beta (2 years ago)
  • 0.4.2                                ...           latest (3 years ago)

22 Versions

  • 0.5.0                                ...           2 years ago
  • 0.4.2                                ...           3 years ago
  • 0.4.1                                ...           3 years ago
  • 0.3.1                                ...           3 years ago
  • 0.3.0                                ...           3 years ago
  • 0.2.0                                ...           3 years ago
  • 0.1.13                                ...           3 years ago
  • 0.1.12                                ...           3 years ago
  • 0.1.11                                ...           3 years ago
  • 0.1.10                                ...           3 years ago
  • 0.1.9                                ...           3 years ago
  • 0.1.8                                ...           3 years ago
  • 0.1.7                                ...           3 years ago
  • 0.1.6                                ...           3 years ago
  • 0.1.5                                ...           3 years ago
  • 0.1.3                                ...           3 years ago
  • 0.1.2                                ...           3 years ago
  • 0.1.1                                ...           3 years ago
  • 0.1.0                                ...           3 years ago
  • 0.9.6                                ...           3 years ago
  • 0.9.5                                ...           3 years ago
  • 0.9.4                                ...           3 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 22
Dev Dependencies (2)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |