Make the devenv runtine initialization yarn independent (#8023)

This commit is contained in:
Andrey Antukh 2026-01-07 11:21:58 +01:00 committed by GitHub
parent eff572d3bb
commit 36732a4bd3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with 27 additions and 15 deletions

1
.gitignore vendored
View File

@ -5,6 +5,7 @@
!.yarn/releases
!.yarn/sdks
!.yarn/versions
.pnpm-store
*-init.clj
*.css.json
*.jar

View File

@ -8,14 +8,10 @@ source ~/.bashrc
echo "[start-tmux.sh] Installing node dependencies"
pushd ~/penpot/frontend/
corepack install;
yarn install;
yarn playwright install chromium
./scripts/setup;
popd
pushd ~/penpot/exporter/
corepack install;
yarn install
yarn playwright install chromium
./scripts/setup;
popd
tmux -2 new-session -d -s penpot

8
exporter/scripts/setup Executable file
View File

@ -0,0 +1,8 @@
#!/usr/bin/env bash
set -e;
corepack enable;
corepack install;
yarn install;
yarn playwright install chromium

6
frontend/scripts/setup Executable file
View File

@ -0,0 +1,6 @@
#!/usr/bin/env bash
corepack enable;
corepack install;
yarn install;
yarn playwright install chromium;

View File

@ -1,10 +1,10 @@
#!/usr/bin/env bash
set -ex
corepack enable;
corepack install;
yarn install;
SCRIPT_DIR=$(dirname $0);
set -ex
$SCRIPT_DIR/setup;
yarn run playwright install chromium --with-deps;
yarn run build:storybook
yarn run test:storybook

View File

@ -1,8 +1,9 @@
#!/usr/bin/env bash
SCRIPT_DIR=$(dirname $0);
set -ex
corepack enable;
corepack install;
yarn install;
yarn run playwright install chromium --with-deps;
$SCRIPT_DIR/setup;
yarn run test:e2e -x --workers=2 --reporter=list "$@";