Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Move from yarn to pnpm (WIP) #2590

Closed
wants to merge 338 commits into from
Closed
Show file tree
Hide file tree
Changes from 244 commits
Commits
Show all changes
338 commits
Select commit Hold shift + click to select a range
364d270
Update frontend-e2e-test.yml
FangSen9000 Aug 11, 2022
0486d0a
Update make-build.yaml
FangSen9000 Aug 11, 2022
75f402e
Update test-frontend-multiple-node-build.yml
FangSen9000 Aug 11, 2022
c3e0f40
Update Makefile
FangSen9000 Aug 11, 2022
ef6026f
Update Dockerfile
FangSen9000 Aug 11, 2022
3e062f1
Update frontend-e2e-test.yml
FangSen9000 Aug 11, 2022
e3c00e8
Update make-build.yaml
FangSen9000 Aug 11, 2022
e2a68cd
Update test-frontend-multiple-node-build.yml
FangSen9000 Aug 11, 2022
08a5ce8
Update package.json
FangSen9000 Aug 11, 2022
ed33ac1
Delete yarn.lock
FangSen9000 Aug 11, 2022
b0c6b0c
Add files via upload
FangSen9000 Aug 11, 2022
8ce4b9d
Update frontend-e2e-test.yml
FangSen9000 Aug 11, 2022
1297af8
Update make-build.yaml
FangSen9000 Aug 11, 2022
bf4137e
Update test-frontend-multiple-node-build.yml
FangSen9000 Aug 11, 2022
23f2c47
Update frontend-e2e-test.yml
FangSen9000 Aug 11, 2022
dbbaf82
Update make-build.yaml
FangSen9000 Aug 11, 2022
36c868b
Update test-frontend-multiple-node-build.yml
FangSen9000 Aug 11, 2022
7d33f24
Update make-build.yaml
FangSen9000 Aug 11, 2022
f53272d
Update test-frontend-multiple-node-build.yml
FangSen9000 Aug 11, 2022
2a797fa
Update pnpm-lock.yaml
FangSen9000 Aug 11, 2022
f43391e
Update package.json
FangSen9000 Aug 11, 2022
4dbb699
Update test-frontend-multiple-node-build.yml
FangSen9000 Aug 11, 2022
4eebea8
Update test-frontend-multiple-node-build.yml
FangSen9000 Aug 11, 2022
69bc225
Update make-build.yaml
FangSen9000 Aug 11, 2022
c07f47d
Update frontend-e2e-test.yml
FangSen9000 Aug 11, 2022
23738dd
Update package.json
FangSen9000 Aug 11, 2022
541bcd9
Delete pnpm-lock.yaml
FangSen9000 Aug 11, 2022
46e4635
Add files via upload
FangSen9000 Aug 11, 2022
eac64f6
Update frontend-e2e-test.yml
FangSen9000 Aug 12, 2022
a52cb2a
Update auto-build-rpm.yml
FangSen9000 Aug 12, 2022
7d9f331
Update Makefile
FangSen9000 Aug 12, 2022
79bbad8
Update auto-build-rpm.yml
FangSen9000 Aug 12, 2022
d313ede
Update pre-commit
FangSen9000 Aug 12, 2022
748d486
Update Makefile
FangSen9000 Aug 12, 2022
538cd77
Update deploy-with-docker.yml
FangSen9000 Aug 12, 2022
5d22ace
Update deploy-with-docker.yml
FangSen9000 Aug 12, 2022
7546cd0
Update deploy-with-docker.yml
FangSen9000 Aug 12, 2022
7345aa8
Update deploy-with-docker.yml
FangSen9000 Aug 12, 2022
b3188ec
Update pnpm-lock.yaml
FangSen9000 Aug 12, 2022
fe6eac6
Update Makefile
FangSen9000 Aug 12, 2022
2708425
Update .prettierignore
FangSen9000 Aug 12, 2022
a01d23b
Update package.json
FangSen9000 Aug 13, 2022
b55ef76
Delete pnpm-lock.yaml
FangSen9000 Aug 13, 2022
8c67153
Add files via upload
FangSen9000 Aug 13, 2022
38c891f
Update auto-build-rpm.yml
FangSen9000 Aug 13, 2022
20ba054
Update pnpm-lock.yaml
FangSen9000 Aug 13, 2022
57dced9
Update pnpm-lock.yaml
FangSen9000 Aug 13, 2022
c1d1c41
Update pnpm-lock.yaml
FangSen9000 Aug 13, 2022
07c209d
Update pnpm-lock.yaml
FangSen9000 Aug 13, 2022
61b0874
Update pnpm-lock.yaml
FangSen9000 Aug 13, 2022
6d09d60
Update pnpm-lock.yaml
FangSen9000 Aug 13, 2022
a4d3ffd
Update pnpm-lock.yaml
FangSen9000 Aug 13, 2022
5507a0a
Update auto-build-rpm.yml
FangSen9000 Aug 14, 2022
128f707
Update auto-build-rpm.yml
FangSen9000 Aug 14, 2022
335761a
Update auto-build-rpm.yml
FangSen9000 Aug 14, 2022
f2a0b59
Update auto-build-rpm.yml
FangSen9000 Aug 14, 2022
8b75445
Update auto-build-rpm.yml
FangSen9000 Aug 14, 2022
bfa7428
Update auto-build-rpm.yml
FangSen9000 Aug 14, 2022
2aae424
Update auto-build-rpm.yml
FangSen9000 Aug 14, 2022
ce31d86
Update auto-build-rpm.yml
FangSen9000 Aug 14, 2022
3eb98fd
Update auto-build-rpm.yml
FangSen9000 Aug 14, 2022
edc1e6a
Update auto-build-rpm.yml
FangSen9000 Aug 14, 2022
8edfe70
Update auto-build-rpm.yml
FangSen9000 Aug 14, 2022
12e0069
Update auto-build-rpm.yml
FangSen9000 Aug 14, 2022
ec0ef77
Update auto-build-rpm.yml
FangSen9000 Aug 14, 2022
ec6491d
Update auto-build-rpm.yml
FangSen9000 Aug 14, 2022
97aaeb1
Update auto-build-rpm.yml
FangSen9000 Aug 14, 2022
b6388a6
Update auto-build-rpm.yml
FangSen9000 Aug 14, 2022
ea6a24d
Update package.json
FangSen9000 Aug 14, 2022
f420ee6
Delete pnpm-lock.yaml
FangSen9000 Aug 14, 2022
b79b38f
Add files via upload
FangSen9000 Aug 14, 2022
e14e8a4
Update pnpm-lock.yaml
FangSen9000 Aug 14, 2022
eb00ea1
Update deploy-with-docker.yml
FangSen9000 Aug 14, 2022
0912da0
Update deploy-with-docker.yml
FangSen9000 Aug 14, 2022
7a33de0
Update Dockerfile
FangSen9000 Aug 14, 2022
08d27f0
Update Dockerfile
FangSen9000 Aug 14, 2022
85fe659
Update frontend-e2e-test.yml
FangSen9000 Aug 14, 2022
5cff551
Update frontend-e2e-test.yml
FangSen9000 Aug 14, 2022
85122d3
Update Dockerfile
FangSen9000 Aug 14, 2022
1cc34c8
Merge pull request #6 from FangSen9000/chore-move-yarn-to-pnpmtry1.5
FangSen9000 Aug 14, 2022
933729d
Update Dockerfile
FangSen9000 Aug 14, 2022
81937af
Update frontend-e2e-test.yml
FangSen9000 Aug 14, 2022
140600c
Update frontend-e2e-test.yml
FangSen9000 Aug 14, 2022
0a375d1
Update frontend-e2e-test.yml
FangSen9000 Aug 14, 2022
fd041c8
Update frontend-e2e-test.yml
FangSen9000 Aug 14, 2022
4e60619
Update frontend-e2e-test.yml
FangSen9000 Aug 14, 2022
0a68eee
Update frontend-e2e-test.yml
FangSen9000 Aug 14, 2022
4d5ce04
Update frontend-e2e-test.yml
FangSen9000 Aug 14, 2022
be55845
Update frontend-e2e-test.yml
FangSen9000 Aug 14, 2022
3b895fb
Update frontend-e2e-test.yml
FangSen9000 Aug 14, 2022
9ca040f
Update frontend-e2e-test.yml
FangSen9000 Aug 14, 2022
8a2ebe5
Update frontend-e2e-test.yml
FangSen9000 Aug 14, 2022
8e4b129
Update frontend-e2e-test.yml
FangSen9000 Aug 14, 2022
0a7c3f4
Update frontend-e2e-test.yml
FangSen9000 Aug 14, 2022
5e41947
Update frontend-e2e-test.yml
FangSen9000 Aug 14, 2022
60f0389
Update frontend-e2e-test.yml
FangSen9000 Aug 14, 2022
1cfee05
Update package.json
FangSen9000 Aug 15, 2022
349333f
Update package.json
FangSen9000 Aug 15, 2022
7d37fa2
Update frontend-e2e-test.yml
FangSen9000 Aug 15, 2022
4549712
Update frontend-e2e-test.yml
FangSen9000 Aug 15, 2022
422a490
Update frontend-e2e-test.yml
FangSen9000 Aug 15, 2022
e169fa5
Update frontend-e2e-test.yml
FangSen9000 Aug 15, 2022
083f84a
Update frontend-e2e-test.yml
FangSen9000 Aug 15, 2022
ffe7747
Update frontend-e2e-test.yml
FangSen9000 Aug 15, 2022
ce77ac0
Update frontend-e2e-test.yml
FangSen9000 Aug 15, 2022
8959b98
Update frontend-e2e-test.yml
FangSen9000 Aug 15, 2022
bba1053
Update frontend-e2e-test.yml
FangSen9000 Aug 15, 2022
852be16
Update frontend-e2e-test.yml
FangSen9000 Aug 15, 2022
3e42b1f
Update frontend-e2e-test.yml
FangSen9000 Aug 15, 2022
8018be9
Update frontend-e2e-test.yml
FangSen9000 Aug 15, 2022
ab45299
Update frontend-e2e-test.yml
FangSen9000 Aug 15, 2022
7ea2bc8
Update frontend-e2e-test.yml
FangSen9000 Aug 15, 2022
7ded78b
Update frontend-e2e-test.yml
FangSen9000 Aug 15, 2022
c15ad90
Update frontend-e2e-test.yml
FangSen9000 Aug 15, 2022
19d64c6
Update frontend-e2e-test.yml
FangSen9000 Aug 15, 2022
89bd5c3
Update frontend-e2e-test.yml
FangSen9000 Aug 15, 2022
de1069f
Update frontend-e2e-test.yml
FangSen9000 Aug 15, 2022
7a216f0
Update frontend-e2e-test.yml
FangSen9000 Aug 15, 2022
d57a62c
Update frontend-e2e-test.yml
FangSen9000 Aug 15, 2022
6ef9214
Update package.json
FangSen9000 Aug 15, 2022
6c1294a
Update frontend-e2e-test.yml
FangSen9000 Aug 15, 2022
5965d67
Update frontend-e2e-test.yml
FangSen9000 Aug 15, 2022
97175b1
Update package.json
FangSen9000 Aug 15, 2022
91dafba
Update frontend-e2e-test.yml
FangSen9000 Aug 15, 2022
a299199
Update develop.md
FangSen9000 Aug 15, 2022
7fdaa38
Update front-end-e2e.md
FangSen9000 Aug 15, 2022
91ff912
Update install.md
FangSen9000 Aug 15, 2022
f8da835
Update pnpm-lock.yaml
FangSen9000 Aug 15, 2022
c84a3c2
Update frontend-e2e-test.yml
FangSen9000 Aug 15, 2022
515f809
Update auto-build-rpm.yml
FangSen9000 Aug 15, 2022
8a3b94e
Update frontend-e2e-test.yml
FangSen9000 Aug 15, 2022
14adc98
Delete pnpm-lock.yaml
FangSen9000 Aug 15, 2022
eb3aa3d
Add files via upload
FangSen9000 Aug 15, 2022
c7d1d46
Update develop.md
FangSen9000 Aug 15, 2022
056e6d9
Update auto-build-rpm.yml
FangSen9000 Aug 15, 2022
98fb668
Update package.json
FangSen9000 Aug 16, 2022
f6ffd64
Update frontend-e2e-test.yml
FangSen9000 Aug 16, 2022
1d77119
Update test-frontend-multiple-node-build.yml
FangSen9000 Aug 16, 2022
b9c1850
Merge branch 'apache:master' into master
FangSen9000 Aug 16, 2022
439cd8b
Update create-route-with-plugin-orchestration.spec.js
FangSen9000 Aug 16, 2022
ef60455
Update create-route-with-plugin-orchestration.spec.js
FangSen9000 Aug 16, 2022
0f7c701
Update create-route-with-plugin-orchestration.spec.js
FangSen9000 Aug 16, 2022
c9619a4
Update frontend-e2e-test.yml
FangSen9000 Aug 16, 2022
82bf88c
Update create-route-with-plugin-orchestration.spec.js
FangSen9000 Aug 16, 2022
678f4d7
Update Makefile
FangSen9000 Aug 16, 2022
fe82c73
Update frontend-e2e-test.yml
FangSen9000 Aug 16, 2022
daffa03
Update frontend-e2e-test.yml
FangSen9000 Aug 16, 2022
748fd9c
Update frontend-e2e-test.yml
FangSen9000 Aug 16, 2022
e394f7c
Update make-build.yaml
FangSen9000 Aug 16, 2022
c913211
Update create-route-with-plugin-orchestration.spec.js
FangSen9000 Aug 16, 2022
3e0e448
Update frontend-e2e-test.yml
FangSen9000 Aug 16, 2022
6cebf00
Update package.json
FangSen9000 Aug 16, 2022
f45c96f
Update frontend-e2e-test.yml
FangSen9000 Aug 16, 2022
5f37257
Update create-route-with-plugin-orchestration.spec.js
FangSen9000 Aug 16, 2022
716cfa8
Update frontend-e2e-test.yml
FangSen9000 Aug 16, 2022
4b2a7ca
Update develop.md
FangSen9000 Aug 17, 2022
ad245fc
Update create-route-with-plugin-orchestration.spec.js
FangSen9000 Aug 17, 2022
37a4641
Update make-build.yaml
FangSen9000 Aug 17, 2022
503fda4
Update frontend-e2e-test.yml
FangSen9000 Aug 17, 2022
1ebcc0d
Update make-build.yaml
FangSen9000 Aug 17, 2022
f9ec2d6
Update make-build.yaml
FangSen9000 Aug 17, 2022
c14ef1c
Update make-build.yaml
FangSen9000 Aug 17, 2022
2d5f097
Update make-build.yaml
FangSen9000 Aug 17, 2022
626f972
Update make-build.yaml
FangSen9000 Aug 17, 2022
1b9542e
Update make-build.yaml
FangSen9000 Aug 17, 2022
7d71c4c
Update make-build.yaml
FangSen9000 Aug 17, 2022
4b9d8f5
Update make-build.yaml
FangSen9000 Aug 17, 2022
878ce9b
Update make-build.yaml
FangSen9000 Aug 17, 2022
a050942
Update create-consumer-with-api-breaker-plugin-form.spec.js
FangSen9000 Aug 17, 2022
01a391f
Update create-consumer-with-basic-auth-plugin-form.spec.js
FangSen9000 Aug 17, 2022
b489e56
Update create-consumer-with-limit-count-plugin-form.spec.js
FangSen9000 Aug 17, 2022
482471e
Update create-consumer-with-proxy-mirror-form.spec.js
FangSen9000 Aug 17, 2022
db43759
Update create-upstream-with-cors-form.spec.js
FangSen9000 Aug 17, 2022
0f6ae73
Update create-upstream-with-limit-req-form.spec.js
FangSen9000 Aug 17, 2022
adfe31a
Update create-with-limit-conn-form.spec.js
FangSen9000 Aug 17, 2022
7e624a1
Update create-with-referer-restriction-form.spec.js
FangSen9000 Aug 17, 2022
9ba38a9
Update create_and_delete_consumer.spec.js
FangSen9000 Aug 17, 2022
04b0147
Update table-auto-jump-when-no-data.spec.js
FangSen9000 Aug 17, 2022
57bff5b
Update create-route-with-plugin-orchestration.spec.js
FangSen9000 Aug 17, 2022
e6d0543
Update batch-delete-route.spec.js
FangSen9000 Aug 17, 2022
df207ef
Update can-skip-upstream-when-select-service-id.spec.js
FangSen9000 Aug 17, 2022
27cb9dd
Update check-route-required-field-flag.spec.js
FangSen9000 Aug 17, 2022
4eee7e4
Update create-edit-duplicate-delete-route.spec.js
FangSen9000 Aug 17, 2022
dd8f798
Update create-edit-route-with-redirect-plugin.spec.js
FangSen9000 Aug 17, 2022
e7dbdc9
Update create-route-both-use-uri-uris.spec.js
FangSen9000 Aug 17, 2022
da32914
Update create-route-when-not-select-upsteam-id.spec.js
FangSen9000 Aug 17, 2022
cb86285
Update create-route-with-advanced-matching-conditions.spec.js
FangSen9000 Aug 17, 2022
fe842f5
Update create-route-with-api-breaker-form.spec.js
FangSen9000 Aug 17, 2022
e136cf2
Update create-route-with-chash-upstream.spec.js
FangSen9000 Aug 17, 2022
05ad68e
Update create-route-with-cors-form.spec.js
FangSen9000 Aug 17, 2022
0e79e01
Update create-route-with-limit-count-plugin-form.spec.js
FangSen9000 Aug 17, 2022
55178ed
Update create-route-with-limit-req-form.spec.js
FangSen9000 Aug 17, 2022
f3b3a7a
Update create-route-with-proxy-mirror-form.spec.js
FangSen9000 Aug 17, 2022
d934bd9
Update create-route-with-proxy-rewrite-plugin.spec.js
FangSen9000 Aug 17, 2022
85ecbeb
Update create-route-with-referer-restriction-form.spec.js
FangSen9000 Aug 17, 2022
ed8c867
Update create-route-with-search-service-and-set-priority.spec.js
FangSen9000 Aug 17, 2022
1a4372d
Update create-route-with-service-discovery-upstream.spec.js
FangSen9000 Aug 17, 2022
59f8357
Update create-route-with-upstream.spec.js
FangSen9000 Aug 17, 2022
5c8e1f0
Update data-loader-import.spec.js
FangSen9000 Aug 17, 2022
263006f
Update search-route.spec.js
FangSen9000 Aug 17, 2022
4de462c
Update table-auto-jump-when-no-data.spec.js
FangSen9000 Aug 17, 2022
09ad150
Update upstream-create_and_edit_upstream_with_no_nodes.spec.js
FangSen9000 Aug 18, 2022
7576581
Update create-consumer-with-api-breaker-plugin-form.spec.js
FangSen9000 Aug 18, 2022
ae311e0
Update create-edit-route-with-redirect-plugin.spec.js
FangSen9000 Aug 18, 2022
c031057
Update create-consumer-with-basic-auth-plugin-form.spec.js
FangSen9000 Aug 18, 2022
972b9e4
Update create-consumer-with-limit-count-plugin-form.spec.js
FangSen9000 Aug 18, 2022
a015d7d
Update create-consumer-with-proxy-mirror-form.spec.js
FangSen9000 Aug 18, 2022
c764516
Update create-upstream-with-cors-form.spec.js
FangSen9000 Aug 18, 2022
39532cd
Update create-upstream-with-limit-req-form.spec.js
FangSen9000 Aug 18, 2022
37cbef2
Update create-with-limit-conn-form.spec.js
FangSen9000 Aug 18, 2022
8037ee2
Update create-with-referer-restriction-form.spec.js
FangSen9000 Aug 18, 2022
31f6c7d
Update create_and_delete_consumer.spec.js
FangSen9000 Aug 18, 2022
c8b6b28
Update table-auto-jump-when-no-data.spec.js
FangSen9000 Aug 18, 2022
c2f2b24
Update batch-delete-route.spec.js
FangSen9000 Aug 18, 2022
47716d3
Update can-skip-upstream-when-select-service-id.spec.js
FangSen9000 Aug 18, 2022
eed1b85
Update check-route-required-field-flag.spec.js
FangSen9000 Aug 18, 2022
6ac5d46
Update create-edit-duplicate-delete-route.spec.js
FangSen9000 Aug 18, 2022
f5fc6be
Update create-route-both-use-uri-uris.spec.js
FangSen9000 Aug 18, 2022
9fd6da5
Update create-route-when-not-select-upsteam-id.spec.js
FangSen9000 Aug 18, 2022
2e4507a
Update create-route-with-advanced-matching-conditions.spec.js
FangSen9000 Aug 18, 2022
f6dd5e5
Update create-route-with-api-breaker-form.spec.js
FangSen9000 Aug 18, 2022
d4641a1
Update create-route-with-chash-upstream.spec.js
FangSen9000 Aug 18, 2022
8e52183
Update create-route-with-cors-form.spec.js
FangSen9000 Aug 18, 2022
636d3be
Update create-route-with-limit-count-plugin-form.spec.js
FangSen9000 Aug 18, 2022
837c3c4
Update create-route-with-limit-req-form.spec.js
FangSen9000 Aug 18, 2022
62d8284
Update create-route-with-proxy-mirror-form.spec.js
FangSen9000 Aug 18, 2022
004825f
Update create-route-with-proxy-rewrite-plugin.spec.js
FangSen9000 Aug 18, 2022
c805edb
Update create-route-with-referer-restriction-form.spec.js
FangSen9000 Aug 18, 2022
c5dc44a
Update create-route-with-search-service-and-set-priority.spec.js
FangSen9000 Aug 18, 2022
f9d19c6
Update create-route-with-service-discovery-upstream.spec.js
FangSen9000 Aug 18, 2022
0b0ebee
Update create-route-with-upstream.spec.js
FangSen9000 Aug 18, 2022
b8de989
Update data-loader-import.spec.js
FangSen9000 Aug 18, 2022
c3a9a88
Update search-route.spec.js
FangSen9000 Aug 18, 2022
860da13
Update table-auto-jump-when-no-data.spec.js
FangSen9000 Aug 18, 2022
ee3d81c
Update create_and_delete_consumer.spec.js
FangSen9000 Aug 18, 2022
10f52a9
Update create-route-with-plugin-orchestration.spec.js
FangSen9000 Aug 18, 2022
7864d37
Update create-route-with-plugin-orchestration.spec.js
FangSen9000 Aug 18, 2022
431d481
Update upstream-create_and_edit_upstream_with_no_nodes.spec.js
FangSen9000 Aug 18, 2022
b5dbdb0
Update upstream-create_and_edit_upstream_with_no_nodes.spec.js
FangSen9000 Aug 18, 2022
c775f38
Update can-skip-upstream-when-select-service-id.spec.js
FangSen9000 Aug 18, 2022
f2c874d
Update create-route-with-upstream.spec.js
FangSen9000 Aug 18, 2022
74b0283
Update create-delete-in-drawer-plugin.spec.js
FangSen9000 Aug 18, 2022
db658d2
Update make-build.yaml
FangSen9000 Aug 21, 2022
e26f401
Update make-build.yaml
FangSen9000 Aug 22, 2022
e51511f
Update make-build.yaml
FangSen9000 Aug 22, 2022
ef64443
Update Makefile
FangSen9000 Aug 22, 2022
9da677d
Update test-frontend-multiple-node-build.yml
FangSen9000 Aug 22, 2022
1643ac7
Update make-build.yaml
FangSen9000 Aug 22, 2022
bcd0098
Update make-build.yaml
FangSen9000 Aug 23, 2022
6efd3e7
Update make-build.yaml
FangSen9000 Aug 23, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/auto-build-rpm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ jobs:
run: |
export VERSION=${{ steps.branch_env.outputs.version }}
sudo gem install --no-document fpm
git clone https://github.com/api7/apisix-build-tools.git
git clone https://github.com/FangSen9000/apisix-build-tools.git
FangSen9000 marked this conversation as resolved.
Show resolved Hide resolved
Copy link
Contributor Author

