paperclip-ui / legacy-paperclip

Paperclip is a common language for designers and developers
http://paperclip.dev
Other
201 stars 13 forks source link

"freeze" CLI functionality that enables reverse typed definition of Paperclip file #888

Open crcn opened 2 years ago

crcn commented 2 years ago

Something like paperclip snapshot. This would generate snapshots of PC files that would be used to ensure that the same exports are maintained for code that is consuming these PC files. This would be particularly useful for cases where PC files have a BE that's less accessible to the user (such as a template for a website). In this case, Paperclip's VS Code extension + build tools will help guide the user into maintaining the same API boundaries.

crcn commented 2 years ago

Thought about this after visiting https://vercel.com/. Hypothetically PC could be used just as the view layer for an entire site & provide swim lanes for anyone to come in and do customization on HTML & CSS without needing to muck around with the more complicated source code. This could then lower the barrier for non-engineers. Some things that need to be ironed out for this:

Extra: some ability to manage static data for the BE.

This could also be used for https://jekyllrb.com/. Easy low hanging fruit might be to take an existing template and re-build in Paperclip.

crcn commented 2 years ago

In addition to this, there may need to be some stronger types on inferences. For example onSubmit should always be applied to form elements.