build: migrate workflow and npm scripts to use pnpm; add pnpm-lock; add es2016 tsconfig lib

This commit is contained in:
actuallylost 2025-09-27 15:33:31 +03:00
parent 90f834e893
commit f3a14403de
No known key found for this signature in database
GPG key ID: 8A8DE205A268EF2C
6 changed files with 11049 additions and 15573 deletions

View file

@ -5,7 +5,7 @@ on:
branches:
- development
tags-ignore:
- '**'
- "**"
pull_request:
branches:
- development
@ -21,19 +21,25 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v5
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 10
run_install: false
- name: Setup node
uses: actions/setup-node@v5
with:
node-version-file: .nvmrc
cache: "pnpm"
- name: Install NPM dependencies
run: npm ci
run: pnpm install
- name: Build
run: npm run build
run: pnpm build
- name: Test
run: npm test
run: pnpm test
- name: Lint
run: npm run lint
# Create recursivelly the destiantion dir with
run: pnpm lint
# Create recursively the destination dir with
# "--parrents where no error if existing, make parent directories as needed."
- run: mkdir -p ./build/${{ github.head_ref || github.ref_name }}
- name: Deploy to GitHub Pages

View file

@ -11,11 +11,11 @@ jobs:
- name: Checkout
uses: actions/checkout@v5
- name: Install NPM dependencies
run: npm install
run: pnpm install
- name: Build
env:
SENTRY_DSN: ${{ secrets.SENTRY_DSN }}
run: npm run build
run: pnpm build
- name: Zip build artifact
run: zip -r stremio-web.zip ./build
- name: Upload build artifact to GitHub release assets
@ -25,4 +25,4 @@ jobs:
file: stremio-web.zip
asset_name: stremio-web.zip
tag: ${{ github.ref }}
overwrite: true
overwrite: true

15562
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -11,7 +11,7 @@
"build": "webpack --mode production",
"test": "jest",
"lint": "eslint src",
"scan-translations": "npx jest ./tests/i18nScan.test.js"
"scan-translations": "pnpx jest ./tests/i18nScan.test.js"
},
"dependencies": {
"@babel/runtime": "7.26.0",

11032
pnpm-lock.yaml Normal file

File diff suppressed because it is too large Load diff

View file

@ -1,6 +1,6 @@
{
"compilerOptions": {
"lib": ["DOM", "DOM.Iterable"],
"lib": [ "ES2016", "DOM", "DOM.Iterable"],
"jsx": "react",
"baseUrl": "./src",
"outDir": "./dist",