-
Notifications
You must be signed in to change notification settings - Fork 279
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor!: clean up core
exports and synthesizer modules
#1367
Conversation
± Registry diff
📊 PerformanceKeyNote that each bar component rounds up to the nearest 100ms, so each full bar is an overestimate by up to 400ms.
Data
|
Codecov Report
@@ Coverage Diff @@
## main #1367 +/- ##
==========================================
+ Coverage 62.70% 64.67% +1.96%
==========================================
Files 70 65 -5
Lines 8738 7597 -1141
Branches 2110 1800 -310
==========================================
- Hits 5479 4913 -566
+ Misses 3116 2554 -562
+ Partials 143 130 -13
|
Deploying with Cloudflare Pages
|
core
exports and synthesizer modulescore
exports and synthesizer modules
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great to me! A couple minor requests; the other important thing is to make sure the tests we've moved to @penrose/edgeworth
still run after this change.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great!
Description
Resolves #1255.
This PR cleans up exported functions and types from
core
and move synthesizer-related modules tosynthesizer-ui
.@penrose/synthesizer
, the CLI forcore/synthesis
is also deprecated.Implementation strategy and design decisions
core
exports, i.e.dist/index.js
, for all types and functionsimport { compileSubstance } from "@penrose/core/compiler/Substance"
to work.@penrose/synthesizer-ui
is renamed to@penrose/edgeworth
synthesis
andanalysis
folders incore
are moved to@penrose/edgeworth
Examples with steps to reproduce them
Checklist
Open questions
We might consider banning direct imports of subpaths of
dist
to reduce the surface area of thecore
API.