Closed AlexandrHoroshih closed 5 months ago
Hello @theKashey !
I could not explicitly add you to reviewers of this PR (Github won't allow that for some reason), so i will just tag you then 😅
Great job👍 I'll handle the release during weekend.
The only missing moment is to put fs-based discovery into separate entrypoint and that would handle case for #40
Published, but as a part of v3 with a breaking change - discoverProjectStyles
should be now imported from used-styles/node
Closes #66 and also probably closes #40
This PR adds two new APIs to properly allow for a serialization of the styles lookup
serializeStylesLookup(def: StyleDef): SerializedStyleDef
- creates a serializable object from original styles lookup. Result can be then stringified with JSON.stringifyloadSerializedLookup(def: SerializedStyleDef): StyleDef
- transforms serialized style definition back to normal StyleDef, which can be used with any Scanner API