Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
tribbedev committed Aug 10, 2021
1 parent 0167e4c commit 2e5c46a
Show file tree
Hide file tree
Showing 178 changed files with 52,163 additions and 2 deletions.
4 changes: 4 additions & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
RELEASE_TESTING=true
SKIP_PREFLIGHT_CHECK=true
ESLINT_NO_DEV_ERRORS=true
DISABLE_ESLINT_PLUGIN=true
23 changes: 23 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# dependencies
/node_modules
/.pnp
.pnp.js

# testing
/coverage
/src_old

# production
/build
/release

# misc
.DS_Store
.env.local
.env.development.local
.env.test.local
.env.production.local

npm-debug.log*
yarn-debug.log*
yarn-error.log*
85 changes: 85 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
{
"env": {
"browser": true,
"es6": true,
"node": true
},
"extends": ["airbnb", "prettier", "plugin:prettier/recommended"],
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly"
},
"settings": {
"import/resolver": {
"alias": {
"map": [
["^ui$", "./src/ui"],
["app", "./src/app/"],
["common", "./src/common"]
],
"extensions": [".js", ".jsx", ".json", ".svg", ".png", ".jpg"]
}
}
},
"parser": "babel-eslint",
"plugins": [
"react",
"prettier",
"compat",
"import",
"jsx-a11y",
"promise",
"react-hooks"
],
"rules": {
"prettier/prettier": "error",
"jsx-a11y/aria-role": "off",
"no-restricted-syntax": "off",
"no-unused-vars": "error",
"no-unused-expressions": "error",
"consistent-return": "off",
"jsx-a11y/no-static-element-interactions": "off",
"jsx-a11y/click-events-have-key-events": "off",
"no-underscore-dangle": "off",
"no-console": "off",
"no-use-before-define": "off",
"no-await-in-loop": "off",
"promise/param-names": "error",
"promise/always-return": "error",
"promise/catch-or-return": "error",
"promise/no-native": "off",
"react/sort-comp": [
"error",
{
"order": [
"type-annotations",
"static-methods",
"lifecycle",
"everything-else",
"render"
]
}
],
"react/jsx-no-bind": "off",
"react/jsx-filename-extension": "off",
"react/prop-types": "off",
"react/forbid-dom-props": [2, { "forbid": ["style"] }],
"import/no-anonymous-default-export": [
"error",
{
"allowArray": false,
"allowArrowFunction": false,
"allowAnonymousClass": false,
"allowAnonymousFunction": false,
"allowCallExpression": true,
"allowLiteral": false,
"allowObject": true
}
],
"react/jsx-pascal-case": [2, { "allowAllCaps": false }],
"react/prefer-stateless-function": "off",
"import/no-unresolved": "off",
"import/no-extraneous-dependencies": ["error", { "devDependencies": true }],
"jsx-a11y/anchor-is-valid": "off"
}
}
26 changes: 26 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
---
name: Bug report
about: Create a report to help us improve
title: ''
labels: ''
assignees: ''

---

**Describe the bug**
A clear and concise description of what the bug is.

**Launcher Version**
A clear and concise description of what the bug is.

**To Reproduce**
Steps to reproduce the behavior:
1. Go to '...'
2. Click on '....'
3. See error

**Expected behavior**
A clear and concise description of what you expected to happen.

**Screenshots**
If applicable, add screenshots to help explain your problem.
17 changes: 17 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
name: Feature request
about: Suggest an idea for this project
title: ''
labels: ''
assignees: ''

---

**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

**Describe the solution you'd like**
A clear and concise description of what you want to happen.

**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.
17 changes: 17 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
## Purpose
_Describe the problem or feature in addition to a link to the issues when possible._

## Approach
_How does this change address the problem?_

#### Open Questions and Pre-Merge TODOs
- [ ] Use github checklists. When solved, check the box and explain the answer.

## Learning
_Describe the research stage_

_Links to blog posts, patterns, libraries or addons used to solve this problem_

