mirror of
https://github.com/dec0dOS/zero-ui.git
synced 2025-07-07 05:21:40 -07:00
build(yarn): migrate to yarn v2
This commit is contained in:
parent
4772f59fe1
commit
9fd2daf31c
8 changed files with 36057 additions and 15561 deletions
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
|
2. Install packages
|
||||||
```sh
|
```sh
|
||||||
yarn installDeps
|
yarn install && yarn installDeps
|
||||||
```
|
```
|
||||||
3. Start the development server
|
3. Start the development server
|
||||||
```sh
|
```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 INLINE_RUNTIME_CHUNK=false
|
||||||
ENV GENERATE_SOURCEMAP=false
|
ENV GENERATE_SOURCEMAP=false
|
||||||
|
|
||||||
RUN yarn config set registry https://registry.npmjs.org
|
RUN yarn set version berry
|
||||||
|
|
||||||
WORKDIR /app/frontend
|
WORKDIR /app/frontend
|
||||||
COPY ./frontend/package*.json /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",
|
"name": "zero-ui",
|
||||||
"version": "1.0.15",
|
"version": "1.0.15",
|
||||||
"private": "true",
|
"workspaces": [
|
||||||
|
"backend",
|
||||||
|
"frontend"
|
||||||
|
],
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"postinstall": "husky install",
|
"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",
|
"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",
|
"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\"",
|
"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…
Add table
Add a link
Reference in a new issue