Skip to content
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

Build a PoC editor #12

Open
Tahul opened this issue Aug 24, 2022 — with Volta.net · 1 comment
Open

Build a PoC editor #12

Tahul opened this issue Aug 24, 2022 — with Volta.net · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

Copy link
Contributor

Tahul commented Aug 24, 2022

As tokens module has been built to be used with an editor, this is the next step for this module!

First steps has been done in last commit, the editor should be able to do this:

  • Grab all tokens available from a dev / server / static apps
  • Generate a nice looking form out of it
    • To be decided with what should be build it, but it might be a nice way to try Nuxt Elements form features
  • Open an API that has multiple capabilities:
    • Receive modified tokens declaration from the editor
    • Returns built outputs
      • tokens.css to be re-injected in the running app
      • tokens.config.ts to be commited to the user repository
  • Create a runtime plugin able to receive a built tokens file, and replace the current declaration by the new one
  • Ensure this is all compatible with upcoming Nuxt projects
@Tahul Tahul added the enhancement New feature or request label Aug 24, 2022 — with Volta.net
@Tahul Tahul self-assigned this Aug 24, 2022
@pi0
Copy link

pi0 commented Aug 24, 2022

Mentioning just to be consistent with upcoming framework development. Config Editor will be also be a feature of nuxt/devtools and using nuxt/ui components. I would be nice collaboration opportunity if you use the same component library and help to implement missing form elements. Modules can plug in their UI using a webview (iframe) to devtools but it can probably look more native if using same design language.

Also for HMR support, if you migrate to app.config API, the plugin can inject them directly at runtime without need of AST modifications until applying final changes to write to the file.

/cc @antfu to be in context.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants