Commit Graph

561 Commits

Author SHA1 Message Date
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
Dillon Kearns
ebe599c4e1 Comment out a hardcoded subscriptions wiring for now. 2021-04-14 07:34:02 -07:00
Dillon Kearns
423e6de328 Wire in all Routes in SiteConfig. 2021-04-13 18:43:31 -07:00
Dillon Kearns
713ff07634 Write generated files to a temporary folder and serve them in dev server. 2021-04-13 15:33:31 -07:00
Dillon Kearns
2a5ef63ae2 Generate manifest.json as a plain-old file generator. 2021-04-13 13:46:48 -07:00
Dillon Kearns
4744844dd1 Wire in manifest generator as just another file generator, but specified in the generated code. 2021-04-13 13:28:58 -07:00
Dillon Kearns
64e1baf0b2 Use replaceAll in generator command. 2021-04-13 13:11:34 -07:00
Dillon Kearns
2b63ac8459 Update generator. 2021-04-13 13:05:18 -07:00
Dillon Kearns
e8f0ffe7b6 Add watchers when file reads and globs are encountered in the renderer. 2021-04-12 21:44:57 -07:00
Dillon Kearns
fcada0839e Watch elm source dirs and rewatch on elm.json change. For now, don't watch content/ folder, in preparation for watching on-demand based on globs and file reads from data sources. 2021-04-12 21:26:14 -07:00
Dillon Kearns
89cfd0904c Add debug output. 2021-04-12 20:30:20 -07:00
Dillon Kearns
a403f90049 Run cli in debug mode. 2021-04-12 20:29:59 -07:00
Dillon Kearns
ce039cf207 Generate separate Route module. 2021-04-12 17:34:23 -07:00
Dillon Kearns
06a9883c15 Remove references to Shared.PageView. 2021-04-12 16:54:08 -07:00
Dillon Kearns
0434c7ebec Use map function from Document. 2021-04-12 16:50:23 -07:00
Dillon Kearns
3dee1adf04 Generate RouteParams in generator. 2021-04-12 16:45:25 -07:00
Dillon Kearns
02b97e7b16 Clean up dev server logging output. 2021-04-12 15:32:42 -07:00
Dillon Kearns
450c53536a Clear cache entry for file in dev server on file change. 2021-04-12 15:16:30 -07:00
Dillon Kearns
57935a19dd Handle multiple EventStream connections, and socket close event. 2021-04-12 13:53:13 -07:00
Dillon Kearns
0a33c6e572 Add some type annotations. 2021-04-11 21:06:31 -07:00
Dillon Kearns
a2df8d665d Add return to prevent incorrect runningElmMake state. 2021-04-11 20:07:19 -07:00
Dillon Kearns
cfee49f0dd Remove unused import. 2021-04-11 20:06:58 -07:00
Dillon Kearns
71d4366fbe Set elm make running to true on dev server start. 2021-04-11 16:17:04 -07:00
Dillon Kearns
7a019036ec Use module.hot.apply API to update content json when the new app is ready to receive ports. 2021-04-11 15:35:02 -07:00
Dillon Kearns
52fd8cc1b7 Use non-blocking IO in Elm ports for renderer. 2021-04-11 14:38:14 -07:00
Dillon Kearns
75fec75d61 Performance tuning for compiling elm client. And make sure to set elmMakeRunning to false after initial compilation. 2021-04-11 14:37:39 -07:00