Commit Graph

586 Commits

Author SHA1 Message Date
Dillon Kearns
827f4c8f7f Comment out log statement in build. 2021-04-22 16:33:53 -07:00
Dillon Kearns
4c9c365887 File read build errors. 2021-04-22 14:53:47 -07:00
Dillon Kearns
4bcfcbd358 Add doc comment. 2021-04-22 14:26:32 -07:00
Dillon Kearns
ad3eea32cb Remove unused imports. 2021-04-22 12:22:21 -07:00
Dillon Kearns
4e7075f908 Add type annotation. 2021-04-22 12:12:50 -07:00
Dillon Kearns
e0b403b2ea Remove unused function. 2021-04-22 12:12:22 -07:00
Dillon Kearns
d08d0e7ff0 Wire in static payload to init and update. 2021-04-22 11:31:06 -07:00
Dillon Kearns
31a659e2d4 Wire in shared static data more places. 2021-04-22 10:48:23 -07:00
Dillon Kearns
e3b10133e6 Add an error message for 0 Page Templates. 2021-04-21 08:40:37 -07:00
Dillon Kearns
0abbe6667f Remove unused file. 2021-04-21 08:33:17 -07:00
Dillon Kearns
a369ce8324 Simplify generated code, fix issue with hanging comma. 2021-04-21 08:29:25 -07:00
Dillon Kearns
c3e11e6e96 Make sure routes with 0 route params are always handled. 2021-04-21 07:51:27 -07:00
Dillon Kearns
8744024031 Remove obsolete Maybe. 2021-04-21 07:11:19 -07:00
Dillon Kearns
e63b64a637 Include is404 in build payload. 2021-04-20 20:36:10 -07:00
Dillon Kearns
722a5c5ff4 Fix copied file in cli code. 2021-04-20 20:25:39 -07:00
Dillon Kearns
3c3c8b1552 Check for 404 according to static paths. 2021-04-20 20:19:39 -07:00
Dillon Kearns
f6b87947ea Render 404 message in view when route not found. 2021-04-20 16:01:14 -07:00
Dillon Kearns
b66e3e88e8 Format file. 2021-04-20 14:34:26 -07:00
Dillon Kearns
ec9c995b88 Replace StaticHttp with DataSource in add command. 2021-04-20 14:21:26 -07:00
Dillon Kearns
14a103e6fb Use String replace instead of replaceAll for older versions of node. 2021-04-20 14:20:29 -07:00
Dillon Kearns
ed58c97b4e Remove optional chaining syntax to support older node versions. 2021-04-20 13:57:22 -07:00
Dillon Kearns
84abfb4b2b DataSource.Request -> DataSource.DataSource. 2021-04-20 07:45:35 -07:00
Dillon Kearns
47fccf2cca Rename StaticHttp to DataSource. 2021-04-20 07:33:12 -07:00
Dillon Kearns
03fc86e577 Remove access to static data for canonicalSiteUrl for now. 2021-04-17 21:43:22 -07:00
Dillon Kearns
e94d9b0cf7 Make sure connect is defined before running it. 2021-04-17 21:21:17 -07:00
Dillon Kearns
6258ec0b06 Add CLI handler for elm-pages add command. 2021-04-17 16:35:38 -07:00
Dillon Kearns
2fdecc4bde Setup dev server as CLI command. 2021-04-17 15:13:41 -07:00
Dillon Kearns
1d973ab495 Add CLI for elm-pages build. 2021-04-17 15:04:24 -07:00
Dillon Kearns
8d47b85908 Rename cli.js to build.js. 2021-04-17 14:40:02 -07:00
Dillon Kearns
bfbfc02c13 Turn on optimize-level-2. 2021-04-17 12:28:37 -07:00
Dillon Kearns
974f35e49c Remove toString call from generated code. 2021-04-17 12:27:59 -07:00
Dillon Kearns
54f3ee4dfc Print better error message. 2021-04-17 12:09:20 -07:00
Dillon Kearns
990e774bbc Remove obsolete wrapper type. 2021-04-17 09:49:13 -07:00
Dillon Kearns
ad46fbe39f Remove obsolete wrapper Msg/Model for CLI runner now that we use code generation to generate the main program entrypoint. 2021-04-17 09:44:05 -07:00
Dillon Kearns
3324b8b82e Remove a Debug.todo. 2021-04-17 09:19:48 -07:00
Dillon Kearns
cbdb7938d4 Remove hmr script tag for cli build, and run in prod mode. 2021-04-17 08:29:14 -07:00
Dillon Kearns
46ea40c715 Pull up StaticHttp.Request out of view function. 2021-04-16 16:25:43 -07:00
Dillon Kearns
68675349cf Decode isJson value in RenderRequest decoder. 2021-04-16 11:56:10 -07:00
Dillon Kearns
3c14865d2b Change decoding format for single page routes. 2021-04-16 11:33:53 -07:00
Dillon Kearns
4dd35fde98 Run latest elm-format. 2021-04-16 09:40:54 -07:00
Dillon Kearns
6e59a5191e Wire in shared static data. 2021-04-15 15:11:57 -07:00
Dillon Kearns
c60875f89f Wire in StaticData for update in elm-pages.com site. 2021-04-15 13:40:36 -07:00
Dillon Kearns
01c096a1af Remove more hardcoding. 2021-04-15 13:30:27 -07:00
Dillon Kearns
2cbea63fe1 Remove some hardcoding. 2021-04-15 13:26:32 -07:00
Dillon Kearns
9453b5fb41 Wire in staticData to update with some hardcoding and Debug.todos. 2021-04-15 10:23:01 -07:00
Dillon Kearns
8bbee1d762 Remove duplicate navigation key to ensure that hot reloads work. 2021-04-14 16:32:55 -07:00
Dillon Kearns
4991ae263c Be sure to run codegen step on dev server start. 2021-04-14 15:57:29 -07:00
Dillon Kearns
ac1535f5b9 Wire in navigation key from template connector module. 2021-04-14 15:57:12 -07:00
Dillon Kearns
ed4cf2d2d4 Wire in navigation key. 2021-04-14 09:26:58 -07:00
Dillon Kearns
f43e572288 Wire in Route to subscriptions. 2021-04-14 08:56:25 -07:00