Commit Graph

4546 Commits

Author SHA1 Message Date
Dillon Kearns
2801ec542a Build up more generated Main.elm code. 2022-09-15 11:11:05 -07:00
Dillon Kearns
d98fbfe2bf Add starting point for wiring up elm-codegen for Main.elm. 2022-09-15 10:59:33 -07:00
Dillon Kearns
3bb7c37e4a Handle endings in toModuleName. 2022-09-15 10:39:22 -07:00
Dillon Kearns
ac57661c61 Add starting point for RoutePattern.toModuleName helper. 2022-09-15 10:36:56 -07:00
Dillon Kearns
cfd4832d10 Remove a redundant case. 2022-09-15 09:45:38 -07:00
Dillon Kearns
51d58d801a
Merge pull request #316 from dillonkearns/elm-codegen
Generate Route.elm with elm-codegen
2022-09-15 09:30:27 -07:00
Dillon Kearns
83f9adcf94 Rename property. 2022-09-15 09:22:10 -07:00
Dillon Kearns
cddf0ca412 Update docs. 2022-09-15 08:10:01 -07:00
Dillon Kearns
c3d3909eb5 Improve error output for elm-pages codegen command. 2022-09-15 08:07:50 -07:00
Dillon Kearns
810eb62aac Add withType helper for temporary incorrect type in codegen. 2022-09-15 07:56:59 -07:00
Dillon Kearns
48dec4bbd0 Add missing dependency. 2022-09-15 07:56:31 -07:00
Dillon Kearns
6b6e2c851a Review fixes. 2022-09-15 07:51:14 -07:00
Dillon Kearns
59a0bc1306 Review fixes. 2022-09-15 07:45:10 -07:00
Dillon Kearns
1df22b779e Address review error. 2022-09-15 07:43:46 -07:00
Dillon Kearns
e9ecdf582e Fix casing in route matching. 2022-09-14 15:53:27 -07:00
Dillon Kearns
3b9da87723 Fix command. 2022-09-14 14:53:10 -07:00
Dillon Kearns
e48f640019 Install missing dependencies. 2022-09-14 14:47:49 -07:00
Dillon Kearns
dffdfcd3ed Run elm-codegen install in prepare script. 2022-09-14 14:44:51 -07:00
Dillon Kearns
eebe715051 Run workflow on PRs to v3 alpha branch. 2022-09-14 14:38:51 -07:00
Dillon Kearns
0b8e7f9e8b Install missing dependencies. 2022-09-14 14:36:57 -07:00
Dillon Kearns
ea5ad24b0b Delete commented code. 2022-09-14 14:34:25 -07:00
Dillon Kearns
a29d3a8b85 Don't generate catchall in case expression when it's alreaady covered by a top-level optional splat route. 2022-09-14 14:33:50 -07:00
Dillon Kearns
88dbfb5a78 Remove generated Debug.todo. 2022-09-14 14:28:37 -07:00
Dillon Kearns
b93f6c6918 Add missing dependency. 2022-09-14 14:28:12 -07:00
Dillon Kearns
60329582d1 Extract out exposed generator functions to one place. 2022-09-14 14:08:17 -07:00
Dillon Kearns
cd896a3a45 Rearrange code. 2022-09-14 14:06:21 -07:00
Dillon Kearns
79ab6858bf Re-use top-level values. 2022-09-14 10:44:24 -07:00
Dillon Kearns
dda46333e7 Reuse declaration. 2022-09-14 10:32:26 -07:00
Dillon Kearns
b97dec34d1 Extract definition. 2022-09-14 10:30:37 -07:00
Dillon Kearns
2dcc1d0818 Remove duplicate definition. 2022-09-14 10:28:16 -07:00
Dillon Kearns
4c14042d6c Extract some common code. 2022-09-13 14:53:47 -07:00
Dillon Kearns
c24f8fe4c1 Remove duplication. 2022-09-13 14:33:55 -07:00
Dillon Kearns
a39c381264 Inline code. 2022-09-13 14:31:50 -07:00
Dillon Kearns
4c2e9d264a Add additional param types. 2022-09-13 14:25:51 -07:00
Dillon Kearns
d9f0a3ea08 Remove unused code. 2022-09-13 10:58:03 -07:00
Dillon Kearns
59a7165fa3 Add missing dependencies. 2022-09-13 10:54:49 -07:00
Dillon Kearns
ba517563f7 Remove hardcoded value. 2022-09-13 10:54:19 -07:00
Dillon Kearns
08015f49b9 Wire up baseUrl for Route module generation. 2022-09-13 10:49:51 -07:00
Dillon Kearns
92365d95b1 Generate Route.withoutBaseUrl. 2022-09-13 10:47:03 -07:00
Dillon Kearns
47751f3a2e Generate Route.link helper. 2022-09-13 10:38:16 -07:00
Dillon Kearns
621b7a76c1 Generate toLink function. 2022-09-13 10:31:01 -07:00
Dillon Kearns
c93e3d8f85 Fix case for index route codegen. 2022-09-13 08:55:41 -07:00
Dillon Kearns
b4aceaeb64 Add missing catchall branch. 2022-09-13 08:50:40 -07:00
Dillon Kearns
c85463933f Add missing dependency to example project. 2022-09-13 08:50:31 -07:00
Dillon Kearns
f07f5feac9 Remove debug.todo. 2022-09-13 08:50:24 -07:00
Dillon Kearns
90ae03c271 Improve some type annotations that are getting referenced incorrectly without the help of Elm.withType (see https://github.com/mdgriffith/elm-codegen/issues/48). 2022-09-13 08:42:12 -07:00
Dillon Kearns
ef9b664cb3 Fix redirectTo generated definition. 2022-09-13 08:20:29 -07:00
Dillon Kearns
24622df871 Generate routeToPath. 2022-09-13 08:17:23 -07:00
Dillon Kearns
56558ca126 Use segmentsToRoute in generated module. 2022-09-13 07:11:41 -07:00
Dillon Kearns
c81649d93b Handle required splats in generated route module. 2022-09-13 06:51:21 -07:00