Skip to content

Commit 130a5c6

Browse files
committed
Initial commit
0 parents  commit 130a5c6

File tree

114 files changed

+18579
-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.

114 files changed

+18579
-0
lines changed

.dockerignore

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
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+
# App packaged
34+
release
35+
app/main.prod.js
36+
app/main.prod.js.map
37+
app/renderer.prod.js
38+
app/renderer.prod.js.map
39+
app/style.css
40+
app/style.css.map
41+
dist
42+
dll
43+
main.js
44+
main.js.map
45+
46+
.idea
47+
npm-debug.log.*
48+
.*.dockerfile

.editorconfig

Lines changed: 12 additions & 0 deletions
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

Lines changed: 56 additions & 0 deletions
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+
# App packaged
34+
release
35+
app/*.main.prod.js
36+
app/main.prod.js
37+
app/main.prod.js.map
38+
app/renderer.prod.js
39+
app/renderer.prod.js.map
40+
app/style.css
41+
app/style.css.map
42+
dist
43+
dll
44+
main.js
45+
main.js.map
46+
47+
.idea
48+
npm-debug.log.*
49+
__snapshots__
50+
51+
# Package.json
52+
package.json
53+
.travis.yml
54+
*.css.d.ts
55+
*.sass.d.ts
56+
*.scss.d.ts

.eslintrc.js

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
module.exports = {
2+
extends: 'erb',
3+
rules: {
4+
// A temporary hack related to IDE not resolving correct package.json
5+
'import/no-extraneous-dependencies': 'off',
6+
},
7+
parserOptions: {
8+
ecmaVersion: 2020,
9+
sourceType: 'module',
10+
project: './tsconfig.json',
11+
tsconfigRootDir: __dirname,
12+
createDefaultProgram: true,
13+
},
14+
settings: {
15+
'import/resolver': {
16+
// See https://github.com/benmosher/eslint-plugin-import/issues/1396#issuecomment-575727774 for line below
17+
node: {},
18+
webpack: {
19+
config: require.resolve('./configs/webpack.config.eslint.js'),
20+
},
21+
},
22+
'import/parsers': {
23+
'@typescript-eslint/parser': ['.ts', '.tsx'],
24+
},
25+
},
26+
};

.gitattributes

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
* text eol=lf
2+
*.exe binary
3+
*.png binary
4+
*.jpg binary
5+
*.jpeg binary
6+
*.ico binary
7+
*.icns binary

.github/FUNDING.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# These are supported funding model platforms
2+
3+
github: [electron-react-boilerplate, amilajack]
4+
patreon: amilajack
5+
open_collective: electron-react-boilerplate-594
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
---
2+
name: Bug report
3+
about: You're having technical issues. 🐞
4+
labels: 'bug'
5+
---
6+
7+
<!-- Please use the following issue template or your issue will be closed -->
8+
9+
## Prerequisites
10+
11+
<!-- If the following boxes are not ALL checked, your issue is likely to be closed -->
12+
13+
- [ ] Using yarn
14+
- [ ] Using an up-to-date [`master` branch](https://github.com/electron-react-boilerplate/electron-react-boilerplate/tree/master)
15+
- [ ] Using latest version of devtools. [Check the docs for how to update](https://electron-react-boilerplate.js.org/docs/dev-tools/)
16+
- [ ] Tried solutions mentioned in [#400](https://github.com/electron-react-boilerplate/electron-react-boilerplate/issues/400)
17+
- [ ] For issue in production release, add devtools output of `DEBUG_PROD=true yarn build && yarn start`
18+
19+
## Expected Behavior
20+
21+
<!--- What should have happened? -->
22+
23+
## Current Behavior
24+
25+
<!--- What went wrong? -->
26+
27+
## Steps to Reproduce
28+
29+
<!-- Add relevant code and/or a live example -->
30+
<!-- Add stack traces -->
31+
32+
1.
33+
34+
2.
35+
36+
3.
37+
38+
4.
39+
40+
## Possible Solution (Not obligatory)
41+
42+
<!--- Suggest a reason for the bug or how to fix it. -->
43+
44+
## Context
45+
46+
<!--- How has this issue affected you? What are you trying to accomplish? -->
47+
<!--- Did you make any changes to the boilerplate 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+
52+
<!--- Include as many relevant details about the environment you experienced the bug in -->
53+
54+
- Node version :
55+
- electron-react-boilerplate version or branch :
56+
- Operating System and version :
57+
- Link to your project :
58+
59+
<!---
60+
❗️❗️ Also, please consider donating (https://opencollective.com/electron-react-boilerplate-594) ❗️❗️
61+
62+
Donations will ensure the following:
63+
64+
🔨 Long term maintenance of the project
65+
🛣 Progress on the roadmap
66+
🐛 Quick responses to bug reports and help requests
67+
-->

.github/ISSUE_TEMPLATE/2-Question.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
name: Question
3+
about: Ask a question.❓
4+
labels: 'question'
5+
---
6+
7+
## Summary
8+
9+
<!-- What do you need help with? -->
10+
11+
<!---
12+
❗️❗️ Also, please consider donating (https://opencollective.com/electron-react-boilerplate-594) ❗️❗️
13+
14+
Donations will ensure the following:
15+
16+
🔨 Long term maintenance of the project
17+
🛣 Progress on the roadmap
18+
🐛 Quick responses to bug reports and help requests
19+
-->
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
name: Feature request
3+
about: You want something added to the boilerplate. 🎉
4+
labels: 'enhancement'
5+
---
6+
7+
<!---
8+
❗️❗️ Also, please consider donating (https://opencollective.com/electron-react-boilerplate-594) ❗️❗️
9+
10+
Donations will ensure the following:
11+
12+
🔨 Long term maintenance of the project
13+
🛣 Progress on the roadmap
14+
🐛 Quick responses to bug reports and help requests
15+
-->

.github/config.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
requiredHeaders:
2+
- Prerequisites
3+
- Expected Behavior
4+
- Current Behavior
5+
- Possible Solution
6+
- Your Environment

.github/stale.yml

Lines changed: 17 additions & 0 deletions
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

.github/workflows/publish.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Publish
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
jobs:
9+
publish:
10+
runs-on: ${{ matrix.os }}
11+
12+
strategy:
13+
matrix:
14+
os: [macos-latest]
15+
16+
steps:
17+
- name: Check out Git repository
18+
uses: actions/checkout@v1
19+
20+
- name: Install Node.js, NPM and Yarn
21+
uses: actions/setup-node@v1
22+
with:
23+
node-version: 14
24+
25+
- name: yarn install
26+
run: |
27+
yarn install
28+
29+
- name: Publish Releases
30+
env:
31+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
32+
run: |
33+
yarn package-ci

.github/workflows/test.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: Test
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
release:
7+
runs-on: ${{ matrix.os }}
8+
9+
strategy:
10+
matrix:
11+
os: [macos-latest, windows-latest, ubuntu-latest]
12+
13+
steps:
14+
- name: Check out Git repository
15+
uses: actions/checkout@v1
16+
17+
- name: Install Node.js, NPM and Yarn
18+
uses: actions/setup-node@v1
19+
with:
20+
node-version: 14
21+
22+
- name: yarn install
23+
run: |
24+
yarn install --frozen-lockfile --network-timeout 300000
25+
26+
- name: yarn test
27+
env:
28+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
29+
run: |
30+
yarn package
31+
yarn lint
32+
yarn tsc
33+
yarn test
34+
yarn build-e2e
35+
36+
- if: matrix.os == 'ubuntu-latest'
37+
run: |
38+
Xvfb :99 &
39+
disown -ar
40+
echo "::set-env name=DISPLAY:::99"
41+
# TODO: Testcafe e2e are broken because of:
42+
# https://github.com/DevExpress/testcafe/issues/4512
43+
# Tests are currently broken on linux and macos
44+
# - if: matrix.os == 'windows-latest'
45+
# run: |
46+
# yarn test-e2e

0 commit comments

Comments
 (0)