Commit Graph

4532 Commits

Author SHA1 Message Date
Dillon Kearns
d38d398460 Include hardcoded baseUrl in generated Route file. 2022-09-12 13:43:02 -07:00
Dillon Kearns
a9ac1ca707 Add test case for optional segment. 2022-09-12 13:21:41 -07:00
Dillon Kearns
261cd64ed5 Handle optional splat. 2022-09-12 13:20:44 -07:00
Dillon Kearns
2115b9be9d Handle splat route for generating variants. 2022-09-12 13:19:25 -07:00
Dillon Kearns
fdefee7036 Update send-grid repo branch. 2022-09-12 12:17:32 -07:00
Dillon Kearns
7df5986d80 Sort routes for elm-codegen generator flag. 2022-09-12 12:16:35 -07:00
Dillon Kearns
3f12c6ccb5 Add test for dynamic route param. 2022-09-12 12:16:18 -07:00
Dillon Kearns
c27459fa8d Add RoutePattern.toVariant helper. 2022-09-12 11:59:36 -07:00
Dillon Kearns
d8639e617b Pass in list of templates to new code generation for Route module. 2022-09-12 11:49:02 -07:00
Dillon Kearns
aafbfd22d2 Move decapitlize logic out of parsing for RoutePattern and into building up record fields. 2022-09-12 11:47:51 -07:00
Dillon Kearns
ba6f0903ce Add boilerplate for elm-codegen. 2022-09-12 10:16:00 -07:00
Dillon Kearns
a0fa6c2188 Run the elm-pages code generation step and elm-codegen install as part of codegen command. 2022-09-11 07:50:41 -07:00
Dillon Kearns
80fb8a1466 Simplify elm-codegen setup in todos app. 2022-09-11 07:50:12 -07:00
Dillon Kearns
928830ead7 Update package-lock. 2022-09-10 12:22:01 -07:00
Dillon Kearns
f4d524bc9e Fix build. 2022-09-10 12:20:28 -07:00
Dillon Kearns
c628c073a0 Add missing doc comments. 2022-09-10 11:05:25 -07:00
Dillon Kearns
be28313594 Fix module name patterns. 2022-09-10 10:53:46 -07:00
Dillon Kearns
efc81b9401 Report errors for missing modules or invalid module name syntax. 2022-09-10 10:52:39 -07:00
Dillon Kearns
74826014ef Use safe subscriptions to ports for codegen CLI. 2022-09-10 10:44:07 -07:00
Dillon Kearns
ab0fd3a593 elm-pages codegen finds a matching module from the codegen/ folder. 2022-09-10 10:37:24 -07:00
Dillon Kearns
7c61db1f55 Change command names. 2022-09-10 10:20:40 -07:00
Dillon Kearns
cddaab7264 Add function for generator with buildNoState. 2022-09-10 10:18:39 -07:00
Dillon Kearns
2a1cd5cb8d Use builder pattern for Pages.Generate. 2022-09-09 17:18:23 -07:00
Dillon Kearns
a8cfc508a1 Compile Elm for scaffold task. Turn off docs.json generation in that step for now because of intermittent JSON parse error. 2022-09-09 16:22:15 -07:00
Dillon Kearns
6f1af9a288 Update name in docs.json. 2022-09-09 16:21:34 -07:00
Dillon Kearns
d6597b43ce Generate docs.json file as part of scaffold command. 2022-09-09 15:19:08 -07:00
Dillon Kearns
459f6df9de Remove module contract requirement for View.placeholder since it is obsolete now with new scaffolding. 2022-09-09 13:09:02 -07:00
Dillon Kearns
2d7f1961e3 Re-use some RouteParams parsing/generating code in NoContractViolations rule. 2022-09-09 13:07:29 -07:00
Dillon Kearns
b409ef1957 Parse RouteParams in scaffolding generator. 2022-09-09 12:45:28 -07:00
Dillon Kearns
8e8ab404db Extract out hardcoded names for framework types into helper. 2022-09-09 11:09:25 -07:00
Dillon Kearns
8711b7185a Add basic setup for a scaffold command using elm-codegen. 2022-09-09 10:56:54 -07:00
Dillon Kearns
67af0e53d0 Include View and Effect modules in elm-application.json, and include @docs comments to make them valid. 2022-09-09 10:53:19 -07:00
Dillon Kearns
23cc852ecb Remove obsolete example. 2022-09-06 16:50:07 -07:00
Dillon Kearns
07075b35ee Force rebuild. 2022-09-06 15:04:05 -07:00
Dillon Kearns
9874738c0c Rename variable. 2022-09-06 14:33:24 -07:00
Dillon Kearns
e6f456bfeb Don't scroll after fetchers complete, and don't do fresh page loads for hash changes (just do browser behavior for scrolling to anchor link locations). 2022-09-06 14:32:23 -07:00
Dillon Kearns
4689157d47 Add missing doc comment. 2022-09-06 11:04:11 -07:00
Dillon Kearns
880b32563d Force build. 2022-09-06 10:14:41 -07:00
Dillon Kearns
dfdfbedd2b Include an action attribute on forms with the default action. 2022-09-06 10:10:57 -07:00
Dillon Kearns
2a0c775462 Handle decoding events for form submissions with no buttons (no submitter). 2022-09-06 09:47:37 -07:00
Dillon Kearns
e264ce3d07 Include completed fetcher items with their parsed ActionData in fetchers list. 2022-09-06 09:24:07 -07:00
Dillon Kearns
3cdc466e3f Add wiring for storing done fetchers with actionData. 2022-08-31 08:37:11 -07:00
Dillon Kearns
3180b9c6d1 Remove unused. 2022-08-30 18:25:25 -07:00
Dillon Kearns
3c668d83e3 Don't fail when elm-optimize-level-2 prints warnings. 2022-08-30 16:41:48 -07:00
Dillon Kearns
2b34ae971b Add another end-to-end test case for nested lazy nodes within keyed nodes. 2022-08-25 12:11:45 -07:00
Dillon Kearns
abc91541e2 Add another HTML printing test case and handle lazy HTML nodes nested under keyed nodes. 2022-08-25 12:07:23 -07:00
Dillon Kearns
18a5d20ccf Review fixes. 2022-08-25 11:57:33 -07:00
Dillon Kearns
9772828563 Migrate code in smoothies app. 2022-08-25 11:04:57 -07:00
Dillon Kearns
5415fd83d7 Pass in fetchers with their formId's, and implement isTransitioning status for fetchers. 2022-08-25 10:59:39 -07:00
Dillon Kearns
fa1686cd4c Fix some errors in smoothies app. 2022-08-25 10:59:02 -07:00