@FangSen9000 FangSen9000 Aug 15, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note that we should let the API7 community merge my changes to the build script before merging this pr.
api7/apisix-build-tools#232
(if I keep it as it is, the original warehouse that has not been changed will only report an error. In order to prove that my changes are effective, I link to my modified build script warehouse.)


# move codes under build tool
mkdir ./apisix-build-tools/apisix-dashboard
Expand Down
16 changes: 11 additions & 5 deletions .github/workflows/frontend-e2e-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,9 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: 16.x
cache: 'yarn'
cache-dependency-path: web/yarn.lock

- name: Install PNPM
run: npm i -g [email protected]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Have you checked out this https://github.com/pnpm/action-setup? I think this might be a little better.

But, anyway, let's run through the test first.

Copy link
Contributor Author

@FangSen9000 FangSen9000 Aug 17, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let me first say a good news. Yesterday's problem has been solved. The reason is that he didn't use Chrome browser to run it. Just add a setting.

`"For example, I just found that it seems that many errors in file format are related to yarn. Many workflow files have been perfected around this. Then, the pnpm directly downloaded by GitHub does not seem to support node.js12. It describes that the downloaded pnpm does not support NPM below 14 (in fact, you can install a low-level package and ask him to support it, but it feels that it will be troublesome. I am afraid there are more problems.) Only 14 and 16 can be built when building tests. "
1ec791081ecc16fd7dbe07d687f54ea
0ca067b71192e4dc0c2c31de209e9a0

"When downloading the relevant environment, it seems that there are some restrictions. Maybe it can be solved by storing it in the warehouse through some link, but I haven't started to look at it. I'm afraid this is also very troublesome. This picture is the reason why the three people are useless. Action is prohibited. It clearly meets the requirements he said, but it can't be used."`

