🎉 Migrate to PNPM frontend module

This commit is contained in:
Andrey Antukh
2025-12-30 17:00:53 +01:00
parent 34f2943dcd
commit 1246250198
22 changed files with 9206 additions and 12874 deletions

View File

@@ -18,10 +18,9 @@ export VERSION_TAG="${VERSION}-${BUILD_TS}";
# performant code on macros (example: rumext)
export NODE_ENV=production;
corepack enable;
corepack install;
yarn install;
pnpm install;
rm -rf target/dist;
rm -rf resources/public;
@@ -33,9 +32,9 @@ pushd ../render-wasm;
./build
popd
yarn run build:app:main $EXTRA_PARAMS;
yarn run build:app:libs;
yarn run build:app:assets;
pnpm run build:app:main $EXTRA_PARAMS;
pnpm run build:app:libs;
pnpm run build:app:assets;
sed -i "s/\.\/render.js/.\/render.js?version=$VERSION_TAG/g" resources/public/js/worker/main*.js
@@ -43,6 +42,6 @@ rsync -avr resources/public/ target/dist/
if [ "$INCLUDE_STORYBOOK" = "yes" ]; then
# build storybook
yarn run build:storybook || exit 1;
pnpm run build:storybook || exit 1;
rsync -avr storybook-static/ target/dist/storybook-static;
fi

View File

@@ -14,6 +14,6 @@ export NODE_ENV=production;
corepack enable;
corepack install || exit 1;
yarn install || exit 1;
pnpm install || exit 1;
yarn run build:storybook || exit 1;
pnpm run build:storybook || exit 1;

View File

@@ -2,5 +2,5 @@
corepack enable;
corepack install;
yarn install;
yarn playwright install chromium;
pnpm install;
pnpx playwright install chromium;

View File

@@ -3,7 +3,7 @@
set -ex
corepack enable;
corepack install;
yarn install;
pnpm install;
yarn run lint:scss;
yarn run test;
pnpm run lint:scss;
pnpm run test;

View File

@@ -6,5 +6,5 @@ set -ex
$SCRIPT_DIR/setup;
yarn run build:storybook
yarn run test:storybook
pnpm run build:storybook
pnpm run test:storybook

View File

@@ -6,4 +6,4 @@ set -ex
$SCRIPT_DIR/setup;
yarn run test:e2e -x --workers=2 --reporter=list "$@";
pnpm run test:e2e -x --workers=2 --reporter=list "$@";

View File

@@ -4,4 +4,4 @@ TARGET=${1:-app};
set -ex
exec yarn run watch:$TARGET
exec pnpm run watch:$TARGET