Skip to content

Commit

Permalink
refactor thebeast into the new pnpm packages dir (#1772)
Browse files Browse the repository at this point in the history
* Starting with a clean base

* Move data and services to top level

* Move remaining packages into the pnpm packages dir

* Remove slonik from being a global object

* Move primary app into package tree

* Move remaining packages to tree, swap exports of shared to named imports

* Remove deprecated package

* Update Codecov flag mappings

* Remove v18 from test matrix

* Combine imports

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

* Revert "Combine imports"

This reverts commit 94963d4.

* Combine imports

* Swap exports of database to named imports

* Remove direct external access to Database class

* Remove Database class

* Add comments

* Remove redundant error reporting

* Correct logical check

* Remove redundant error reporting

* Formatting

* Combine imports

* Combine imports

* Formatting and logging updates

* Since the function is supposed to create a missing record, remove throw

* Combine imports

* Cleanup test

* Combine imports

* Combine imports

* Mock logger

* Combine imports

* Update imports in _getCompleteVehicleInfo.ts

* Remove unused code in UserAction class

* Remove unused import in MiniRiffList.ts

* Remove unused import statements and update async functions

* Update version number in package.json

---------

Co-authored-by: Molly Draven <[email protected]>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
  • Loading branch information
drazisil and coderabbitai[bot] authored Mar 3, 2024
2 parents b20c5e2 + 2d15f48 commit d1dbf18
Show file tree
Hide file tree
Showing 227 changed files with 17,271 additions and 24,846 deletions.
6 changes: 0 additions & 6 deletions .gitattributes

This file was deleted.

30 changes: 15 additions & 15 deletions .github/codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,62 +2,62 @@ codecov:
require_ci_to_pass: false

ai_pr_review:
enabled: true
enabled: true

comment:
show_carryforward_flags: true

flags:
database:
paths:
- thebeast/packages/database/**
- packages/database/**
carryforward: true
gateway:
paths:
- thebeast/packages/gateway/**
- packages/gateway/**
carryforward: true
lobby:
paths:
- thebeast/packages/lobby/**
- packages/lobby/**
carryforward: true
login:
paths:
- thebeast/packages/login/**
- packages/login/**
carryforward: true
patch:
paths:
- thebeast/packages/patch/**
- packages/patch/**
carryforward: true
persona:
paths:
- thebeast/packages/persona/**
- packages/persona/**
carryforward: true
shard:
paths:
- thebeast/packages/shard/**
- packages/shard/**
carryforward: true
shared:
paths:
- thebeast/packages/shared/**
- packages/shared/**
carryforward: true
transactions:
paths:
- thebeast/packages/transactions/**
- packages/transactions/**
carryforward: true
interfaces:
paths:
- thebeast/packages/interfaces/**
- packages/interfaces/**
carryforward: false
core:
paths:
- thebeast/packages/core/**
- packages/core/**
carryforward: true

component_management:
individual_components:
- component_id: components_team1
name: Team 1
paths:
- thebeast/packages/core/**
- thebeast/packages/gateway/**
- thebeast/packages/shared/**
- packages/core/**
- packages/gateway/**
- packages/shared/**
43 changes: 21 additions & 22 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,29 +1,28 @@
name: Sentry Release

on:
push:
branches:
- main
push:
branches:
- main

jobs:
release-sentry:
runs-on: ubuntu-latest
steps:
release-sentry:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install and Build
run: |
npm install
- name: Install and Build
run: |
npm install
- name: Create Sentry release
uses: getsentry/action-release@v1
env:
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
SENTRY_ORG: ${{ secrets.SENTRY_ORG }}
SENTRY_PROJECT: ${{ secrets.SENTRY_PROJECT }}
# SENTRY_URL: https://sentry.io/
with:
environment: production
- name: Create Sentry release
uses: getsentry/action-release@v1
env:
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
SENTRY_ORG: ${{ secrets.SENTRY_ORG }}
SENTRY_PROJECT: ${{ secrets.SENTRY_PROJECT }}
# SENTRY_URL: https://sentry.io/
with:
environment: production
14 changes: 7 additions & 7 deletions .github/workflows/node.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,18 @@ on:

env:
MCO_LOG_LEVEL: warn
EXTERNAL_HOST: mcouniverse.com
PRIVATE_KEY_FILE: thebeast/data/private_key.pem
CERTIFICATE_FILE: thebeast/data/mcouniverse.crt
PUBLIC_KEY_FILE: thebeast/data/pub.key
EXTERNAL_HOST: mcouniverse.com
PRIVATE_KEY_FILE: thebeast/data/private_key.pem
CERTIFICATE_FILE: thebeast/data/mcouniverse.crt
PUBLIC_KEY_FILE: thebeast/data/pub.key

jobs:
build-test:
build-test:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [18.x, 20.x, 21.x]
node-version: [20.x, 21.x]

steps:
- uses: actions/checkout@v4
Expand All @@ -31,7 +31,7 @@ jobs:
run: |
corepack enable pnpm
pnpm install
pnpm test --filter thebeast
pnpm test
- name: Codecov
if: ${{ always() }}
env:
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,4 @@ dist
build
*.tar
packages/**/*.js
package-lock.json
Loading

0 comments on commit d1dbf18

Please sign in to comment.