mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-04-21 07:32:02 +00:00
Merge pull request #1008 from actuallylost/build/use-pnpm-instead-of-npm
build: replace npm with pnpm
This commit is contained in:
commit
4a9c0fe5b4
8 changed files with 11051 additions and 15579 deletions
18
.github/workflows/build.yml
vendored
18
.github/workflows/build.yml
vendored
|
|
@ -5,7 +5,7 @@ on:
|
||||||
branches:
|
branches:
|
||||||
- development
|
- development
|
||||||
tags-ignore:
|
tags-ignore:
|
||||||
- '**'
|
- "**"
|
||||||
pull_request:
|
pull_request:
|
||||||
branches:
|
branches:
|
||||||
- development
|
- development
|
||||||
|
|
@ -21,19 +21,25 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v5
|
uses: actions/checkout@v5
|
||||||
|
- name: Install pnpm
|
||||||
|
uses: pnpm/action-setup@v4
|
||||||
|
with:
|
||||||
|
version: 10
|
||||||
|
run_install: false
|
||||||
- name: Setup node
|
- name: Setup node
|
||||||
uses: actions/setup-node@v5
|
uses: actions/setup-node@v5
|
||||||
with:
|
with:
|
||||||
node-version-file: .nvmrc
|
node-version-file: .nvmrc
|
||||||
|
cache: "pnpm"
|
||||||
- name: Install NPM dependencies
|
- name: Install NPM dependencies
|
||||||
run: npm ci
|
run: pnpm install
|
||||||
- name: Build
|
- name: Build
|
||||||
run: npm run build
|
run: pnpm build
|
||||||
- name: Test
|
- name: Test
|
||||||
run: npm test
|
run: pnpm test
|
||||||
- name: Lint
|
- name: Lint
|
||||||
run: npm run lint
|
run: pnpm lint
|
||||||
# Create recursivelly the destiantion dir with
|
# Create recursively the destination dir with
|
||||||
# "--parrents where no error if existing, make parent directories as needed."
|
# "--parrents where no error if existing, make parent directories as needed."
|
||||||
- run: mkdir -p ./build/${{ github.head_ref || github.ref_name }}
|
- run: mkdir -p ./build/${{ github.head_ref || github.ref_name }}
|
||||||
- name: Deploy to GitHub Pages
|
- name: Deploy to GitHub Pages
|
||||||
|
|
|
||||||
6
.github/workflows/release.yml
vendored
6
.github/workflows/release.yml
vendored
|
|
@ -11,11 +11,11 @@ jobs:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v5
|
uses: actions/checkout@v5
|
||||||
- name: Install NPM dependencies
|
- name: Install NPM dependencies
|
||||||
run: npm install
|
run: pnpm install
|
||||||
- name: Build
|
- name: Build
|
||||||
env:
|
env:
|
||||||
SENTRY_DSN: ${{ secrets.SENTRY_DSN }}
|
SENTRY_DSN: ${{ secrets.SENTRY_DSN }}
|
||||||
run: npm run build
|
run: pnpm build
|
||||||
- name: Zip build artifact
|
- name: Zip build artifact
|
||||||
run: zip -r stremio-web.zip ./build
|
run: zip -r stremio-web.zip ./build
|
||||||
- name: Upload build artifact to GitHub release assets
|
- name: Upload build artifact to GitHub release assets
|
||||||
|
|
@ -25,4 +25,4 @@ jobs:
|
||||||
file: stremio-web.zip
|
file: stremio-web.zip
|
||||||
asset_name: stremio-web.zip
|
asset_name: stremio-web.zip
|
||||||
tag: ${{ github.ref }}
|
tag: ${{ github.ref }}
|
||||||
overwrite: true
|
overwrite: true
|
||||||
|
|
|
||||||
|
|
@ -82,7 +82,7 @@ export default [
|
||||||
'@stylistic/semi-spacing': 'error',
|
'@stylistic/semi-spacing': 'error',
|
||||||
'@stylistic/space-before-blocks': 'error',
|
'@stylistic/space-before-blocks': 'error',
|
||||||
'@stylistic/no-trailing-spaces': 'error',
|
'@stylistic/no-trailing-spaces': 'error',
|
||||||
'@stylistic/func-call-spacing': 'error',
|
'@stylistic/function-call-spacing': 'error',
|
||||||
'@stylistic/semi': 'error',
|
'@stylistic/semi': 'error',
|
||||||
'@stylistic/no-extra-semi': 'error',
|
'@stylistic/no-extra-semi': 'error',
|
||||||
'@stylistic/eol-last': 'error',
|
'@stylistic/eol-last': 'error',
|
||||||
|
|
|
||||||
15562
package-lock.json
generated
15562
package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
|
@ -11,7 +11,7 @@
|
||||||
"build": "webpack --mode production",
|
"build": "webpack --mode production",
|
||||||
"test": "jest",
|
"test": "jest",
|
||||||
"lint": "eslint src",
|
"lint": "eslint src",
|
||||||
"scan-translations": "npx jest ./tests/i18nScan.test.js"
|
"scan-translations": "pnpx jest ./tests/i18nScan.test.js"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/runtime": "7.26.0",
|
"@babel/runtime": "7.26.0",
|
||||||
|
|
@ -50,8 +50,8 @@
|
||||||
"@babel/preset-env": "7.26.0",
|
"@babel/preset-env": "7.26.0",
|
||||||
"@babel/preset-react": "7.26.3",
|
"@babel/preset-react": "7.26.3",
|
||||||
"@eslint/js": "^9.16.0",
|
"@eslint/js": "^9.16.0",
|
||||||
"@stylistic/eslint-plugin": "^2.11.0",
|
"@stylistic/eslint-plugin": "^5.4.0",
|
||||||
"@stylistic/eslint-plugin-jsx": "^2.11.0",
|
"@stylistic/eslint-plugin-jsx": "^4.4.1",
|
||||||
"@types/hat": "^0.0.4",
|
"@types/hat": "^0.0.4",
|
||||||
"@types/lodash.isequal": "^4.5.8",
|
"@types/lodash.isequal": "^4.5.8",
|
||||||
"@types/lodash.throttle": "^4.1.9",
|
"@types/lodash.throttle": "^4.1.9",
|
||||||
|
|
|
||||||
11030
pnpm-lock.yaml
Normal file
11030
pnpm-lock.yaml
Normal file
File diff suppressed because it is too large
Load diff
4
src/types/global.d.ts
vendored
4
src/types/global.d.ts
vendored
|
|
@ -1,5 +1,3 @@
|
||||||
/* eslint-disable no-var */
|
|
||||||
|
|
||||||
type QtTransportMessage = {
|
type QtTransportMessage = {
|
||||||
data: string;
|
data: string;
|
||||||
};
|
};
|
||||||
|
|
@ -28,4 +26,4 @@ declare global {
|
||||||
var chrome: Chrome | undefined;
|
var chrome: Chrome | undefined;
|
||||||
}
|
}
|
||||||
|
|
||||||
export {};
|
export { };
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"lib": ["DOM", "DOM.Iterable"],
|
"lib": [ "ES2016", "DOM", "DOM.Iterable"],
|
||||||
"jsx": "react",
|
"jsx": "react",
|
||||||
"baseUrl": "./src",
|
"baseUrl": "./src",
|
||||||
"outDir": "./dist",
|
"outDir": "./dist",
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue