Skip to content

Commit 7201b86

Browse files
committed
- Upgraded to the latest version of Electron, Babel, Webpack.
- Added: - Material UI. - Inbuilt Storage management. - Inbuilt Settings management with UI feedback and persistence by saving it to a local settings.json file. - Inbuilt Logs management for capturing errors or debug information along with a rotation period. - Inbuilt full-blown App-Update manager with progress feedback and an opt-out option. - Inbuilt Google analytics manager with an opt-out option. - Inbuilt Error Reporting management with an option to email the Log files to the developer. - Various other optimization. - Bug fixes. - Readme updated
1 parent 264dcf1 commit 7201b86

File tree

196 files changed

+7112
-8687
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

196 files changed

+7112
-8687
lines changed

.babelrc

Lines changed: 0 additions & 27 deletions
This file was deleted.

.eslintignore

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
# Logs
2+
logs
3+
*.log
4+
5+
# Runtime data
6+
pids
7+
*.pid
8+
*.seed
9+
10+
# Directory for instrumented libs generated by jscoverage/JSCover
11+
lib-cov
12+
13+
# Coverage directory used by tools like istanbul
14+
coverage
15+
16+
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
17+
.grunt
18+
19+
# node-waf configuration
20+
.lock-wscript
21+
22+
# Compiled binary addons (http://nodejs.org/api/addons.html)
23+
build/Release
24+
.eslintcache
25+
26+
# Dependency directory
27+
# https://www.npmjs.org/doc/misc/npm-faq.html#should-i-check-my-node_modules-folder-into-git
28+
node_modules
29+
30+
# OSX
31+
.DS_Store
32+
33+
# flow-typed
34+
flow-typed/npm/*
35+
!flow-typed/npm/module_vx.x.x.js
36+
37+
# App packaged
38+
release
39+
app/main.prod.js
40+
app/main.prod.js.map
41+
app/renderer.prod.js
42+
app/renderer.prod.js.map
43+
app/style.css
44+
app/style.css.map
45+
dist
46+
dll
47+
main.js
48+
main.js.map
49+
50+
51+
.idea
52+
npm-debug.log.*
53+
__snapshots__
54+
55+
# Package.json
56+
package.json
57+
.travis.yml
58+
59+
.idea
60+
vendors
61+
build
62+
docs
63+
.vscode
64+
.github
65+
app/dll
66+
.prettierrc
67+
.stylelintrc
68+
.eslintrc.json

.eslintrc.js

Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
module.exports = {
2+
parser: 'babel-eslint',
3+
parserOptions: {
4+
sourceType: 'module',
5+
allowImportExportEverywhere: true
6+
},
7+
env: {
8+
browser: true,
9+
node: true
10+
},
11+
plugins: ['import', 'promise', 'compat', 'react'],
12+
extends: ['airbnb', 'plugin:prettier/recommended', 'prettier/react'],
13+
settings: {
14+
'import/resolver': {
15+
webpack: {
16+
config: 'webpack/config.eslint.js'
17+
}
18+
}
19+
},
20+
rules: {
21+
'arrow-parens': 'off',
22+
'compat/compat': 'error',
23+
'consistent-return': 'off',
24+
'comma-dangle': 'off',
25+
'generator-star-spacing': 'off',
26+
'import/no-unresolved': 'error',
27+
'import/no-extraneous-dependencies': ['error', { devDependencies: true }],
28+
'jsx-a11y/anchor-is-valid': 'off',
29+
'jsx-a11y/label-has-for': 'off',
30+
'jsx-a11y/label-has-associated-control': 'off',
31+
'jsx-a11y/no-static-element-interactions': 'off',
32+
'jsx-a11y/click-events-have-key-events': 'off',
33+
'no-console': [
34+
'error',
35+
{
36+
allow: ['info', 'error', 'warn']
37+
}
38+
],
39+
'no-use-before-define': 'off',
40+
'no-multi-assign': 'off',
41+
'prettier/prettier': ['error', { singleQuote: true }],
42+
'promise/param-names': 'error',
43+
'promise/always-return': 'error',
44+
'promise/catch-or-return': 'error',
45+
'promise/no-native': 'off',
46+
'react/sort-comp': [
47+
'error',
48+
{
49+
order: [
50+
'type-annotations',
51+
'static-methods',
52+
'lifecycle',
53+
'everything-else',
54+
'render'
55+
]
56+
}
57+
],
58+
'react/jsx-no-bind': 'off',
59+
'react/jsx-filename-extension': ['error', { extensions: ['.js', '.jsx'] }],
60+
'react/prefer-stateless-function': 'off',
61+
strict: 'off',
62+
'import/prefer-default-export': 'off',
63+
'arrow-body-style': 'off',
64+
'no-underscore-dangle': 'off',
65+
'class-methods-use-this': 'off',
66+
'no-shadow': 'off',
67+
'react/prop-types': 'off',
68+
'import/no-dynamic-require': 'off',
69+
'no-unused-vars': [
70+
'error',
71+
{
72+
args: 'after-used',
73+
argsIgnorePattern: '^(theme|props|state|ownProps|dispatch|getState)|_',
74+
varsIgnorePattern: '^(variables|mixins|args|log)'
75+
}
76+
]
77+
}
78+
};
Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
labels: 'bug'
5+
6+
---
7+
8+
**Prerequisites**
9+
10+
If the following boxes are not ALL checked, your issue is likely to be closed.
11+
12+
- [ ] Using yarn
13+
- [ ] Using node 10.x
14+
- [ ] Using an up-to-date [`master` branch](https://github.com/ganeshrvel/electron-react-redux-advanced-boilerplate/tree/master)
15+
- [ ] Using latest version of devtools. See [wiki for howto update](https://github.com/electron-react-boilerplate/electron-react-boilerplate/wiki/DevTools)
16+
- [ ] For issue in production release, devtools output of `DEBUG_PROD=true yarn build && yarn start`
17+
- [ ] Tried solutions mentioned in [#400](https://github.com/electron-react-boilerplate/electron-react-boilerplate/issues/400)
18+
19+
**Describe the bug**
20+
A clear and concise description of what the bug is.
21+
22+
**Expected behaviour**
23+
If you're describing a bug, tell us what should happen.
24+
If you're suggesting a change/improvement, tell us how it should work.
25+
26+
**Current Behavior**
27+
If describing a bug, tell us what happens instead of the expected behaviour.
28+
If suggesting a change/improvement, explain the difference between current behaviour.
29+
30+
**Possible Solution**
31+
32+
Not obligatory, but suggest a fix/reason for the bug or ideas how to implement the addition or change.
33+
34+
**Steps to Reproduce (for bugs)**
35+
Provide a link to a live example or an unambiguous set of steps to reproduce this bug. Include code to reproduce, if relevant
36+
37+
1.
38+
39+
2.
40+
41+
3.
42+
43+
4.
44+
45+
**Context**
46+
How has this issue affected you? What are you trying to accomplish?
47+
Did you make any changes to the codes after cloning it?
48+
Providing context helps us come up with a solution that is most useful in the real world.
49+
50+
**Your Environment**
51+
Include as many relevant details about the environment you experienced the bug in
52+
53+
- Node version :
54+
- Version or Branch used :
55+
- Operating System and version [e.g. macOS 10.14 mojave]:
56+
- App Version [e.g. Electron-React-Redux Advanced Boilerplate-v1.0]:
57+
- Link to your project :
58+
59+
**Attachments**
60+
Include if relevant,
61+
1. Open your Terminal and run the following code:
62+
```shell
63+
zip -r -X ~/Desktop/Electron-React-Redux Advanced Boilerplate-log.zip ~/.io.ganeshrvel/electron-react-redux-advanced-boilerplate/logs/
64+
```
65+
2. Attach the file *Electron-React-Redux Advanced Boilerplate-log.zip* found in your Desktop folder here.
66+
67+
Or
68+
69+
1. Open the App,
70+
2. Click on Help > Report Bugs.
71+
3. Generate and send us the bugs report.
72+
73+
**Screenshots**
74+
If applicable, add screenshots to help explain your problem.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
name: Feature request
3+
about: You want something added to the app or code.
4+
labels: 'enhancement'
5+
---

.gitignore

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ build/Release
2525

2626
# Dependency directory
2727
# https://www.npmjs.org/doc/misc/npm-faq.html#should-i-check-my-node_modules-folder-into-git
28-
node_modules
28+
node_modules/
2929
app/node_modules
3030

3131
# OSX
@@ -50,3 +50,16 @@ main.js.map
5050

5151
.idea
5252
npm-debug.log.*
53+
yarn.lock
54+
package-lock.json
55+
56+
57+
app/certs/*.pem
58+
certs/*
59+
*electron-builder.yml
60+
todo.txt
61+
*yarn-error.log
62+
eslint-common-rules.txt
63+
64+
build/entitlements.mas.plist
65+
*embedded.provisionprofile

.prettierrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"overrides": [
33
{
4-
"files": [".prettierrc", ".babelrc"],
4+
"files": [".prettierrc", ".babelrc", ".eslintrc", ".stylelintrc"],
55
"options": {
66
"parser": "json"
77
}

.stylelintrc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"extends": ["stylelint-config-standard", "stylelint-config-prettier"],
3+
"rules": {
4+
"at-rule-no-unknown": null,
5+
"no-descending-specificity": null
6+
}
7+
}

0 commit comments

Comments
 (0)