Commit Graph

1191 Commits

Author SHA1 Message Date
Dillon Kearns
8ff1f21754 Change document's body to List of Html instead of a single element. 2022-10-05 12:40:06 -07:00
Dillon Kearns
3064f9ee93 Remove unused code. 2022-10-05 08:44:52 -07:00
Dillon Kearns
630e458b0e Build elm-pages-codegen.js compiled code for generator in bundle. 2022-10-04 14:28:00 -07:00
Dillon Kearns
381b5844f5 Move some code back to package instead of copied code. 2022-10-03 14:38:54 -07:00
Dillon Kearns
520961ec32 Copy over some more internal modules in codegen step. 2022-10-03 09:56:17 -07:00
Dillon Kearns
131f7b750c Remove unused. 2022-09-27 08:49:31 -07:00
Dillon Kearns
4f13650b73 Delete unused. 2022-09-27 08:47:51 -07:00
Dillon Kearns
54d6184b64 Remove elm-pages add command. 2022-09-27 08:31:20 -07:00
Dillon Kearns
975eff210c Remove obsolete code. 2022-09-23 14:28:43 -07:00
Dillon Kearns
3672ad15c9 Print better message on error. 2022-09-20 13:22:40 -07:00
Dillon Kearns
2f6650d904 Wire up elm-codegen init function. 2022-09-19 18:58:47 -07:00
Dillon Kearns
a20d920852 Print nicer errors for codegen errors. 2022-09-15 16:38:56 -07:00
Dillon Kearns
bf8e94d787 Wire through phase string. 2022-09-15 13:21:30 -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
83f9adcf94 Rename property. 2022-09-15 09:22:10 -07:00
Dillon Kearns
c3d3909eb5 Improve error output for elm-pages codegen command. 2022-09-15 08:07:50 -07:00
Dillon Kearns
d9f0a3ea08 Remove unused code. 2022-09-13 10:58:03 -07:00
Dillon Kearns
08015f49b9 Wire up baseUrl for Route module generation. 2022-09-13 10:49:51 -07:00
Dillon Kearns
7df5986d80 Sort routes for elm-codegen generator flag. 2022-09-12 12:16:35 -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
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
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
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
d6597b43ce Generate docs.json file as part of scaffold command. 2022-09-09 15:19:08 -07:00
Dillon Kearns
b409ef1957 Parse RouteParams in scaffolding generator. 2022-09-09 12:45:28 -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
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
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
5415fd83d7 Pass in fetchers with their formId's, and implement isTransitioning status for fetchers. 2022-08-25 10:59:39 -07:00
Dillon Kearns
2b5737d0fb Evaluate thunks for Keyed nodes with Lazy children.
Minimal reproduction:

