Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Tech] Switch from react-scripts to Vite & clean up everything to work with strict mode #1633

Merged
merged 26 commits into from
Aug 25, 2022
Merged
Show file tree
Hide file tree
Changes from 13 commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
8274b94
Change complete project structure
CommandMC Jul 26, 2022
25775ee
Switch from react-scripts + foreman + webpack + ts-loader -> Vite
CommandMC Jul 26, 2022
763ac97
Set GH_TOKEN and GITHUB_TOKEN in tests directly
CommandMC Jul 26, 2022
1257174
Merge branch 'beta' into feat/vite
CommandMC Jul 26, 2022
bb1f3d9
Merge branch 'beta' into feat/vite
CommandMC Jul 26, 2022
54875e4
Get SVG & JPG importing working in VSCode
CommandMC Jul 28, 2022
24a4ff8
Merge branch 'beta' into feat/vite
CommandMC Jul 28, 2022
22903b1
Move type definitions into common/typedefs
CommandMC Jul 31, 2022
9e2e73f
Fixup tests
CommandMC Jul 31, 2022
2d7f54b
Rewrite large chunks of the backend to be compatible with strict mode
CommandMC Jul 31, 2022
95b574d
Modify frontend to reflect changes to type definition structure
CommandMC Jul 31, 2022
caef5c8
Remove unused files
CommandMC Jul 31, 2022
fe993b4
Merge branch 'beta' into feat/vite
CommandMC Jul 31, 2022
4cc2ee5
Merge branch 'beta' into feat/vite
CommandMC Aug 3, 2022
15ea70c
Update translations
CommandMC Aug 3, 2022
cc85b00
Fixup: Re-add `--filesystem` parameter for Proton
CommandMC Aug 5, 2022
d5202a4
Remove `build` script
CommandMC Aug 8, 2022
9b66e65
Fully remove all remnants of UE support
CommandMC Aug 8, 2022
2ef1c57
Merge branch 'beta' into feat/vite
CommandMC Aug 21, 2022
647a20d
Add new 'codecheck' command
CommandMC Aug 21, 2022
19781eb
Update translation files
CommandMC Aug 21, 2022
67c0de7
Fix translation files
CommandMC Aug 21, 2022
d428185
Remove some more unnecessary files
CommandMC Aug 21, 2022
8754058
Always get game updates from all libraries
CommandMC Aug 22, 2022
d0d3843
Some misc code style changes
CommandMC Aug 22, 2022
0fcb3b7
Merge branch 'beta' into feat/vite
CommandMC Aug 23, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion .eslintignore
@@ -1,5 +1,5 @@
public/start-react.js
i18next-parser.config.js
flatpak/build/
flatpak/.flatpak-builder/
vite.config.ts
**/__tests__/**
3 changes: 2 additions & 1 deletion .eslintrc
Expand Up @@ -18,7 +18,7 @@
},
"ecmaVersion": 12,
"sourceType": "module",
"project": ["./tsconfig.json", "./electron/tsconfig.json"]
"project": ["./tsconfig.json"]
},
"plugins": ["react", "@typescript-eslint"],
"settings": {
Expand All @@ -27,6 +27,7 @@
}
},
"rules": {
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/no-explicit-any": "error",
"@typescript-eslint/no-unused-vars": "error",
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/build-prs-linux.yml
Expand Up @@ -23,6 +23,9 @@ jobs:
run: yarn
- name: Build artifacts.
run: yarn dist appimage --publish=never
env:
GITHUB_TOKEN: ${{ secrets.WORKFLOW_TOKEN }}
GH_TOKEN: ${{ secrets.WORKFLOW_TOKEN }}
- name: Upload AppImage.
uses: actions/upload-artifact@v2
with:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/build-prs-mac.yml
Expand Up @@ -23,6 +23,9 @@ jobs:
run: yarn
- name: Build artifacts.
run: yarn dist-mac --publish=never
env:
GITHUB_TOKEN: ${{ secrets.WORKFLOW_TOKEN }}
GH_TOKEN: ${{ secrets.WORKFLOW_TOKEN }}
- name: Upload DMG.
uses: actions/upload-artifact@v2
with:
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/build-prs-windows.yml
Expand Up @@ -22,7 +22,10 @@ jobs:
- name: Install modules.
run: npm i --legacy-peer-deps
- name: Build artifacts.
run: npm run dist-win portable
run: npm run dist-win portable --publish=never
env:
GITHUB_TOKEN: ${{ secrets.WORKFLOW_TOKEN }}
GH_TOKEN: ${{ secrets.WORKFLOW_TOKEN }}
- name: Upload EXE.
uses: actions/upload-artifact@v2
with:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/draft-release-linux.yml
Expand Up @@ -20,3 +20,4 @@ jobs:
- run: npm run release:linux
env:
GITHUB_TOKEN: ${{ secrets.WORKFLOW_TOKEN }}
GH_TOKEN: ${{ secrets.WORKFLOW_TOKEN }}
1 change: 1 addition & 0 deletions .github/workflows/draft-release-mac.yml
Expand Up @@ -19,3 +19,4 @@ jobs:
- run: npm run release:mac
env:
GITHUB_TOKEN: ${{ secrets.WORKFLOW_TOKEN }}
GH_TOKEN: ${{ secrets.WORKFLOW_TOKEN }}
1 change: 1 addition & 0 deletions .github/workflows/draft-release-win.yml
Expand Up @@ -20,3 +20,4 @@ jobs:
- run: npm run release:win
env:
GITHUB_TOKEN: ${{ secrets.WORKFLOW_TOKEN }}
GH_TOKEN: ${{ secrets.WORKFLOW_TOKEN }}
2 changes: 2 additions & 0 deletions .gitignore
Expand Up @@ -33,3 +33,5 @@ downloads*.json

flatpak/build
.flatpak-builder

vite-plugin-electron.log
1 change: 0 additions & 1 deletion .prettierignore
Expand Up @@ -2,6 +2,5 @@ node_modules
dist
build
coverage
public/index.html
public/locales/
flatpak
2 changes: 0 additions & 2 deletions Procfile

This file was deleted.