Skip to content

Commit e7ba008

Browse files
committed
first
0 parents  commit e7ba008

File tree

115 files changed

+40231
-0
lines changed

Some content is hidden

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

115 files changed

+40231
-0
lines changed

.dockerignore

+52
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
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+
.idea
51+
npm-debug.log.*
52+
.*.dockerfile

.editorconfig

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
root = true
2+
3+
[*]
4+
indent_style = space
5+
indent_size = 2
6+
end_of_line = lf
7+
charset = utf-8
8+
trim_trailing_whitespace = true
9+
insert_final_newline = true
10+
11+
[*.md]
12+
trim_trailing_whitespace = false

.eslintignore

+56
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
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+
.idea
51+
npm-debug.log.*
52+
__snapshots__
53+
54+
# Package.json
55+
package.json
56+
.travis.yml

.eslintrc

+72
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
{
2+
"parser": "babel-eslint",
3+
"parserOptions": {
4+
"sourceType": "module",
5+
"allowImportExportEverywhere": true
6+
},
7+
"extends": ["airbnb", "prettier", "prettier/flowtype", "prettier/react"],
8+
"env": {
9+
"browser": true,
10+
"node": true
11+
},
12+
"rules": {
13+
"arrow-parens": ["off"],
14+
"compat/compat": "error",
15+
"consistent-return": "off",
16+
"comma-dangle": "off",
17+
"flowtype/boolean-style": ["error", "boolean"],
18+
"flowtype/define-flow-type": "warn",
19+
"flowtype/delimiter-dangle": ["error", "never"],
20+
"flowtype/generic-spacing": ["error", "never"],
21+
"flowtype/no-primitive-constructor-types": "error",
22+
"flowtype/no-weak-types": "warn",
23+
"flowtype/object-type-delimiter": ["error", "comma"],
24+
"flowtype/require-parameter-type": "off",
25+
"flowtype/require-return-type": "off",
26+
"flowtype/require-valid-file-annotation": "off",
27+
"flowtype/semi": ["error", "always"],
28+
"flowtype/space-after-type-colon": ["error", "always"],
29+
"flowtype/space-before-generic-bracket": ["error", "never"],
30+
"flowtype/space-before-type-colon": ["error", "never"],
31+
"flowtype/union-intersection-spacing": ["error", "always"],
32+
"flowtype/use-flow-type": "error",
33+
"flowtype/valid-syntax": "error",
34+
"generator-star-spacing": "off",
35+
"import/no-unresolved": "error",
36+
"import/no-extraneous-dependencies": "off",
37+
"jsx-a11y/anchor-is-valid": "off",
38+
"no-console": "off",
39+
"no-use-before-define": "off",
40+
"no-multi-assign": "off",
41+
"promise/param-names": "error",
42+
"promise/always-return": "error",
43+
"promise/catch-or-return": "error",
44+
"promise/no-native": "off",
45+
"react/sort-comp": [
46+
"error",
47+
{
48+
"order": [
49+
"type-annotations",
50+
"static-methods",
51+
"lifecycle",
52+
"everything-else",
53+
"render"
54+
]
55+
}
56+
],
57+
"react/jsx-no-bind": "off",
58+
"react/jsx-filename-extension": [
59+
"error",
60+
{ "extensions": [".js", ".jsx"] }
61+
],
62+
"react/prefer-stateless-function": "off"
63+
},
64+
"plugins": ["flowtype", "import", "promise", "compat", "react"],
65+
"settings": {
66+
"import/resolver": {
67+
"webpack": {
68+
"config": "configs/webpack.config.eslint.js"
69+
}
70+
}
71+
}
72+
}

