Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
26 changes: 10 additions & 16 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,23 +11,17 @@ jobs:

steps:
- uses: actions/checkout@v6
- name: Install pnpm
uses: pnpm/action-setup@8912a9102ac27614460f54aedde9e1e7f9aec20d # v6.0.5
with:
version: 11
- name: Install Node.js
uses: actions/setup-node@v6
with:
node-version: '24'
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn config get cacheFolder)"
- uses: actions/cache@v5
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Install Dependencies
if: steps.cache.outputs.cache-hit != 'true'
run: yarn
- run: yarn eslint .
- run: yarn run tsc:ci
- run: yarn test
cache: "pnpm"
- name: Install dependencies
run: pnpm install
- run: pnpm eslint .
- run: pnpm run tsc:ci
- run: pnpm test
15 changes: 0 additions & 15 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# Runtime data
pids
Expand Down Expand Up @@ -51,9 +49,6 @@ typings/
# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

# dotenv environment variables file
.env

Expand All @@ -66,13 +61,3 @@ nbproject
!jest-mongodb-config.js
!jest.config.js
!ecosystem.config.js

# yarn 3

.pnp.*
.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions
5 changes: 2 additions & 3 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
{
"eslint.packageManager": "yarn",
"eslint.validate": [
"javascript",
"javascriptreact",
{ "language": "typescript", "autoFix": true },
{ "language": "typescriptreact", "autoFix": true }
"typescript",
"typescriptreact"
]
}
940 changes: 0 additions & 940 deletions .yarn/releases/yarn-4.13.0.cjs

This file was deleted.

7 changes: 0 additions & 7 deletions .yarnrc.yml

This file was deleted.

14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,22 +14,22 @@ You can run `nvm use` and `yvm use` from the project root if you have [Node vers

### Commands

#### `yarn watch`
Watches for changes to TypeScript files and compiles them to JavaScript (use `yarn run build` to do it manually)
#### `pnpm watch`
Watches for changes to TypeScript files and compiles them to JavaScript (use `pnpm run build` to do it manually)

#### `yarn dev`
#### `pnpm dev`
Runs the development server and restarts it when any file is changed

#### `yarn dev:cron`
#### `pnpm dev:cron`
Runs the cron job feature using ts-node

#### `yarn start`
#### `pnpm start`
Runs the server

#### `yarn test`
#### `pnpm test`
Runs the test suite

#### `yarn run start:prod`
#### `pnpm run start:prod`
Starts the API and cron job in production mode. TypeScript files are compiled in memory on application start.

## Logs
Expand Down
6 changes: 2 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
"version": "0.0.0",
"private": true,
"engines": {
"node": "24",
"yarn": ">=1.22.10"
"node": "24"
},
"scripts": {
"dev": "DEBUG=\"*universalmediaserver-api:server\" nodemon",
Expand Down Expand Up @@ -53,6 +52,5 @@
"stoppable": "1.1.0",
"ts-jest": "29.4.11",
"typescript-eslint": "^8.6.0"
},
"packageManager": "yarn@4.13.0"
}
}
Loading