```elm
 [ 1 ]
    |> List.indexedMap
        (\index _ ->
            ( String.fromInt index, lazy2 (\_ _ -> li [] []) () () )
        )
    |> Keyed.ul []
```
2022-08-25 09:46:42 -07:00
Dillon Kearns
1cfdc839b6 Fix typo. 2022-08-24 12:45:40 -07:00
Dillon Kearns
9cd76dc614 Include Json_wrap in HTML rendering code for all compile modes. 2022-08-24 12:11:52 -07:00
Dillon Kearns
3745c76ecb Only run elm-optimize-level-2 for --optimize flag. 2022-08-24 11:55:36 -07:00
Dillon Kearns
5595493fcc Don't use --optimize in CLI prod build for now. 2022-08-24 11:50:50 -07:00
Dillon Kearns
68d9e687b7 Restore executables check. 2022-08-22 13:39:13 -07:00
Dillon Kearns
f4c50f9310 Comment out required executables check temporarily to see if windows ci succeeds without that check. 2022-08-22 09:20:35 -07:00
Dillon Kearns
1b3c7b8ce8 Add logging timing output. 2022-08-18 20:19:11 -07:00
Dillon Kearns
9beeddc4a8 Remove unused require. 2022-08-17 14:03:44 -07:00
Dillon Kearns
b8909834b0 Wire through hardcoded flag to turn HTTP caching on or off for DataSources. 2022-07-12 01:45:45 -07:00
Dillon Kearns
ba1823cd82 Delete log noise. 2022-07-09 08:57:24 -07:00
Dillon Kearns
a8bb62a40e Rename variable in route module template. 2022-07-08 14:46:55 -07:00
Dillon Kearns
da29205702 Fix arguments for dev server CLI compilation. 2022-07-08 09:56:58 -07:00
Dillon Kearns
b2a97219f5 Re-order arguments for consistency. 2022-07-08 09:38:14 -07:00
Dillon Kearns
4c9986702b Include Html.Lazy thunk evaluation in server-side rendering in dev server. 2022-07-08 09:37:08 -07:00
Dillon Kearns
6f35f55021 Update path in build script calling adapter code. 2022-07-05 11:08:57 -07:00
Dillon Kearns
343b30bc3a Try using esbuild bundle option. 2022-07-05 10:58:00 -07:00
Dillon Kearns
e47f1acf82 Remove obsolete watcher command. 2022-06-30 10:25:24 -07:00
Dillon Kearns
4d0f9a8708 Prevent duplicate leading file path by using resolve instead of prepending cwd. 2022-06-29 12:45:33 -07:00
Dillon Kearns
da6e7d7313 Remove some Debug statements. 2022-06-28 14:48:57 -07:00
Dillon Kearns
d5b6c5bd47 Rename module. 2022-06-18 10:29:41 -07:00
Dillon Kearns
d133441cb7 Wire up prototype for client-side form state. 2022-06-02 11:32:35 -07:00
Dillon Kearns
30d0fe65fa Expose in-flight fetchers state. 2022-05-20 10:08:27 -07:00
Dillon Kearns
2315f1eaa0 Wire up initial prototype for transition state. 2022-05-19 09:32:19 -07:00
Dillon Kearns
c5ad2c5e40 Fix watcher pattern for dev server to re-run codegen. 2022-05-17 08:55:58 -07:00
Dillon Kearns
05f2702e97 Update elm-pages add codegen template. 2022-05-13 11:56:18 -07:00
Dillon Kearns
e01415407f Use wrapper Pages.Msg.Msg to enable wiring up Submit msg's for the framework to handle. 2022-05-13 09:03:09 -07:00
Dillon Kearns
de24b30549 Wire up onActionMsg for route modules. 2022-05-12 11:16:15 -07:00
Dillon Kearns
e07eb264f0 Generate fetchers for all the paths needed for build compilation. 2022-05-11 11:06:14 -07:00
Dillon Kearns
53d0acb1ec Extract Fetcher module and type. 2022-05-10 16:29:28 -07:00
Dillon Kearns
54b6891938 Remove obsolete Fetcher prototype functions and replace with new one. 2022-05-10 11:11:27 -07:00
Dillon Kearns
5b9fd32a7c Pass in fetcher for current Route as part of StaticPayload. 2022-05-10 10:16:09 -07:00
Dillon Kearns
d608b34e91 Add header to indicate when to include only action data. 2022-05-09 10:19:42 -07:00
Dillon Kearns
2192dd30af Add prototype of function to run Fetcher with a follow-up call to reload route data. 2022-05-06 11:19:24 -07:00
Dillon Kearns
62c6e62922 Wire up initial action data to init and view. 2022-05-04 09:59:18 -07:00
Dillon Kearns
c19fa6e40a Update doc comments for elm-pages docs. 2022-05-03 14:44:51 -07:00
Dillon Kearns
fa10ce7eaf Generate fetcher modules 2022-05-03 14:36:08 -07:00
Dillon Kearns
5a664782cd Initial prototype of ActionData. 2022-05-03 11:30:52 -07:00
Dillon Kearns
cc30fc028a Remove unused. 2022-04-28 11:59:08 -07:00
Dillon Kearns
eae145ebe5 Avoid printing undefined to console if a promise is rejected with no argument. 2022-04-22 16:00:14 -07:00
Dillon Kearns
494f1f26d7 Prevent builds from hanging when there is a build error in a DataSource for getting build-time paths. 2022-04-22 15:58:38 -07:00
Dillon Kearns
9a36ebb7ca Fix generated route pattern for optional route params in _redirects. 2022-04-11 10:29:41 -07:00
Dillon Kearns
2934da1958 Fix route matcher for optional route segments so it supports routing to index route. 2022-04-10 16:31:20 -07:00
Dillon Kearns
56b3e7f855 Remove redundant log. 2022-04-06 16:45:53 -07:00
Dillon Kearns
ad33d06397 Use concrete types in some scaffolded code. 2022-04-06 16:43:33 -07:00
Dillon Kearns
c877aab519 Expose Route.toString. 2022-04-06 16:38:41 -07:00
Dillon Kearns
52c8a73485 Add redirectTo helper. 2022-04-06 16:38:32 -07:00
Dillon Kearns
911270bb40 Pass in htmlTemplate to adapter to avoid having to read the file manually. 2022-04-06 08:54:23 -07:00
Dillon Kearns
10c927c414 Fingerprint elm.js browser bundle. 2022-04-05 15:50:57 -07:00
Dillon Kearns
830cc40bdd Restore form event adapter in build output. 2022-04-05 09:03:42 -07:00
Dillon Kearns
3acfe22bfb Fix template generators. 2022-04-05 08:36:34 -07:00
Dillon Kearns
8112e477e8 Extract functions into record. 2022-04-05 08:26:26 -07:00
Dillon Kearns
a4054b44ed Make sure error output is printed (may print extra when there are review errors though). 2022-04-04 16:23:45 -07:00
Dillon Kearns
d59c57ac01 Delete obsolete code (superceded by fetchRouteData). 2022-04-04 16:15:06 -07:00
Dillon Kearns
72acff1ea4 Update generator template. 2022-04-02 20:40:35 -07:00
Dillon Kearns
474432bda4 Add missing import. 2022-04-01 20:48:59 -07:00
Dillon Kearns
5c7833966d Try new 404 generator setup. 2022-03-31 16:30:57 -07:00
Dillon Kearns
fadd3adf58 Use absolute path for module preload directive. 2022-03-31 16:28:15 -07:00
Dillon Kearns
5eafcb8998 Use correct ErrorPage type in init, and update the pokedex error pages. 2022-03-31 11:01:47 -07:00
Dillon Kearns
175417a7cc Wire up hardcoded error page state. 2022-03-31 10:46:39 -07:00
Dillon Kearns
c8ff9e0ca1 Try optimized build. 2022-03-31 09:51:12 -07:00
Dillon Kearns
e53c897eb6 Try rendering static 404 pages in build. 2022-03-31 09:24:46 -07:00
Dillon Kearns
07fd572c46 Wire up head in ErrorPage. 2022-03-31 09:18:02 -07:00