go-vela / community

Community Information for Vela (Target's official Pipeline Automation Framework)
https://go-vela.github.io/docs/
Apache License 2.0
22 stars 3 forks source link

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

Open plyr4 opened 7 months ago

plyr4 commented 7 months ago

Description

with https://github.com/go-vela/ui/pull/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 commented 7 months ago

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

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

plyr4 commented 7 months ago

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