@SkyeYoung I mentioned this problem. You can look at the pictures. If anyone can solve it, it's best.


- name: Setup golang environment
uses: actions/setup-go@v3
Expand Down Expand Up @@ -84,14 +85,19 @@ jobs:
cypress-${{ runner.os }}-cypress-cache0

- name: Install dependencies
run: yarn
run: pnpm install

- name: Install Cypress binary
run: pnpx cypress install

- run: pnpx browserslist@latest --update-db

- name: Start frontend then test
run: |
yarn start-server-and-test 'cross-env SERVE_ENV=test yarn start' http-get://localhost:8000 'cross-env CYPRESS_SERVE_ENV=test yarn cypress run --spec "**/integration/${{matrix.folderPrefix}}/**.spec.js"'
pnpm start-server-and-test 'cross-env SERVE_ENV=test pnpm start' http-get://localhost:8000 'cross-env CYPRESS_SERVE_ENV=test pnpm cypress run --browser chrome --spec "**/integration/${{matrix.folderPrefix}}/**.spec.js"'

- name: Report e2e coverage
run: npx nyc report --reporter=text-summary
run: pnpx nyc report --reporter=text-summary

- name: Upload coverage to Codecov
run: |
Expand Down
12 changes: 10 additions & 2 deletions .github/workflows/make-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,16 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: 16.x
cache: 'yarn'
cache-dependency-path: web/yarn.lock

