Commit Graph

685 Commits

Author SHA1 Message Date
Dillon Kearns
2177d2bf1d Use lowerCamelCase for field names. 2021-06-03 11:58:35 -07:00
Dillon Kearns
9f93efd75c Generate route patterns JSON file for use with adapter js. 2021-06-02 11:02:35 -07:00
Dillon Kearns
0d9e62c09b Update pokedex render function to send 404 status. 2021-06-01 19:31:38 -07:00
Dillon Kearns
7de131ea82 Add extra data in Page module. 2021-06-01 14:21:19 -07:00
Dillon Kearns
cc316d5cd7 Add pokedex detail page. 2021-06-01 10:57:08 -07:00
Dillon Kearns
ac7dcaf5b2 Add a jsonFile data source. 2021-05-29 12:49:49 -07:00
Dillon Kearns
dcc5ad6458 Add elm-pages docs server to show local generated docs. 2021-05-28 11:37:03 -07:00
Dillon Kearns
034569475f Ensure that CLI errors propogate through to browser instead of infinitely reloading. 2021-05-25 11:06:10 -07:00
Dillon Kearns
badd971dbb Fix elm-pages add template code. 2021-05-24 19:09:55 -07:00
Dillon Kearns
8ccdf30399 Update template to refer to a path of a local git submodule. 2021-05-24 12:37:49 -07:00
Dillon Kearns
cf13fb21cf Update template project. 2021-05-24 12:33:13 -07:00
Dillon Kearns
86c3dac0fa Move generated browser-elm.js to an already ignored path. 2021-05-24 12:23:01 -07:00
Dillon Kearns
959487cda0 Wire up SharedModel and reconfigure some of the Page builder API. 2021-05-24 12:01:17 -07:00
Dillon Kearns
2ac7dd0b24 Wire up PageUrl. 2021-05-24 11:17:34 -07:00
Dillon Kearns
ab65e84eac Remove PagePath module. 2021-05-23 15:40:01 -07:00
Dillon Kearns
48dabe8673 Add Pages.Url and replace ImagePath with Pages.Url.Url type. 2021-05-23 15:11:46 -07:00
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