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

⬆️ Upgrade deps #66

Draft
wants to merge 38 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
dd2d5a0
⏪ Fix prettier mishap
coyotte508 Jul 4, 2023
018d9be
⬆️ Upgrade pnpm
coyotte508 Nov 26, 2023
05bbec0
⬆️ Upgrade packages
coyotte508 Nov 26, 2023
b72300e
🚨 Updated prettier
coyotte508 Nov 26, 2023
6c2f749
⬆️ Upgrade more stuff
coyotte508 Nov 26, 2023
d8a503d
♻️ Homogenize prettier command
coyotte508 Nov 26, 2023
f3b736b
⬆️ upgrade CI deps
coyotte508 Nov 26, 2023
e182626
✨ Add packagemanager fields
coyotte508 Nov 26, 2023
b1b2a44
⬆️ Upgrade deps for docs
coyotte508 Nov 26, 2023
648463d
💚 Fix prettier job?
coyotte508 Nov 26, 2023
283dade
💚 Avoid 2 prettier jobs
coyotte508 Nov 26, 2023
3b8af05
♻️ More tooling stuff
coyotte508 Nov 26, 2023
f38d431
➖ Remove chai-as-promised
coyotte508 Nov 26, 2023
ef18260
🏷️ Fix types for api
coyotte508 Nov 26, 2023
383f495
🏷️ Fix types for game-server
coyotte508 Nov 26, 2023
3e5a57f
🚨 prettier
coyotte508 Nov 26, 2023
d283cdd
💚 Install more stuf fin check jobs
coyotte508 Nov 26, 2023
139aafd
⚗️ try steting pnpm path
coyotte508 Nov 26, 2023
732a33c
⬆️
coyotte508 Nov 26, 2023
5dfa77a
🚨 CI mods
coyotte508 Nov 26, 2023
5c6514f
💚 Fix CI for utils
coyotte508 Nov 26, 2023
8f9b8cc
➖ remove mocha + chai
coyotte508 Nov 26, 2023
07ef2e6
🔥 Remove chai refs
coyotte508 Nov 26, 2023
82128f2
🚧 conversion to vitest
coyotte508 Nov 26, 2023
189caf9
🚧 testing woes
coyotte508 Nov 26, 2023
b7cc152
🚧 Start getting rid of mongoose
coyotte508 Apr 27, 2024
c0f85a1
🔧 Fix module resolution
coyotte508 Apr 27, 2024
1223120
✨ Better env management
coyotte508 Apr 28, 2024
31b9f38
♻️ Remove mongoose from ChatMessage
coyotte508 Apr 28, 2024
fe4bd5e
🚧 Converting game model...
coyotte508 May 1, 2024
c7b5f58
🚧 On GameNotification
coyotte508 May 1, 2024
f210dfb
🚧 Progress on User
coyotte508 May 1, 2024
bbee27b
🏷️ Add SocialProvider type
coyotte508 May 1, 2024
a178504
🚧
coyotte508 May 1, 2024
8edcc9b
🚧
coyotte508 May 4, 2024
0329afb
🏗️ Better package structure
coyotte508 Sep 29, 2024
9baf94e
🩹 Fix @bgs/utils import
coyotte508 Sep 29, 2024
727aa3f
🚧 Update users
coyotte508 Sep 29, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 49 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
module.exports = {
extends: ["eslint:recommended", "plugin:@typescript-eslint/recommended", "plugin:svelte/recommended", "prettier"],
parser: "@typescript-eslint/parser",
plugins: ["@typescript-eslint", "prettier"],
root: true,
env: {
browser: true,
es2017: true,
node: true,
},
parserOptions: {
sourceType: "module",
ecmaVersion: 2020,
extraFileExtensions: [".svelte"],
},
rules: {
"no-constant-condition": "off",
"@typescript-eslint/no-namespace": "off",
"@typescript-eslint/no-empty-function": "off",
"@typescript-eslint/explicit-module-boundary-types": "error",
"@typescript-eslint/consistent-type-imports": "error",
"@typescript-eslint/no-unused-vars": [
"error",
{
args: "all",
argsIgnorePattern: "^_",
caughtErrors: "all",
caughtErrorsIgnorePattern: "^_",
destructuredArrayIgnorePattern: "^_",
varsIgnorePattern: "^_",
ignoreRestSiblings: true,
},
],
// "@typescript-eslint/no-non-null-assertion": "error",
"@typescript-eslint/no-explicit-any": "error",
"@typescript-eslint/no-empty-interfaces": "off",
// For doc purposes, prefer interfaces
"@typescript-eslint/consistent-type-definitions": ["error", "interface"],
},
overrides: [
{
files: ["*.svelte"],
parser: "svelte-eslint-parser",
parserOptions: {
parser: "@typescript-eslint/parser",
},
},
],
};
16 changes: 10 additions & 6 deletions .github/workflows/all.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,18 @@
name: All
on: [pull_request, push]
on:
pull_request:
push:
branches:
- master

