Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/airtoxin/Electron-React-Boilerplate
No longer maintained.
https://github.com/airtoxin/Electron-React-Boilerplate
Last synced: about 2 months ago
JSON representation
No longer maintained.
- Host: GitHub
- URL: https://github.com/airtoxin/Electron-React-Boilerplate
- Owner: airtoxin
- License: mit
- Archived: true
- Created: 2015-01-21T14:07:07.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-06-15T00:58:40.000Z (over 8 years ago)
- Last Synced: 2024-04-13T08:13:19.391Z (5 months ago)
- Language: JavaScript
- Homepage:
- Size: 85.9 KB
- Stars: 199
- Watchers: 10
- Forks: 36
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# [Deprecated]~~Electron-React-Boilerplate~~
No longer maintained.
![](./docs/screenshot.png)
# How to develop
1. `npm i`
2. `npm start`
3. open application in build directory
4. add some react components and styles
5. reload application (⌘+R)# Electron api calling
To call Electron's api, it is necessary to use window.require because, browserify rewrites require statement.ex) `var remote = window.require( 'remote' );`
## Refactoring
Run `npm run refactor` to refactor the code in accordance to [jscs preset](http://jscs.info/overview#presets) specified in the `.jscsrc` file.
## Linting
Run `npm run lint` to run a linter through the codebase. The linter will check
the codebase as specified in the [configuration file named `.eslintrc`](http://eslint.org/docs/user-guide/configuring). Fix all reported
errors prior to committing code.An example of a `.eslintrc` follows:
```json
{
"ecmaFeatures": {
"blockBindings": true,
"jsx": true
},
"rules": {
"semi": 2
}
}
```