mirror of
https://github.com/dec0dOS/zero-ui.git
synced 2024-09-20 06:56:05 +08:00
build(yarn): migrate to yarn v2
This commit is contained in:
parent
4772f59fe1
commit
9fd2daf31c
631
.yarn/releases/yarn-berry.cjs
vendored
Executable file
631
.yarn/releases/yarn-berry.cjs
vendored
Executable file
File diff suppressed because one or more lines are too long
2
.yarnrc.yml
Normal file
2
.yarnrc.yml
Normal file
|
@ -0,0 +1,2 @@
|
|||
yarnPath: ".yarn/releases/yarn-berry.cjs"
|
||||
nodeLinker: node-modules
|
|
@ -249,7 +249,7 @@ To set up a development environment, please follow these steps:
|
|||
```
|
||||
2. Install packages
|
||||
```sh
|
||||
yarn installDeps
|
||||
yarn install && yarn installDeps
|
||||
```
|
||||
3. Start the development server
|
||||
```sh
|
||||
|
|
1049
backend/yarn.lock
1049
backend/yarn.lock
File diff suppressed because it is too large
Load diff
|
@ -3,7 +3,7 @@ FROM node:current-alpine as build-stage
|
|||
ENV INLINE_RUNTIME_CHUNK=false
|
||||
ENV GENERATE_SOURCEMAP=false
|
||||
|
||||
RUN yarn config set registry https://registry.npmjs.org
|
||||
RUN yarn set version berry
|
||||
|
||||
WORKDIR /app/frontend
|
||||
COPY ./frontend/package*.json /app/frontend
|
||||
|
|
28141
frontend/yarn.lock
28141
frontend/yarn.lock
File diff suppressed because it is too large
Load diff
|
@ -1,10 +1,13 @@
|
|||
{
|
||||
"name": "zero-ui",
|
||||
"version": "1.0.15",
|
||||
"private": "true",
|
||||
"workspaces": [
|
||||
"backend",
|
||||
"frontend"
|
||||
],
|
||||
"scripts": {
|
||||
"postinstall": "husky install",
|
||||
"installDeps": "yarn install && cd frontend && yarn install && cd ../backend && yarn install",
|
||||
"installDeps": "cd frontend && yarn install && cd ../backend && yarn install",
|
||||
"upgradeDeps": "npx npm-check-updates --upgrade && yarn install && yarn upgrade && cd frontend && npx npm-check-updates --upgrade && yarn install && yarn upgrade && cd ../backend && npx npm-check-updates --upgrade && yarn install && yarn upgrade",
|
||||
"cleanDeps": "cd frontend && rimraf node_modules && cd ../backend && rimraf node_modules && cd .. && rimraf node_modules",
|
||||
"dev": "concurrently \"cd frontend && cross-env FAST_REFRESH=true yarn start\" \"cd backend && cross-env NODE_ENV=development ZU_DEFAULT_USERNAME=admin ZU_DEFAULT_PASSWORD=zero-ui nodemon ./bin/www --ignore data/db.json\"",
|
||||
|
|
Loading…
Reference in a new issue