mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 20:34:37 +03:00
[packaging] switch to pnpm (#6186)
* [packaging] switch to pnpm * Bump compiler version * Change pnpm store in docker build --------- Co-authored-by: feederbox826 <feederbox826@users.noreply.github.com> Co-authored-by: WithoutPants <53250216+WithoutPants@users.noreply.github.com>
This commit is contained in:
@@ -2,8 +2,8 @@
|
||||
|
||||
# dependencies
|
||||
/node_modules
|
||||
/.pnp
|
||||
.pnp.js
|
||||
pnpm-lock.yaml
|
||||
pnpm-workspace.yaml
|
||||
|
||||
# locales
|
||||
src/locales/**/*.json
|
||||
|
||||
@@ -4,7 +4,7 @@ This project was bootstrapped with [Create React App](https://github.com/faceboo
|
||||
|
||||
In the project directory, you can run:
|
||||
|
||||
### `yarn start`
|
||||
### `npm run start`
|
||||
|
||||
Runs the app in the development mode.<br />
|
||||
Open [http://localhost:3000](http://localhost:3000) to view it in the browser.
|
||||
@@ -12,12 +12,12 @@ Open [http://localhost:3000](http://localhost:3000) to view it in the browser.
|
||||
The page will reload if you make edits.<br />
|
||||
You will also see any lint errors in the console.
|
||||
|
||||
### `yarn test`
|
||||
### `npm run test`
|
||||
|
||||
Launches the test runner in the interactive watch mode.<br />
|
||||
See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.
|
||||
|
||||
### `yarn build`
|
||||
### `npm run build`
|
||||
|
||||
Builds the app for production to the `build` folder.<br />
|
||||
It correctly bundles React in production mode and optimizes the build for the best performance.
|
||||
@@ -27,13 +27,13 @@ Your app is ready to be deployed!
|
||||
|
||||
See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.
|
||||
|
||||
### `yarn format`
|
||||
### `npm run format`
|
||||
|
||||
Formats the whitespace of all typescript and scss code with prettier, to ease editing and ensure a common code style.
|
||||
|
||||
Should ideally be run before all frontend PRs.
|
||||
|
||||
### `yarn eject`
|
||||
### `npm run eject`
|
||||
|
||||
**Note: this is a one-way operation. Once you `eject`, you can’t go back!**
|
||||
|
||||
@@ -69,6 +69,6 @@ This section has moved here: https://facebook.github.io/create-react-app/docs/ad
|
||||
|
||||
This section has moved here: https://facebook.github.io/create-react-app/docs/deployment
|
||||
|
||||
### `yarn build` fails to minify
|
||||
### `npm run build` fails to minify
|
||||
|
||||
This section has moved here: https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify
|
||||
|
||||
@@ -6,9 +6,9 @@
|
||||
"scripts": {
|
||||
"start": "vite",
|
||||
"build": "vite build",
|
||||
"build-ci": "yarn run validate && yarn run build",
|
||||
"validate": "yarn run lint && yarn run check && yarn run format-check",
|
||||
"lint": "yarn run lint:js && yarn run lint:css",
|
||||
"build-ci": "npm run validate && npm run build",
|
||||
"validate": "npm run lint && npm run check && npm run format-check",
|
||||
"lint": "npm run lint:js && npm run lint:css",
|
||||
"lint:css": "stylelint --cache \"src/**/*.scss\"",
|
||||
"lint:js": "eslint --cache src/",
|
||||
"check": "tsc --noEmit",
|
||||
@@ -35,6 +35,7 @@
|
||||
"@react-hook/resize-observer": "^1.2.6",
|
||||
"@silvermine/videojs-airplay": "^1.2.0",
|
||||
"@silvermine/videojs-chromecast": "^1.4.1",
|
||||
"@types/react-router-dom": "^5.3.3",
|
||||
"apollo-upload-client": "^18.0.1",
|
||||
"base64-blob": "^1.4.1",
|
||||
"bootstrap": "^4.6.2",
|
||||
|
||||
11148
ui/v2.5/pnpm-lock.yaml
generated
Normal file
11148
ui/v2.5/pnpm-lock.yaml
generated
Normal file
File diff suppressed because it is too large
Load Diff
4
ui/v2.5/pnpm-workspace.yaml
Normal file
4
ui/v2.5/pnpm-workspace.yaml
Normal file
@@ -0,0 +1,4 @@
|
||||
onlyBuiltDependencies:
|
||||
- '@parcel/watcher'
|
||||
- core-js
|
||||
- esbuild
|
||||
@@ -1614,7 +1614,7 @@ export const mutateAddGalleryImages = (input: GQL.GalleryAddInput) =>
|
||||
});
|
||||
|
||||
function evictCover(cache: ApolloCache<GQL.Gallery>, gallery_id: string) {
|
||||
const fields: Pick<Modifiers<GQL.Gallery>, "paths" | "cover"> = {};
|
||||
const fields: Partial<Pick<Modifiers<GQL.Gallery>, "paths" | "cover">> = {};
|
||||
fields.paths = (paths) => {
|
||||
if (!("cover" in paths)) {
|
||||
return paths;
|
||||
|
||||
8344
ui/v2.5/yarn.lock
8344
ui/v2.5/yarn.lock
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user