mirror of
https://github.com/penpot/penpot.git
synced 2026-02-12 14:42:56 +00:00
🎉 Migrate to PNPM frontend module
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -2,5 +2,5 @@
|
||||
|
||||
corepack enable;
|
||||
corepack install;
|
||||
yarn install;
|
||||
yarn playwright install chromium;
|
||||
pnpm install;
|
||||
pnpx playwright install chromium;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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 "$@";
|
||||
|
||||
@@ -4,4 +4,4 @@ TARGET=${1:-app};
|
||||
|
||||
set -ex
|
||||
|
||||
exec yarn run watch:$TARGET
|
||||
exec pnpm run watch:$TARGET
|
||||
|
||||
Reference in New Issue
Block a user