Commit Graph

1217 Commits

Author SHA1 Message Date
Dillon Kearns
f10d1c7a0c Add a compatability key to ensure that the Elm and NPM package versions are compatible. 2022-11-07 11:17:47 +05:30
Dillon Kearns
6bf1881de4 Include preload tags by default from Vite processing, and add config hook for customizing preload tags. 2022-11-02 15:14:36 +05:30
Dillon Kearns
7c229cc88a Include new function in default config. 2022-11-02 14:51:02 +05:30
Dillon Kearns
6a06767120 Include optional parameter for htmlToString configuration. 2022-10-29 19:38:19 +05:30
Dillon Kearns
7c9fb152c8 Move some meta tags from elm-pages.config.mjs template to Elm code. 2022-10-29 18:54:03 +05:30
Dillon Kearns
219204b8e9 Remove some extra whitespace. 2022-10-29 18:26:20 +05:30
Dillon Kearns
9fe5ebe1b8 Pull charset into hardcoded value since it isn't configurable and needs to be placed within the first 1024 bytes of the document: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta#attr-charset. 2022-10-29 10:34:02 +05:30
Dillon Kearns
39ec4f20cc Fix import in html template. 2022-10-28 11:46:25 +05:30
Dillon Kearns
cc5c6a07a3 Fix default head tags config function. 2022-10-28 11:29:07 +05:30
Dillon Kearns
0f8cd29c14 Allow for user-customized head tags template that is processed by Vite. 2022-10-28 10:58:36 +05:30
Dillon Kearns
d8ea1a60b3 Merge vite config options from user configuration using a deep merge utility from the svelte-kit codebase. 2022-10-24 15:40:45 -07:00
Dillon Kearns
f4f7d955f5 Remove log statement. 2022-10-14 12:36:08 -07:00
Dillon Kearns
71df2495a0 Support aliased or non aliased imports of DataSource module in codemod. 2022-10-14 11:26:42 -07:00
Dillon Kearns
07a71e9b37 Support aliased and unaliased imports for Server.Request in codemod rule. 2022-10-14 11:20:47 -07:00
Dillon Kearns
a2c79f73cb Add missing imports in tests. 2022-10-14 10:44:07 -07:00
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
96dd80e8a0 Move elm-review dependencies out into hidden review sub-projects. 2022-10-04 13:15:20 -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