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

ui: page/route generation through elm-land CLI #961

Open
plyr4 opened this issue Mar 26, 2024 · 2 comments
Open

ui: page/route generation through elm-land CLI #961

plyr4 opened this issue Mar 26, 2024 · 2 comments
Labels
area/ui Indicates a change to the UI enhancement Indicates an improvement to a feature

Comments

@plyr4
Copy link
Contributor

plyr4 commented Mar 26, 2024

Description

with go-vela/ui#761 merged in, we moved a lot closer to being able to use the elm-land CLI to generate boiler plate code for new pages and routes. some more work is required, but it seems doable.

@plyr4 plyr4 added enhancement Indicates an improvement to a feature area/ui Indicates a change to the UI labels Mar 26, 2024
@plyr4
Copy link
Contributor Author

plyr4 commented Mar 26, 2024

started working on a fork of the elm-land CLI that takes does a couple specific things:

  • takes src/elm project structure into account
  • skips generation for Main.elm
  • applies the OSS license to all files

so far so good! it helped me generate the code changes in go-vela/ui#779

@plyr4
Copy link
Contributor Author

plyr4 commented Mar 26, 2024

one outstanding issue is the CLI wants to have a 1:1 relationship between pages and routes, so elm-land generate is overwriting the "alias routes" like <org>/<repo>/pulls because theres no specific page file for it... we could create a page file for each one? not too bad, but its going to be messy/hacky either way IMO

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/ui Indicates a change to the UI enhancement Indicates an improvement to a feature
Projects
None yet
Development

No branches or pull requests

1 participant