- name: Install PNPM
run: npm i -g [email protected]

- name: Change the NPM Settings for PNPM
run: npm config set strict-peer-dependencies=false
- run: npm config set auto-install-peers=true

- name: Install dependencies
run: pnpm install --frozen-lockfile

- name: Setup golang environment
uses: actions/setup-go@v3
Expand Down
15 changes: 10 additions & 5 deletions .github/workflows/test-frontend-multiple-node-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,18 +37,23 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'yarn'
cache-dependency-path: web/yarn.lock

- name: Install PNPM
run: npm i -g [email protected]

- name: Change the NPM Settings for PNPM
run: npm config set strict-peer-dependencies=false
- run: npm config set auto-install-peers=true

# Install dependencies
- name: Install dependencies
working-directory: web
run: CYPRESS_INSTALL_BINARY=0 yarn
run: CYPRESS_INSTALL_BINARY=0 pnpm install

- name: Lint
working-directory: web
run: yarn run lint:js && yarn run lint:style
run: pnpm lint:js && pnpm lint:style

- name: Build the Dashboard
working-directory: web
run: yarn build
run: pnpm build
14 changes: 10 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ ARG APISIX_DASHBOARD_VERSION=master

RUN set -x \
&& apk add --no-cache --virtual .builddeps git \
&& git clone https://github.com/apache/apisix-dashboard.git -b ${APISIX_DASHBOARD_VERSION} /usr/local/apisix-dashboard \
&& git clone https://github.com/FangSen9000/apisix-dashboard.git -b ${APISIX_DASHBOARD_VERSION} /usr/local/apisix-dashboard \
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If I keep it as it is, the original warehouse that has not been changed will only report an error. In order to prove that my change is effective, I link to my changed warehouse. Just like RPM workflow. Before merging, please remind me to change it back.

