mirror of
https://github.com/penpot/penpot.git
synced 2026-04-25 11:18:36 +00:00
🎉 Migrate to PNPM exporter module
This commit is contained in:
parent
68184209be
commit
67a904824c
@ -112,10 +112,6 @@ COPY --from=penpotapp/imagemagick:7.1.2-0 /opt/imagick /opt/imagick
|
|||||||
WORKDIR /opt/penpot/exporter
|
WORKDIR /opt/penpot/exporter
|
||||||
USER penpot:penpot
|
USER penpot:penpot
|
||||||
|
|
||||||
RUN set -ex; \
|
RUN ./setup
|
||||||
corepack install; \
|
|
||||||
yarn install; \
|
|
||||||
yarn run playwright install chromium; \
|
|
||||||
rm -rf /opt/penpot/.yarn
|
|
||||||
|
|
||||||
CMD ["node", "app.js"]
|
CMD ["node", "app.js"]
|
||||||
|
|||||||
@ -4,7 +4,7 @@
|
|||||||
"license": "MPL-2.0",
|
"license": "MPL-2.0",
|
||||||
"author": "Kaleidos INC",
|
"author": "Kaleidos INC",
|
||||||
"private": true,
|
"private": true,
|
||||||
"packageManager": "yarn@4.12.0+sha512.f45ab632439a67f8bc759bf32ead036a1f413287b9042726b7cc4818b7b49e14e9423ba49b18f9e06ea4941c1ad062385b1d8760a8d5091a1a31e5f6219afca8",
|
"packageManager": "pnpm@10.26.2+sha512.0e308ff2005fc7410366f154f625f6631ab2b16b1d2e70238444dd6ae9d630a8482d92a451144debc492416896ed16f7b114a86ec68b8404b2443869e68ffda6",
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/penpot/penpot"
|
"url": "https://github.com/penpot/penpot"
|
||||||
@ -30,10 +30,10 @@
|
|||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"clear:shadow-cache": "rm -rf .shadow-cljs && rm -rf target",
|
"clear:shadow-cache": "rm -rf .shadow-cljs && rm -rf target",
|
||||||
"watch:app": "yarn run clear:shadow-cache && clojure -M:dev:shadow-cljs watch main",
|
"watch:app": "pnpm run clear:shadow-cache && clojure -M:dev:shadow-cljs watch main",
|
||||||
"watch": "yarn run watch:app",
|
"watch": "pnpm run watch:app",
|
||||||
"build:app": "clojure -M:dev:shadow-cljs release main",
|
"build:app": "clojure -M:dev:shadow-cljs release main",
|
||||||
"build": "yarn run clear:shadow-cache && yarn run build:app",
|
"build": "pnpm run clear:shadow-cache && pnpm run build:app",
|
||||||
"fmt:clj:check": "cljfmt check --parallel=false src/",
|
"fmt:clj:check": "cljfmt check --parallel=false src/",
|
||||||
"fmt:clj": "cljfmt fix --parallel=true src/",
|
"fmt:clj": "cljfmt fix --parallel=true src/",
|
||||||
"lint:clj": "clj-kondo --parallel --lint src/"
|
"lint:clj": "clj-kondo --parallel --lint src/"
|
||||||
|
|||||||
1048
exporter/pnpm-lock.yaml
generated
Normal file
1048
exporter/pnpm-lock.yaml
generated
Normal file
File diff suppressed because it is too large
Load Diff
0
exporter/pnpm-workspace.yaml
Normal file
0
exporter/pnpm-workspace.yaml
Normal file
@ -7,15 +7,13 @@ export NODE_ENV=production;
|
|||||||
|
|
||||||
corepack enable;
|
corepack enable;
|
||||||
corepack install || exit 1;
|
corepack install || exit 1;
|
||||||
yarn install || exit 1;
|
pnpm install || exit 1;
|
||||||
rm -rf target
|
rm -rf target
|
||||||
|
|
||||||
# Build the application
|
# Build the application
|
||||||
yarn run build;
|
pnpm run build;
|
||||||
|
|
||||||
# Copy package*.json files
|
cp pnpm-lock.yaml target/;
|
||||||
cp ../.yarnrc.yml target/;
|
|
||||||
cp yarn.lock target/;
|
|
||||||
cp package.json target/;
|
cp package.json target/;
|
||||||
|
|
||||||
cat <<EOF | tee target/setup
|
cat <<EOF | tee target/setup
|
||||||
@ -23,8 +21,8 @@ cat <<EOF | tee target/setup
|
|||||||
set -e;
|
set -e;
|
||||||
corepack enable;
|
corepack enable;
|
||||||
corepack install;
|
corepack install;
|
||||||
yarn install
|
pnpm install
|
||||||
yarn run playwright install chromium;
|
pnpx playwright install chromium;
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
chmod +x target/setup;
|
chmod +x target/setup;
|
||||||
|
|||||||
@ -4,4 +4,4 @@ TARGET=${1:-app};
|
|||||||
|
|
||||||
set -ex
|
set -ex
|
||||||
|
|
||||||
exec yarn run watch:$TARGET
|
exec pnpm run watch:$TARGET
|
||||||
|
|||||||
1658
exporter/yarn.lock
1658
exporter/yarn.lock
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user