Reverted replacing npm with yarn (#2531)
Browse filesReverted replacing npm with yarn
### Type of change
- [x] Refactoring
- [ ] Performance Improvement
- [ ] Other (please describe):
- Dockerfile.scratch +1 -5
- web/package-lock.json +0 -0
- web/package.json +1 -1
- web/yarn.lock +0 -0
Dockerfile.scratch
CHANGED
@@ -36,12 +36,8 @@ RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
|
|
36 |
apt update && apt install -y nodejs npm && \
|
37 |
rm -rf /var/lib/apt/lists/*
|
38 |
|
39 |
-
# if you located in China, you can use taobao registry to speed up npm and yarn
|
40 |
-
RUN npm config set registry https://registry.npmmirror.com/
|
41 |
-
|
42 |
-
# https://yarnpkg.com/getting-started/install
|
43 |
COPY web web
|
44 |
-
RUN cd web && npm
|
45 |
|
46 |
# install dependencies from poetry.lock file
|
47 |
COPY pyproject.toml poetry.toml poetry.lock ./
|
|
|
36 |
apt update && apt install -y nodejs npm && \
|
37 |
rm -rf /var/lib/apt/lists/*
|
38 |
|
|
|
|
|
|
|
|
|
39 |
COPY web web
|
40 |
+
RUN cd web && npm i --force && npm run build
|
41 |
|
42 |
# install dependencies from poetry.lock file
|
43 |
COPY pyproject.toml poetry.toml poetry.lock ./
|
web/package-lock.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|
web/package.json
CHANGED
@@ -8,7 +8,7 @@
|
|
8 |
"lint": "umi lint --eslint-only",
|
9 |
"prepare": "cd .. && husky web/.husky",
|
10 |
"setup": "umi setup",
|
11 |
-
"start": "
|
12 |
"test": "jest --no-cache --coverage"
|
13 |
},
|
14 |
"lint-staged": {
|
|
|
8 |
"lint": "umi lint --eslint-only",
|
9 |
"prepare": "cd .. && husky web/.husky",
|
10 |
"setup": "umi setup",
|
11 |
+
"start": "npm run dev",
|
12 |
"test": "jest --no-cache --coverage"
|
13 |
},
|
14 |
"lint-staged": {
|
web/yarn.lock
DELETED
The diff for this file is too large to render.
See raw diff
|
|