0
Fork 0
mirror of https://github.com/penpot/penpot-export.git synced 2025-02-01 20:01:30 -05:00
penpot-export/packages/core/src/lib
Roberto Redradix 660f2b9ae9 refactor(core): decouple name scoping logic from API adapters
Introduce the concept of transformer functions. A transformer function will receive an assets as an input and will output the same kind of asset.

Scoping class names in CSS was a transformation applied to typography and page components assets when the output is CSS.

Decoupling this transformation from the rest of the adapter results in cleaner API inbound adapters, without any project-specific logic, so now they can be co-located close to the PenpotClient code.
2023-09-13 11:35:18 +02:00
..
api refactor(core): decouple name scoping logic from API adapters 2023-09-13 11:35:18 +02:00
config feat(core): allow to export SCSS files 2023-09-07 16:59:03 +02:00
outputters refactor(core): decouple name scoping logic from API adapters 2023-09-13 11:35:18 +02:00
transformers refactor(core): decouple name scoping logic from API adapters 2023-09-13 11:35:18 +02:00
errors.ts refactor(core): add better semantics with wrapper internal types 2023-09-12 18:19:10 +02:00
index.ts refactor(core): decouple name scoping logic from API adapters 2023-09-13 11:35:18 +02:00
types.ts refactor(core): decouple name scoping logic from API adapters 2023-09-13 11:35:18 +02:00