Browse Source

Reverted replacing npm with yarn (#2531)

Reverted replacing npm with yarn

### Type of change

- [x] Refactoring
- [ ] Performance Improvement
- [ ] Other (please describe):
tags/v0.12.0
Zhichang Yu 1 year ago
parent
commit
139268de6f
No account linked to committer's email address
4 changed files with 28008 additions and 14516 deletions
  1. 1
    5
      Dockerfile.scratch
  2. 28006
    0
      web/package-lock.json
  3. 1
    1
      web/package.json
  4. 0
    14510
      web/yarn.lock

+ 1
- 5
Dockerfile.scratch View File

@@ -36,12 +36,8 @@ RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
apt update && apt install -y nodejs npm && \
rm -rf /var/lib/apt/lists/*

# if you located in China, you can use taobao registry to speed up npm and yarn
RUN npm config set registry https://registry.npmmirror.com/

# https://yarnpkg.com/getting-started/install
COPY web web
RUN cd web && npm install -g corepack && corepack enable && yarn install && yarn run build
RUN cd web && npm i --force && npm run build

# install dependencies from poetry.lock file
COPY pyproject.toml poetry.toml poetry.lock ./

+ 28006
- 0
web/package-lock.json
File diff suppressed because it is too large
View File


+ 1
- 1
web/package.json View File

@@ -8,7 +8,7 @@
"lint": "umi lint --eslint-only",
"prepare": "cd .. && husky web/.husky",
"setup": "umi setup",
"start": "yarn dev",
"start": "npm run dev",
"test": "jest --no-cache --coverage"
},
"lint-staged": {

+ 0
- 14510
web/yarn.lock
File diff suppressed because it is too large
View File


Loading…
Cancel
Save