mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-11-25 02:41:01 +00:00
Moving from yarn to pnpm. (#4414)
* Moving from yarn to pnpm. * Prettier check.
This commit is contained in:
parent
9a2fb8e7c2
commit
eb0dc2fda4
5 changed files with 3147 additions and 2938 deletions
|
@ -3,6 +3,7 @@
|
||||||
|
|
||||||
variables:
|
variables:
|
||||||
- &rust_image "rust:1.75"
|
- &rust_image "rust:1.75"
|
||||||
|
- &install_pnpm "corepack enable pnpm"
|
||||||
- &slow_check_paths
|
- &slow_check_paths
|
||||||
- path:
|
- path:
|
||||||
# rust source code
|
# rust source code
|
||||||
|
@ -41,7 +42,7 @@ steps:
|
||||||
prettier_check:
|
prettier_check:
|
||||||
image: tmknom/prettier:3.0.0
|
image: tmknom/prettier:3.0.0
|
||||||
commands:
|
commands:
|
||||||
- prettier -c . '!**/volumes' '!**/dist' '!target' '!**/translations'
|
- prettier -c . '!**/volumes' '!**/dist' '!target' '!**/translations' '!api_tests/pnpm-lock.yaml'
|
||||||
|
|
||||||
toml_fmt:
|
toml_fmt:
|
||||||
image: tamasfe/taplo:0.8.1
|
image: tamasfe/taplo:0.8.1
|
||||||
|
@ -182,11 +183,12 @@ steps:
|
||||||
LEMMY_DATABASE_URL: postgres://lemmy:password@database:5432
|
LEMMY_DATABASE_URL: postgres://lemmy:password@database:5432
|
||||||
DO_WRITE_HOSTS_FILE: "1"
|
DO_WRITE_HOSTS_FILE: "1"
|
||||||
commands:
|
commands:
|
||||||
|
- *install_pnpm
|
||||||
- apt update && apt install -y bash curl postgresql-client
|
- apt update && apt install -y bash curl postgresql-client
|
||||||
- bash api_tests/prepare-drone-federation-test.sh
|
- bash api_tests/prepare-drone-federation-test.sh
|
||||||
- cd api_tests/
|
- cd api_tests/
|
||||||
- yarn
|
- pnpm i
|
||||||
- yarn api-test
|
- pnpm api-test
|
||||||
when: *slow_check_paths
|
when: *slow_check_paths
|
||||||
|
|
||||||
federation_tests_server_output:
|
federation_tests_server_output:
|
||||||
|
|
3136
api_tests/pnpm-lock.yaml
Normal file
3136
api_tests/pnpm-lock.yaml
Normal file
File diff suppressed because it is too large
Load diff
|
@ -10,8 +10,8 @@ killall -s1 lemmy_server || true
|
||||||
./api_tests/prepare-drone-federation-test.sh
|
./api_tests/prepare-drone-federation-test.sh
|
||||||
popd
|
popd
|
||||||
|
|
||||||
yarn
|
pnpm i
|
||||||
yarn api-test || true
|
pnpm api-test || true
|
||||||
|
|
||||||
killall -s1 lemmy_server || true
|
killall -s1 lemmy_server || true
|
||||||
killall -s1 pict-rs || true
|
killall -s1 pict-rs || true
|
||||||
|
|
2930
api_tests/yarn.lock
2930
api_tests/yarn.lock
File diff suppressed because it is too large
Load diff
|
@ -52,7 +52,7 @@ ask_to_auto_reload() {
|
||||||
done
|
done
|
||||||
if [ "$auto_reload_final" = 1 ]
|
if [ "$auto_reload_final" = 1 ]
|
||||||
then
|
then
|
||||||
cd ui && yarn start
|
cd ui && pnpm dev
|
||||||
cd server && cargo watch -x run
|
cd server && cargo watch -x run
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
@ -62,8 +62,9 @@ ask_to_init_db
|
||||||
|
|
||||||
# Build the web client
|
# Build the web client
|
||||||
cd ui
|
cd ui
|
||||||
yarn
|
pnpm i
|
||||||
yarn build
|
pnpm prebuild:prod
|
||||||
|
pnpm build:prod
|
||||||
|
|
||||||
# Build and run the backend
|
# Build and run the backend
|
||||||
cd ../server
|
cd ../server
|
||||||
|
|
Loading…
Reference in a new issue