build(yarn): migrate to yarn v2

This commit is contained in:
dec0dOS 2021-08-24 14:13:09 +03:00
parent 4772f59fe1
commit 9fd2daf31c
8 changed files with 36057 additions and 15561 deletions

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
View file

@ -0,0 +1,2 @@
yarnPath: ".yarn/releases/yarn-berry.cjs"
nodeLinker: node-modules

View file

@ -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

File diff suppressed because it is too large Load diff

View file

@ -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

File diff suppressed because it is too large Load diff

View file

@ -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\"",

21784
yarn.lock

File diff suppressed because it is too large Load diff