#### Blog Posts
- [A Complete Guide to useEffect](https://overreacted.io/a-complete-guide-to-useeffect/) Learn how to use useeffect.

99 changes: 99 additions & 0 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
name: rPLauncher Next CI

on:
push:
branches:
- master
- releases
- native-refactor
pull_request:
branches:
- master
- releases
jobs:
build:
runs-on: ${{ matrix.os }}

strategy:
matrix:
os: [macos-latest, windows-latest, ubuntu-latest]

steps:
- name: Context
env:
GITHUB_CONTEXT: ${{ toJson(github) }}
run: echo "$GITHUB_CONTEXT"
- uses: actions/checkout@v2
with:
fetch-depth: 1
- name: Use Node.js 14.16.0
uses: actions/setup-node@v1
with:
node-version: '14.16.0'

- name: npm run install
run: |
npm i
- name: npm run lint
run: |
npm run lint
- name: npm run release for windows
if: matrix.os == 'windows-latest' && github.event_name == 'push'
env:
CI: ''
TRAVIS_TAG: ''
APPVEYOR_REPO_TAG_NAME: ''
CIRCLE_TAG: ''
BITRISE_GIT_TAG: ''
CI_BUILD_TAG: ''
RELEASE_TESTING: false
CSC_KEY_PASSWORD: ${{ secrets.CSC_KEY_PASSWORD }}
CSC_LINK: ${{ secrets.CSC_LINK }}
run: |
npm run release
- name: npm run release for mac and linux
if: matrix.os != 'windows-latest' || github.event_name != 'push'
env:
CI: ''
TRAVIS_TAG: ''
APPVEYOR_REPO_TAG_NAME: ''
CIRCLE_TAG: ''
BITRISE_GIT_TAG: ''
CI_BUILD_TAG: ''
RELEASE_TESTING: false
run: |
npm run release
- name: upload release to gh releases
if: github.event_name == 'push' && github.ref == 'refs/heads/releases'
env:
GH_ACCESS_TOKEN_RELEASES: ${{ secrets.GH_ACCESS_TOKEN_RELEASES }}
run: |
npm run upload
- uses: actions/upload-artifact@v1
if: matrix.os == 'macos-latest'
with:
name: MacOs Release
path: deploy

- uses: actions/upload-artifact@v1
if: matrix.os == 'windows-latest'
with:
name: Windows Release
path: deploy

- uses: actions/upload-artifact@v1
if: matrix.os == 'ubuntu-latest'
with:
name: Linux Release
path: deploy

- uses: actions/setup-ruby@v1
- name: Send Webhook Notification
if: matrix.os == 'macos-latest'
env:
JOB_STATUS: ${{ job.status }}
WEBHOOK_URL: ${{ secrets.WEBHOOK_URL }}
run: |
git clone https://github.com/gorilla-devs/github-actions-discord-webhook.git webhook
bash webhook/send.sh $JOB_STATUS $WEBHOOK_URL
shell: bash
34 changes: 34 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
.pnp.js

# testing
/coverage

/data

# production
/build
/release
/deploy

# IDEs
.idea
*.iml
.eslintcache

# misc
.DS_Store
.env.local
.electron-builder.env
.env.development.local
.env.test.local
.env.production.local

npm-debug.log*
yarn-debug.log*
yarn-error.log*
signCertificate.pfx
1 change: 1 addition & 0 deletions .husky/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
_
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npm run lint --fix
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
engine-strict=true
16 changes: 16 additions & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"trailingComma": "none",
"endOfLine": "auto",
"tabWidth": 2,
"singleQuote": true,
"arrow-parens": "off",
"consistent-return": "off",
"comma-dangle": "off",
"no-underscore-dangle": "off",
"generator-star-spacing": "off",
"no-shadow": "off",
"no-console": "off",
"no-use-before-define": "off",
"no-multi-assign": "off",
"arrowParens": "avoid"
}
3 changes: 3 additions & 0 deletions .vs/ProjectSettings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"CurrentProjectSetting": null
}
Binary file added .vs/slnx.sqlite
Binary file not shown.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -671,4 +671,4 @@ into proprietary programs. If your program is a subroutine library, you
may consider it more useful to permit linking proprietary applications with
the library. If this is what you want to do, use the GNU Lesser General
Public License instead of this License. But first, please read
<https://www.gnu.org/licenses/why-not-lgpl.html>.
<https://www.gnu.org/licenses/why-not-lgpl.html>.
Loading

0 comments on commit 2e5c46a

Please sign in to comment.