Commit Graph

669 Commits

Author SHA1 Message Date
Dillon Kearns
a2bd42f617 Use Path instead of PagePath in Manifest API. 2021-05-23 10:53:01 -07:00
Dillon Kearns
dd70e0ae8c Replace some instances of PagePath with Path. 2021-05-23 10:43:53 -07:00
Dillon Kearns
366ca7ab80 Generate routeToPath without Maybe. 2021-05-23 10:20:09 -07:00
Dillon Kearns
d908d8d01c Rename Document -> View. 2021-05-23 09:00:20 -07:00
Dillon Kearns
e9d42d8a59 Add a basic JsPort DataSource wiring. Still not ready for production usage, but the basic wiring works. 2021-05-23 08:47:36 -07:00
Dillon Kearns
2d69c67dec Pass in DataSource with all routes to API Routes for use in generating files like Sitemap. 2021-05-22 18:56:16 -07:00
Dillon Kearns
92397dda44 Remove redundant closing tag and defer tag (module imports are deferred already without that tag). 2021-05-21 09:20:54 -07:00
Dillon Kearns
50c4c6d682 Vendor elm-html-in-elm in preparation for fixing text node HTML escaping. 2021-05-21 09:20:54 -07:00
Dillon Kearns
34c78d6bee Use new WHATWG URLs instead of deprecated url.parse. 2021-05-20 19:03:39 -07:00
Dillon Kearns
c389bce67f Don't try to do page navigation requests in dev server if there is a file extension. 2021-05-20 18:53:45 -07:00
Dillon Kearns
349108ad19 Update gitignored folder. 2021-05-19 07:53:59 -07:00
Dillon Kearns
fff155bc21 Generate files in .elm-pages instead of gen. Fixes #165. 2021-05-18 11:04:56 -07:00
Dillon Kearns
1aa737c431 Rename static/ -> public/. 2021-05-18 10:44:30 -07:00
Dillon Kearns
4b429bd945 Comment out garbage collection hint for now since it's causing error in dev server. Need to investigate. 2021-05-18 09:28:53 -07:00
Dillon Kearns
2a860a1936 Inline value. 2021-05-18 08:35:04 -07:00
Dillon Kearns
f3937241e4 Try making the compiled Elm garbage collectable by using the tip from https://gist.github.com/supermario/4c2615806c6c561a16edf5dd7208a759. 2021-05-18 06:53:04 -07:00
Dillon Kearns
246a9d8a06 Use the right logic for generating RouteParams in elm-pages add. 2021-05-18 06:52:23 -07:00
Dillon Kearns
62f1ac56f8 Remove Element import from elm-pages add template. 2021-05-18 06:31:16 -07:00
Dillon Kearns
12e5f88e10 Send message for clients to hot reload after deleting or adding a new route. 2021-05-17 18:35:51 -07:00
Dillon Kearns
9585e41d9a Clear glob cache entries when file paths change. 2021-05-17 17:15:04 -07:00
Dillon Kearns
82e0d34afd Add flags. 2021-05-17 12:51:04 -07:00
Dillon Kearns
7f4ad16aac Fix issue where build didn't exit properly when there was a compiler error. 2021-05-16 10:14:19 -07:00
Dillon Kearns
884a6f4553 Add missing doc comments to generated file. 2021-05-16 10:06:52 -07:00
Dillon Kearns
63e92e5790 Remove elm-tooling from scaffold in favor of using elm-tooling init. 2021-05-16 10:04:58 -07:00
Dillon Kearns
e309891be4 Remove unused code in template. 2021-05-15 21:35:10 -07:00
Dillon Kearns
b2e37861dc Remove unused dependencies in template. 2021-05-15 21:30:45 -07:00
Dillon Kearns
ff4baf06ba Wire up elm-pages init in cli. 2021-05-15 20:45:35 -07:00
Dillon Kearns
62a7399074 Move SiteConfig to copied files. 2021-05-15 20:38:29 -07:00
Dillon Kearns
62675b6a16 Move SharedTemplate to copied gen folder. 2021-05-15 20:07:11 -07:00
Dillon Kearns
8e17ba2787 Improve dev server start message and show it after initial setup. 2021-05-15 18:33:52 -07:00
Dillon Kearns
d052049212 Update starter template. 2021-05-15 18:20:24 -07:00
Dillon Kearns
7bc7ea2cc7 Simplify template. 2021-05-15 18:17:02 -07:00
Dillon Kearns
446c7998c2 Add Page module to template. 2021-05-15 16:26:58 -07:00
Dillon Kearns
16a3bb290f Run codegen for initial run. 2021-05-15 16:21:58 -07:00
Dillon Kearns
87dc17eb66 Add basic init script. 2021-05-15 16:08:13 -07:00
Dillon Kearns
33a10ede33 Add Route.link and Route.toLink helpers. 2021-05-15 10:36:34 -07:00
Dillon Kearns
d2bf1e1204 Add a prefetch attribute. 2021-05-14 19:33:52 -07:00
Dillon Kearns
4c1f70c060 Render manifest at build-time as well as in dev server. 2021-05-14 11:57:40 -07:00
Dillon Kearns
a23dab238b Rename fields. 2021-05-12 07:38:09 -07:00
Dillon Kearns
2fc032fed3 Fix regex pattern for optional route segments. 2021-05-07 07:23:41 -07:00
Dillon Kearns
efddae6bba Use standalone Api.elm module for ApiRoutes. 2021-05-06 10:08:12 -07:00
Dillon Kearns
4d175558ce Remove obsolete generateFiles. 2021-05-06 07:14:49 -07:00
Dillon Kearns
8a9e88bc0c Send 404s for file not found in dev server. 2021-05-05 20:38:59 -07:00
Dillon Kearns
939c307fc0 Update dev server static http cache on api route render. 2021-05-05 11:14:54 -07:00
Dillon Kearns
e2c960fcec Generate manifest.json through new ApiRoute wiring. 2021-05-05 10:57:49 -07:00
Dillon Kearns
4a7279ff7f Serve static folder and static code files before trying to run renderer. 2021-05-05 10:10:09 -07:00
Dillon Kearns
759a43c28b Remove console.time statements. 2021-05-04 20:09:40 -07:00
Dillon Kearns
16b15bf4a4 Wire in initial handling for api requests. 2021-05-04 10:37:37 -07:00
Dillon Kearns
4673565123 Handle index special case in new routeToPath. 2021-04-28 13:42:47 -07:00
Dillon Kearns
a0af3dba38 Remove log statements. 2021-04-28 12:57:50 -07:00