&& cd /usr/local/apisix-dashboard && git clean -Xdf \
&& rm -f ./.githash && git log --pretty=format:"%h" -1 > ./.githash

Expand All @@ -46,9 +46,15 @@ COPY --from=pre-build /usr/local/apisix-dashboard .

WORKDIR /usr/local/apisix-dashboard/web

RUN if [ "$ENABLE_PROXY" = "true" ] ; then yarn config set registry https://registry.npmmirror.com/ ; fi \
&& yarn install \
&& yarn build
RUN npm i pnpm -g

RUN npm config set strict-peer-dependencies=false

RUN npm config set auto-install-peers=true

RUN if [ "$ENABLE_PROXY" = "true" ] ; then pnpm config set registry https://registry.npmmirror.com/ ; fi \
&& pnpm install \
&& pnpm build

FROM alpine:latest as prod

Expand Down
17 changes: 11 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
SHELL := /bin/bash -o pipefail
UNAME ?= $(shell uname)
YARN_EXEC ?= $(shell which yarn)
PNPM_EXEC ?= $(shell which pnpm)
GO_EXEC ?= $(shell which go)

VERSION ?= latest
Expand All @@ -36,13 +37,13 @@ help:
### build: Build the Apache APISIX Dashboard, including web and manager-api
.PHONY: build
build: web-default api-default
api/build.sh && cd ./web && export CYPRESS_INSTALL_BINARY=0 && yarn install --ignore-scripts && yarn build && mkdir -p ../output/logs
api/build.sh && cd ./web && export CYPRESS_INSTALL_BINARY=0 && pnpm install --ignore-scripts && pnpm build && mkdir -p ../output/logs


