Skip to content

Commit

Permalink
clean commit
Browse files Browse the repository at this point in the history
  • Loading branch information
blarfoon committed Jul 4, 2022
0 parents commit 8ec97ba
Show file tree
Hide file tree
Showing 214 changed files with 86,653 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
SKIP_PREFLIGHT_CHECK=true
ESLINT_NO_DEV_ERRORS=true
DISABLE_ESLINT_PLUGIN=true
SKIP_PREFLIGHT_CHECK=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*
92 changes: 92 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
{
"env": {
"browser": true,
"es6": true,
"node": true
},
"root": 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-continue": "off",
"no-use-before-define": "off",
"no-await-in-loop": "off",
"default-param-last": "off",
"no-promise-executor-return": "off",
"import/no-import-module-exports": "off",
"react/destructuring-assignment": "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/function-component-definition": "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"
}
}
34 changes: 34 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
---
name: Bug report
about: Create a report to help us improve

---

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

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

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

**Possible solutions**
Some ideas of how you would solve this issue, if possible

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Operating System:**
- OS: [e.g. Windows]
- Version: [e.g. 10]
- Java Version: [e.g. 8/16]
- Minecraft Version: [e.g. 1.16.5]
- Mod Loader: [e.g. Forge/Fabric]

**Additional context**
Add any other context about the problem here.
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

---

**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.

**Additional context**
Add any other context or screenshots about the feature request here.
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.

127 changes: 127 additions & 0 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,127 @@
name: GDLauncher 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 16.13.1
uses: actions/setup-node@v1
with:
node-version: '16.13.1'


- name: Install Nightly
run: |
rustup toolchain install nightly
- name: Install rust (Windows)
if: matrix.os == 'windows-latest'
run: |
rustup target add x86_64-pc-windows-msvc --toolchain nightly
- name: Install rust (MacOS)
if: matrix.os == 'macos-latest'
run: |
rustup target add aarch64-apple-darwin --toolchain nightly
- name: Install rust (Linux)
if: matrix.os == 'ubuntu-latest'
run: |
rustup target add x86_64-unknown-linux-gnu --toolchain nightly
- name: Switch rust to nightly
run: |
rustup default nightly
- 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: ''
GITHUB_ACTIONS: ''
CI_BUILD_TAG: ''
SENTRY_DSN: "${{ github.ref == 'refs/heads/releases' && secrets.SENTRY_DSN || '' }}"
SOURCE_MAPS_UPLOAD: "${{ github.ref == 'refs/heads/releases' && secrets.SENTRY_UPLOAD_SOURCE_MAPS_URL || '' }}"
SENTRY_AUTH: "${{ github.ref == 'refs/heads/releases' && secrets.SENTRY_AUTH || '' }}"
REACT_CF_API_KEY: "${{ secrets.CF_API_KEY }}"
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: ''
GITHUB_ACTIONS: ''
BITRISE_GIT_TAG: ''
CI_BUILD_TAG: ''
SENTRY_DSN: "${{ github.ref == 'refs/heads/releases' && secrets.SENTRY_DSN || '' }}"
SOURCE_MAPS_UPLOAD: "${{ github.ref == 'refs/heads/releases' && secrets.SENTRY_UPLOAD_SOURCE_MAPS_URL || '' }}"
SENTRY_AUTH: "${{ github.ref == 'refs/heads/releases' && secrets.SENTRY_AUTH || '' }}"
REACT_CF_API_KEY: "${{ secrets.CF_API_KEY }}"
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
44 changes: 44 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# 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
/public/native/*/index.d.ts

# rust target
/target
/napi/target
/public/napi.node
/napi/napi.node
/napi/node_modules
/napi/index.d.ts

# IDEs
.idea
*.iml
.eslintcache

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

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"
}
Loading

0 comments on commit 8ec97ba

Please sign in to comment.