Files
Márk Tolmácsanddwelle 30a4c631a5 chore(repo): Move to pnpm (#12655)
* fix: Undeclared dependencies

Signed-off-by: Mark Tolmacs <mark@lazycat.hu>

* chore: Rationalize package versions

Signed-off-by: Mark Tolmacs <mark@lazycat.hu>

* chore: Remove old react app remnants

Signed-off-by: Mark Tolmacs <mark@lazycat.hu>

* feat: Conversion to pnpm

Signed-off-by: Mark Tolmacs <mark@lazycat.hu>

* fix: Circular deps #0

Signed-off-by: Mark Tolmacs <mark@lazycat.hu>

* fix: common package circular dependencies

Signed-off-by: Mark Tolmacs <mark@lazycat.hu>

* chore: Move history and undo/redo to excalidraw/excalidraw

Signed-off-by: Mark Tolmacs <mark@lazycat.hu>

* feat: AppState broken up across package boundaries

Signed-off-by: Mark Tolmacs <mark@lazycat.hu>

* fix: renderElement and binding type racionalization

Signed-off-by: Mark Tolmacs <mark@lazycat.hu>

* fix: Refactor linearElementEditor to not use types outside the package

Signed-off-by: Mark Tolmacs <mark@lazycat.hu>

* chore: Do not import self barrel file

Signed-off-by: Mark Tolmacs <mark@lazycat.hu>

* fix: All circular dependencies except core

Signed-off-by: Mark Tolmacs <mark@lazycat.hu>

* feat: Bump pnpm to 11

Signed-off-by: Mark Tolmacs <mark@lazycat.hu>

* fix: SASS deprecation warnings

Signed-off-by: Mark Tolmacs <mark@lazycat.hu>

* fix: Polynomial regular expression used on uncontrolled data

Signed-off-by: Mark Tolmacs <mark@lazycat.hu>

* fix: Vercel deploy

Signed-off-by: Mark Tolmacs <mark@lazycat.hu>

* feat: excalidraw/history package

Signed-off-by: Mark Tolmacs <mark@lazycat.hu>

* fix: Polynomial regex in SVG payload decoding

Signed-off-by: Mark Tolmacs <mark@lazycat.hu>

* fix: emit the internal packages' types from the editor again

The editor advertises ./common/*, ./element/*, ./history/*, ./math/* and
./utils/* type subpaths, but without the path aliases tsc treats those
packages as external libraries and no longer emits them. Include their
sources in the editor's type build, and drop the relative cross-package
import that made element/ come out half-emitted.

* feat: export the history classes of the editor's API from the entry

onIncrement hands out StoreIncrement subclasses and applyDeltas takes
StoreDelta, so export them next to CaptureUpdateAction. Hosts then need no
dependency of their own on @excalidraw/history.

* chore: refuse to publish packages with npm or yarn

Only pnpm publish rewrites workspace:* dependencies and applies
publishConfig.exports, so a package published with another client can't be
installed.

---------

Signed-off-by: Mark Tolmacs <mark@lazycat.hu>
Co-authored-by: dwelle <5153846+dwelle@users.noreply.github.com>
2026-12-01 22:17:47 +01:00

78 lines
2.7 KiB
YAML

name: Stats
# Posts every master commit's production build (bundle size) and its page-load
# measurements — next to the commit before it, both built and measured
# alternately on the same runner — to the Excalidraw+ admin's Bundle size and
# Performance pages (scripts/stats/). No run cancels another, so commits merged
# close together are all measured.
# OSS_STATS_TOKEN lives in the `stats` environment, which only master can use.
on:
push:
branches: master
workflow_dispatch:
permissions:
contents: read
jobs:
bundle:
name: Bundle size
runs-on: ubuntu-latest
environment: stats
steps:
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
- name: Setup pnpm
uses: pnpm/action-setup@fc06bc1257f339d1d5d8b3a19a8cae5388b55320 # v4.4.0
- name: Setup Node.js
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
with:
node-version: 22.x
cache: pnpm
- name: Install
run: pnpm install --frozen-lockfile
- name: Build with bundle stats
run: pnpm stats:bundle
env:
VITE_APP_GIT_SHA: ${{ github.sha }}
VITE_APP_ENABLE_ESLINT: "false"
- name: Post to the Excalidraw+ admin
run: node scripts/stats/post.mjs bundle excalidraw-app/build/bundle-stats.json
env:
OSS_STATS_TOKEN: ${{ secrets.OSS_STATS_TOKEN }}
perf:
name: Performance
# a fixed image, so the runs stay comparable; Playwright 1.58 can't install
# its browser on ubuntu-latest's 26.04 either
runs-on: ubuntu-24.04
environment: stats
timeout-minutes: 40
env:
# master before the push; runs started by hand compare with the parent
BEFORE: ${{ github.event.before }}
steps:
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
with:
fetch-depth: 2
- name: Fetch the commit before the push
if: env.BEFORE
run: git fetch --no-tags --depth=1 origin "$BEFORE"
- name: Setup pnpm
uses: pnpm/action-setup@fc06bc1257f339d1d5d8b3a19a8cae5388b55320 # v4.4.0
- name: Setup Node.js
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
with:
node-version: 22.x
cache: pnpm
- name: Install
run: |
pnpm install --frozen-lockfile
pnpm exec playwright install --with-deps chromium
- name: Measure this commit and the one before it
run: pnpm stats:compare --base "${BEFORE:-HEAD^}" --iterations 6 --out perf.json
- name: Post to the Excalidraw+ admin
run: node scripts/stats/post.mjs perf perf.json
env:
OSS_STATS_TOKEN: ${{ secrets.OSS_STATS_TOKEN }}