Commit Graph

1070 Commits

Author SHA1 Message Date
Dillon Kearns
d5055ce03f Fix scaffolding generator. 2022-03-08 10:22:40 -08:00
Dillon Kearns
8911ef9bb3 Rename Server.Request.Request -> Server.Request.Parser. 2022-03-08 08:57:46 -08:00
Dillon Kearns
b7495d73bb Change exported value from page -> route from Route Modules. 2022-03-05 10:35:17 -08:00
Dillon Kearns
f16a30320d Rename Page.elm -> RouteBuilder.elm. 2022-03-05 09:50:01 -08:00
Dillon Kearns
0310152df4 Change Page.* modules to be Route.* modules. 2022-03-05 09:05:12 -08:00
Dillon Kearns
a828ecee58 Add some todo comments. 2022-03-05 08:56:20 -08:00
Dillon Kearns
0c469c225b Return headers for content.dat responses. 2022-03-04 20:45:03 -08:00
Dillon Kearns
55ae855f7c Formatting. 2022-03-04 12:33:04 -08:00
Dillon Kearns
8df43bcd71 Use pure Elm for parsing cookies header. 2022-03-04 10:43:32 -08:00
Dillon Kearns
dd2474b6a7 Remove some log noise. 2022-03-03 10:33:45 -08:00
Dillon Kearns
c71b7681e9 Add annotation. 2022-03-03 10:29:49 -08:00
Dillon Kearns
cc134dc363 Add todo comment. 2022-03-03 10:29:43 -08:00
Dillon Kearns
d27b00a110 Remove unused. 2022-03-03 10:29:29 -08:00
Dillon Kearns
5c983e5334 Include port-data-source file in serverless function output, and include example in netlify project. 2022-03-03 09:29:50 -08:00
Dillon Kearns
e03afdc95e Remove messy log statement from CLI command. 2022-03-03 09:18:14 -08:00
Dillon Kearns
8f1e25e605 Improve error handling when there is no port-data-source file present. 2022-03-02 14:45:34 -08:00
Dillon Kearns
f572ee7218 Run esbuild to compile ports file from build command. 2022-03-02 14:35:48 -08:00
Dillon Kearns
2a14ba1941 Fix error handling for internal data source handlers. 2022-03-02 14:25:11 -08:00
Dillon Kearns
8489f44a3d Use esbuild to transpile port-data-source file, and watch for changes. 2022-03-02 10:14:55 -08:00
Dillon Kearns
288dc1c266 Add Glob.toDataSourceWithOptions. 2022-03-01 15:46:10 -08:00
Dillon Kearns
c8c7a884da Pass glob options in JSON body. 2022-02-28 20:37:39 -08:00
Dillon Kearns
5652b9b3d1 Remove obsolete field. 2022-02-28 19:49:43 -08:00
Dillon Kearns
8990555331 Remove unused. 2022-02-28 19:40:09 -08:00
Dillon Kearns
ca9b80d34e Change await ordering to improve build speed. 2022-02-28 19:38:35 -08:00
Dillon Kearns
7376fcffe8 Remove lamdera's generated "App dying" log message (and no need to generate app.die function anymore since lamdera provides one). 2022-02-28 19:38:07 -08:00
Dillon Kearns
ddff730b26 Add Glob.listDirectories. 2022-02-28 16:52:41 -08:00
Dillon Kearns
a636e5ed31 Delete unused. 2022-02-28 14:51:51 -08:00
Dillon Kearns
81ab07897f Use micromatch to get glob captures to ensure that they match with the globby matching logic. 2022-02-27 11:27:49 -08:00
Dillon Kearns
3468ac0a20 Simplify GotBatch decoder. 2022-02-25 11:59:02 -08:00
Dillon Kearns
1c56e82258 Simplify gotBatchPort payload (bytes are being handled as base64 string so may as well remove the Bytes part now since it's unused - might change it back for performance if it makes a difference). 2022-02-25 11:50:24 -08:00
Dillon Kearns
2d81800317 Add dev server styles into a css file and make sure that not found page styles are included. 2022-02-25 11:22:32 -08:00
Dillon Kearns
9d50907053 Add some end-to-end test cases for API handlers and remove some obsolete request payload pre-processing in JavaScript (optimizations that were there for OptimizedDecoder's before but aren't needed with Lamdera Wire). 2022-02-25 09:07:57 -08:00
Dillon Kearns
1706880175 Add some more error handling around showing error messages to ensure that errors aren't dropped. 2022-02-25 09:02:36 -08:00
Dillon Kearns
d48d062ed7 Make sure build error is printed. 2022-02-23 16:25:40 -08:00
Dillon Kearns
6f2a29a1f1 Fix ssr option. 2022-02-23 16:25:34 -08:00
Dillon Kearns
caea3f7c56 Don't fail build when missing config. 2022-02-23 16:25:28 -08:00
Dillon Kearns
033db9fa59 Add favicon to template project. 2022-02-23 14:55:32 -08:00
Dillon Kearns
463adc8007 Move template's index.js and style.css entrypoints for new Vite setup. 2022-02-23 14:55:21 -08:00
Dillon Kearns
b9b68b06cc Add initial elm-pages.config.mjs file to template. 2022-02-23 14:39:31 -08:00
Dillon Kearns
da08e1e1b3 Add try catch to ensure dev error shows up even if console logging it fails. 2022-02-23 14:39:17 -08:00
Dillon Kearns
45126cdf1f Simplify value. 2022-02-23 14:38:50 -08:00
Dillon Kearns
f007f79ec1 Improve error when using implicit config file. 2022-02-23 14:38:32 -08:00
Dillon Kearns
b3216ea5db Update Site and Index.elm to use latest type contract in template. 2022-02-23 14:36:28 -08:00
Dillon Kearns
4226f3ecfb Update dependencies in template. 2022-02-23 14:36:07 -08:00
Dillon Kearns
f49595a578 Change elm-pages setup code so it works on root route (Vite had an issue loading it from a script module import). 2022-02-23 12:20:38 -08:00
Dillon Kearns
c617baa3d3 Use vite config from elm-pages.config.mjs. 2022-02-23 10:06:15 -08:00
Dillon Kearns
1ae88f181a Use node-fetch instead of undici for Node 14 compatability. 2022-02-22 11:37:09 -08:00
Dillon Kearns
763fc37695 Remove some log statements. 2022-02-22 11:19:10 -08:00
Dillon Kearns
846ddad4f9 Add missing return. 2022-02-22 10:55:20 -08:00
Dillon Kearns
93a44b6c78 Add error logging to debug netlify issue. 2022-02-21 18:16:16 -08:00