mirror of
https://github.com/penpot/penpot.git
synced 2026-11-15 22:54:45 +00:00
The exporter becomes a durable-job worker: the shared item and params contract, the creation command (mixed scope rejected, single-use runs marked transient), the external job-def, and the worker that consumes the `:exporter` queue with one management client, serialized beats, multipart settle and share-aware asset fetches. The server side it needs lands here too: per-tenant `exporter:<tenant>` key ids derived from the same secret (the bare legacy id keeps serving the deployment own tenant), a heartbeat that filters by tenant in its own write, and the management API with session mint and settle scoped to the job owner. The artifact upload is multipart-only and confined to the parser temp areas. The frontend follows the job on the websocket: milestones, artifact download and cancel by job id, with the payload validated against the contract by a test per caller. nginx, devenv and the docs drop the old exporter endpoint. AI-assisted-by: deepseek-v4.1-flash
41 lines
941 B
Clojure
41 lines
941 B
Clojure
{:deps {:aliases [:dev]}
|
|
:source-paths ["src" "vendor" "../common"]
|
|
|
|
:builds
|
|
{:main
|
|
{:target :esm
|
|
:runtime :node
|
|
:output-dir "target/"
|
|
|
|
:modules
|
|
{:app
|
|
{:entries []
|
|
:init-fn exporter.main/main}}
|
|
|
|
:js-options
|
|
{:entry-keys ["module" "browser" "main"]
|
|
:export-conditions ["module" "import", "browser" "require" "default"]
|
|
:js-provider :import}
|
|
|
|
:compiler-options
|
|
{:output-feature-set :es2020
|
|
:output-wrapper false}
|
|
|
|
:release
|
|
{:compiler-options
|
|
{:fn-invoke-direct true
|
|
:source-map true
|
|
:optimizations #shadow/env ["PENPOT_BUILD_OPTIMIZATIONS" :as :keyword :default :simple]
|
|
:pseudo-names true
|
|
:pretty-print true
|
|
:anon-fn-naming-policy :off
|
|
:source-map-detail-level :all}}}
|
|
|
|
:test
|
|
{:target :esm
|
|
:output-dir "target/tests"
|
|
:runtime :node
|
|
:js-options {:js-provider :import}
|
|
:modules
|
|
{:test {:init-fn exporter-tests.runner/-main}}}}}
|