.flowconfig

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
[ignore]
2+
<PROJECT_ROOT>/app/main.prod.js
3+
<PROJECT_ROOT>/app/main.prod.js.map
4+
<PROJECT_ROOT>/app/dist/.*
5+
<PROJECT_ROOT>/resources/.*
6+
<PROJECT_ROOT>/node_modules/webpack-cli
7+
<PROJECT_ROOT>/release/.*
8+
<PROJECT_ROOT>/dll/.*
9+
<PROJECT_ROOT>/release/.*
10+
<PROJECT_ROOT>/git/.*
11+
12+
[include]
13+
14+
[libs]
15+
16+
[options]
17+
esproposal.class_static_fields=enable
18+
esproposal.class_instance_fields=enable
19+
esproposal.export_star_as=enable
20+
module.name_mapper.extension='css' -> '<PROJECT_ROOT>/internals/flow/CSSModule.js.flow'
21+
module.name_mapper.extension='styl' -> '<PROJECT_ROOT>/internals/flow/CSSModule.js.flow'
22+
module.name_mapper.extension='scss' -> '<PROJECT_ROOT>/internals/flow/CSSModule.js.flow'
23+
module.name_mapper.extension='png' -> '<PROJECT_ROOT>/internals/flow/WebpackAsset.js.flow'
24+
module.name_mapper.extension='jpg' -> '<PROJECT_ROOT>/internals/flow/WebpackAsset.js.flow'
25+
suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe
26+
suppress_comment=\\(.\\|\n\\)*\\$FlowIssue

.gitattributes

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
* text eol=lf
2+
*.png binary
3+
*.jpg binary
4+
*.jpeg binary
5+
*.ico binary
6+
*.icns binary

.github/ISSUE_TEMPLATE.md

+53
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
<!--- Provide a general summary of the issue in the Title above -->
2+
3+
## Prerequisites
4+
5+
- [ ] Using yarn
6+
- [ ] Using an up-to-date master branch
7+
- [ ] Using latest version of devtools. See [wiki for howto update](https://github.com/electron-react-boilerplate/electron-react-boilerplate/wiki/DevTools)
8+
- [ ] Link to stacktrace in a Gist (for bugs)
9+
- [ ] For issue in production release, devtools output of `DEBUG_PROD=true yarn build && yarn start`
10+
- [ ] Tried solutions mentioned in [#400](https://github.com/electron-react-boilerplate/electron-react-boilerplate/issues/400)
11+
12+
## Expected Behavior
13+
14+
<!--- If you're describing a bug, tell us what should happen -->
15+
<!--- If you're suggesting a change/improvement, tell us how it should work -->
16+
17+
## Current Behavior
18+
19+
<!--- If describing a bug, tell us what happens instead of the expected behavior -->
20+
<!--- If suggesting a change/improvement, explain the difference from current behavior -->
21+
22+
## Possible Solution
23+
24+
<!--- Not obligatory, but suggest a fix/reason for the bug, -->
25+
<!--- or ideas how to implement the addition or change -->
26+
27+
## Steps to Reproduce (for bugs)
28+
29+
<!--- Provide a link to a live example, or an unambiguous set of steps to -->
30+
<!--- reproduce this bug. Include code to reproduce, if relevant -->
31+
32+
1.
33+
34+
2.
35+
36+
3.
37+
38+
4.
39+
40+
## Context
41+
42+
<!--- How has this issue affected you? What are you trying to accomplish? -->
43+
<!--- Did you make any changes to the boilerplate after cloning it? -->
44+
<!--- Providing context helps us come up with a solution that is most useful in the real world -->
45+
46+
## Your Environment
47+
48+
<!--- Include as many relevant details about the environment you experienced the bug in -->
49+
50+
- Node version :
51+
- Version or Branch used :
52+
- Operating System and version :
53+
- Link to your project :

.github/stale.yml

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Number of days of inactivity before an issue becomes stale
2+
daysUntilStale: 60
3+
# Number of days of inactivity before a stale issue is closed
4+
daysUntilClose: 7
5+
# Issues with these labels will never be considered stale
6+
exemptLabels:
7+
- pr
8+
- discussion
9+
- e2e
10+
- enhancement
11+
# Comment to post when marking an issue as stale. Set to `false` to disable
12+
markComment: >
13+
This issue has been automatically marked as stale because it has not had
14+
recent activity. It will be closed if no further activity occurs. Thank you
15+
for your contributions.
16+
# Comment to post when closing a stale issue. Set to `false` to disable
17+
closeComment: false

.gitignore

+51
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
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+
.idea
51+
npm-debug.log.*

.prettierrc

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"overrides": [
3+
{
4+
"files": [".prettierrc", ".babelrc", ".eslintrc", ".stylelintrc"],
5+
"options": {
6+
"parser": "json"
7+
}
8+
}
9+
],
10+
"singleQuote": true
11+
}

.stylelintrc

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"extends": ["stylelint-config-standard", "stylelint-config-prettier"]
3+
}

.testcafe-electron-rc

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"mainWindowUrl": "./app/app.html",
3+
"appPath": "."
4+
}

0 commit comments

Comments
 (0)