Commit Graph

1085 Commits

Author SHA1 Message Date
Johannes Maas
d9ecd328d8 Differentiate between missing port data source file and import error 2022-03-20 15:22:00 +01:00
Johannes Maas
10cf930226 Fix import of port-data-source.js on Windows. 2022-03-20 14:28:49 +01:00
Dillon Kearns
7ff9b555f3 Add DataSource request mocking prototype. 2022-03-14 19:17:19 -07:00
Dillon Kearns
55ac3da02d Update starter template. 2022-03-14 11:39:41 -07:00
Dillon Kearns
f2f51cd40d Remove app dying messages from compiled lamdera output. 2022-03-11 11:50:02 -08:00
Dillon Kearns
6ecc087a0f Improve error message. 2022-03-11 11:46:13 -08:00
Dillon Kearns
44ffec84c1 Use strict lamdera bytes decoder. 2022-03-11 11:32:29 -08:00
Dillon Kearns
a116989ab2 Simplify file read command. 2022-03-11 11:11:10 -08:00
Dillon Kearns
25972e5724 Run adapter script from build step (if configured). 2022-03-10 11:49:07 -08:00
Dillon Kearns
3e12b48112 Update template project. 2022-03-09 15:06:49 -08:00
Dillon Kearns
6eafb379ee Make sure lamdera is on path for dev-server. 2022-03-09 14:05:22 -08:00
Dillon Kearns
32705e11a8 Fix error message. 2022-03-09 10:59:57 -08:00
Dillon Kearns
8ac95844cd Merge branch 'master' into serverless-latest
# Conflicts:
#	package-lock.json
2022-03-09 10:50:43 -08:00
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