jobs:
prettier:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '16'
node-version: '20'
- run: corepack enable
- run: pnpm install
- run: pnpm run prettier-check
- run: pnpm --filter root install
- run: pnpm run format:check
13 changes: 6 additions & 7 deletions .github/workflows/api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,20 +21,19 @@ jobs:
lint_and_test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '16'
node-version: '20'

- name: Start MongoDB
uses: supercharge/[email protected]
with:
mongodb-version: 4.4

- run: corepack enable
- run: pnpm install --filter {./}...
- run: pnpm --filter root install
- run: pnpm --filter api... install
- run: pnpm run lint-check
- run: pnpm install --filter "@bgs/models"
- run: pnpm install --filter "@bgs/utils"
- run: pnpm run tsc
- run: pnpm run type-check
- run: pnpm run test
6 changes: 3 additions & 3 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '16'
node-version: '20'
- run: corepack enable
- run: echo "${{ secrets.GIT_PAGES_PRIVATEKEY }}" > ~/key
- run: chmod 600 ~/key
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/game-server.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@ jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '16'
node-version: '20'
- run: corepack enable
- run: pnpm install --filter {./}...
- run: pnpm --filter root install
- run: pnpm --filter game-server... install
- run: pnpm run lint-check
- run: pnpm install --filter "@bgs/models"
- run: pnpm run tsc
- run: pnpm run type-check
9 changes: 5 additions & 4 deletions .github/workflows/utils.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,11 @@ jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '16'
node-version: '20'
- run: corepack enable
- run: pnpm install --filter {./}...
- run: pnpm --filter root install
- run: pnpm --filter utils... install
- run: pnpm test
1 change: 0 additions & 1 deletion .prettierrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{
"pluginSearchDirs": ["."],
"printWidth": 120,
"tabWidth": 2,
"trailingComma": "es5",
Expand Down
5 changes: 4 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
{
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true,
"editor.tabSize": 2
"editor.tabSize": 2,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": "always"
}
}
34 changes: 0 additions & 34 deletions apps/admin/.eslintrc.js

This file was deleted.

2 changes: 1 addition & 1 deletion apps/admin/index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
Expand Down
2 changes: 1 addition & 1 deletion apps/admin/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "@bgs/admin",
"version": "0.1.0",
"packageManager": "[email protected]",
"private": true,
"license": "AGPL-3.0",
"scripts": {
Expand Down Expand Up @@ -44,7 +45,6 @@
"pnpm": "^6.14.5",
"sass": "^1.39.0",
"type-fest": "^2.1.0",
"typescript": "^4.4.2",
"unplugin-auto-import": "^0.2.6",
"unplugin-icons": "^0.7.3",
"unplugin-vue-components": "^0.14.5",
Expand Down
Loading
Loading