.PHONY: web-default
web-default:
ifeq ("$(wildcard $(YARN_EXEC))", "")
@echo "ERROR: Need to install yarn first"
ifeq ("$(wildcard $(PNPM_EXEC))", "")
@echo "ERROR: Need to install pnpm first"
exit 1
endif

Expand Down Expand Up @@ -121,12 +122,16 @@ release-src:
--exclude release \
--exclude api/internal/core/store/validate_mock.go \
--exclude api/internal/core/storage/storage_mock.go \
.
./api \
./licenses \
./web \
LICENSE \
Makefile \
NOTICE \
*.md

gpg --batch --yes --armor --detach-sig $(RELEASE_SRC).tgz
shasum -a 512 $(RELEASE_SRC).tgz > $(RELEASE_SRC).tgz.sha512

mkdir -p release
mv $(RELEASE_SRC).tgz release/$(RELEASE_SRC).tgz
mv $(RELEASE_SRC).tgz.asc release/$(RELEASE_SRC).tgz.asc
mv $(RELEASE_SRC).tgz.sha512 release/$(RELEASE_SRC).tgz.sha512
20 changes: 15 additions & 5 deletions docs/en/latest/develop.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,14 +75,24 @@ serveUrlMap:{
}
```

3. Launch development mode
3. Launch development mode [(pnpm)](https://pnpm.io/installation)

```sh
$ yarn install
```shell
# You can also use pnpm as a tool to download dependent packages.
$ pnpm install

$ pnpm start

# If some dependent packages are not installed, use the following command. The higher version of NPM forbids automatic installation of peer-to-peer dependencies, but we need them, so conflicts arise.

# In In the .npmrc configuration file, add strict peer dependencies = false, which means that the strict peer dependency mode will be turned off.
$ npm config set strict-peer-dependencies=false

# Change it to true if you want to automatically install peer dependencies.
$ npm config set auto-install-peers=true

$ yarn start
```

