0
Fork 0
mirror of https://github.com/penpot/penpot-export.git synced 2025-01-07 15:39:00 -05:00
penpot-export/packages/core
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
..
src/lib refactor(core): decouple name scoping logic from API adapters 2023-09-13 11:35:18 +02:00
.gitignore refactor!: split penpot-export into cli and core modules 2023-09-01 17:43:45 +02:00
.prettierignore refactor!: split penpot-export into cli and core modules 2023-09-01 17:43:45 +02:00
.prettierrc.json refactor!: split penpot-export into cli and core modules 2023-09-01 17:43:45 +02:00
package.json refactor(core): validate user config in a more expressive way 2023-09-04 17:42:34 +02:00
tsconfig.json refactor!: split penpot-export into cli and core modules 2023-09-01 17:43:45 +02:00