> If there is an error about gyp during yarn install, please ignore it and go ahead!
> If there is an error about gyp during pnpm install, please ignore it and go ahead! If monaco-editor cannot be found during startup, please go to the original address of the file and copy it .public, you can use the command 'find -name monaco-editor'

4. If writing an front end E2E test, please refer to the [Front End E2E Writing Guide](./front-end-e2e.md)
6 changes: 3 additions & 3 deletions docs/en/latest/front-end-e2e.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ This project uses [Cypress](https://www.cypress.io/) as the front-end E2E test f
2. Open Cypress test-runner. For the use of test-runner, please refer to [test-runner](https://docs.cypress.io/guides/core-concepts/test-runner.html#) Overview.

```sh
yarn cypress:open-dev
pnpm cypress:open-dev
```

3. Write your test examples: please refer to the test examples in the `/web/cypress` directory, or see [RWA](https://github.com/cypress-io/cypress-realworld-app) for more examples.
Expand All @@ -37,12 +37,12 @@ To make it easy for users to develop front-end E2E cases, we use the remote mana

1. Start the local manager-api service, please refer to [develop](./develop.md) manager-api section.

2. To start the front-end project locally, please refer to [develop](./develop.md) web section. NOTE: You need to change `yarn start` to `yarn start:e2e` when you start.
2. To start the front-end project locally, please refer to [develop](./develop.md) web section. NOTE: You need to change `pnpm start` to `pnpm start:e2e` when you start.

3. Open Cypress test-runner.

```sh
yarn cypress:open
pnpm cypress:open
```

Reference links:
Expand Down
2 changes: 1 addition & 1 deletion docs/en/latest/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ $ go env -w GOPROXY=https://goproxy.cn,direct
For `web`:

1. [Node.js](https://nodejs.org/en/download/) current LTS (14.x+)
2. [Yarn](https://yarnpkg.com/getting-started/install)
2. [Pnpm](https://pnpm.io/installation)

### Download {#source-download}

Expand Down
2 changes: 1 addition & 1 deletion web/.husky/pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
. "$(dirname "$0")/_/husky.sh"

cd web
yarn lint-staged
pnpm lint-staged
2 changes: 1 addition & 1 deletion web/.prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ Dockerfile*
LICENSE
.eslintcache
*.lock
yarn-error.log
pnpm-error.log
.history
CNAME
53 changes: 33 additions & 20 deletions web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,41 +5,42 @@
"description": "Dashboard for Apache APISIX",
"scripts": {
"prepare": "cd .. && husky install web/.husky",
"analyze": "cross-env ANALYZE=1 yarn run build",
"build": "cp -R ./node_modules/monaco-editor ./public/ && umi build",
"dev": "yarn run start:dev",
"fetch:blocks": "pro fetch-blocks --branch antd@4 && yarn run prettier",
"analyze": "cross-env ANALYZE=1 pnpm run build",
"build": "cp -R ./node_modules/.pnpm/[email protected]/node_modules/monaco-editor ./public/ && umi build",
"dev": "pnpm run start:dev",
"fetch:blocks": "pro fetch-blocks --branch antd@4 && pnpm run prettier",
"i18n-remove": "pro i18n-remove --locale=zh-CN --write",
"postinstall": "umi g tmp",
"lint": "umi g tmp && yarn run lint:js && yarn run lint:style && yarn run lint:prettier",
"lint": "umi g tmp && pnpm run lint:js && pnpm run lint:style && pnpm run lint:prettier",
"lint-staged": "lint-staged",
"lint-staged:js": "eslint --ext .js,.jsx,.ts,.tsx ",
"lint:fix": "eslint --fix --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./src && yarn run lint:style",
"lint:fix": "eslint --fix --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./src && pnpm run lint:style",
"lint:js": "eslint --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./src",
"lint:prettier": "prettier --check \"**/*\" --end-of-line auto",
"lint:style": "stylelint --fix \"src/**/*.less\" --syntax less",
"prettier": "prettier -c --write \"**/*\"",
"site": "yarn run fetch:blocks && yarn run build",
"start": "cp -R ./node_modules/monaco-editor ./public/ && umi dev",
"start:e2e": "cross-env SERVE_ENV=test yarn run start",
"test:e2e": "start-server-and-test 'cross-env SERVE_ENV=test yarn start' http-get://localhost:8000 cypress:run-ci",
"test-plugin:e2e": "start-server-and-test 'cross-env SERVE_ENV=test yarn start' http-get://localhost:8000 cypress:run-plugin-ci",
"start:dev": "cross-env REACT_APP_ENV=dev MOCK=none yarn run start",
"start:no-mock": "cross-env MOCK=none yarn run start",
"start:no-ui": "cross-env UMI_UI=none yarn run start",
"start:pre": "cross-env REACT_APP_ENV=pre yarn run start",
"start:test": "cross-env REACT_APP_ENV=test MOCK=none yarn run start",
"site": "pnpm run fetch:blocks && pnpm run build",
"start": "cp -R ./node_modules/.pnpm/[email protected]/node_modules/monaco-editor ./public/ && umi dev",
"start:umi-dev": "umi dev",
"start:e2e": "cross-env SERVE_ENV=test pnpm run start",
"test:e2e": "start-server-and-test 'cross-env SERVE_ENV=test pnpm start' http-get://localhost:8000 cypress:run-ci",
"test-plugin:e2e": "start-server-and-test 'cross-env SERVE_ENV=test pnpm start' http-get://localhost:8000 cypress:run-plugin-ci",
"start:dev": "cross-env REACT_APP_ENV=dev MOCK=none pnpm run start",
"start:no-mock": "cross-env MOCK=none pnpm run start",
"start:no-ui": "cross-env UMI_UI=none pnpm run start",
"start:pre": "cross-env REACT_APP_ENV=pre pnpm run start",
"start:test": "cross-env REACT_APP_ENV=test MOCK=none pnpm run start",
"test:component": "umi test ./src/components",
"tsc": "tsc",
"cypress:open": "cross-env CYPRESS_SERVE_ENV=test cypress open",
"cypress:open-dev": "cross-env CYPRESS_SERVE_ENV=dev cypress open",
"cypress:run-ci": "cross-env CYPRESS_SERVE_ENV=test cypress run",
"cypress:run-plugin-ci": "cross-env CYPRESS_SERVE_ENV=test cypress run --spec 'cypress/integration/plugin/*.spec.js'"
"cypress:run-ci": "cross-env CYPRESS_SERVE_ENV=test cypress run --browser chrome",
"cypress:run-plugin-ci": "cross-env CYPRESS_SERVE_ENV=test cypress run --browser chrome --spec 'cypress/integration/plugin/*.spec.js'"
},
"license": "Apache-2.0",
"lint-staged": {
"**/*.less": "stylelint --syntax less",
"**/*.{js,jsx,ts,tsx}": "yarn run lint-staged:js",
"**/*.{js,jsx,ts,tsx}": "pnpm run lint-staged:js",
"**/*.{js,jsx,tsx,ts,less,md,json}": [
"prettier --write"
]
Expand All @@ -55,16 +56,21 @@
"@ant-design/pro-table": "2.30.1",
"@antv/x6": "^1.18.5",
"@antv/x6-react-components": "^1.1.7",
"@babel/runtime-corejs2": "^7.10.3",
"@monaco-editor/react": "^4.3.1",
"@rjsf/antd": "2.2.0",
"@rjsf/core": "2.2.0",
"@types/js-yaml": "^4.0.0",
"@umijs/route-utils": "^2.2.0",
"ajv": "^7.0.3",
"ajv-formats": "^1.5.1",
"antd": "^4.4.0",
"antd-dayjs-webpack-plugin": "1.0.0",
"base-64": "^1.0.0",
"classnames": "^2.2.6",
"dayjs": "1.8.28",
"core-js": "^2.5.7",
"dayjs": "1.8.30",
"dva-core": "1.6.0-beta.7",
"file-saver": "^2.0.5",
"js-beautify": "^1.13.0",
"js-yaml": "^4.0.0",
Expand All @@ -75,18 +81,25 @@
"path-to-regexp": "2.4.0",
"qs": "^6.9.0",
"query-string": "^6.13.7",
"re2": "^1.15.4",
"react": "^16.8.6",
"react-copy-to-clipboard": "^5.0.3",
"react-device-detect": "^1.12.1",
"react-dom": "^16.8.6",
"react-helmet-async": "^1.0.4",
"react-is": ">= 16.8.0",
"react-router": "^4.3.1 || ^5.0.0",
"redbox-react": "1.x",
"redux": "4.x",
"start-server-and-test": "^1.11.5",
"styled-components": "^5.2.1",
"typescript": ">= 2.7",
"umi": "^3.1.2",
"umi-request": "^1.0.8",
"url-regex-safe": "^1.0.2",
"use-merge-value": "^1.0.1",
"uuid": "7.0.3",
"webpack": "^4.40.0 || ^5.0.0",
"yaml": "^1.10.0"
},
"devDependencies": {
Expand Down
Loading