Dillon Kearns
|
40fbf3a14f
|
Fix test.
|
2021-05-23 10:53:43 -07:00 |
|
Dillon Kearns
|
5a88903f4e
|
Fix test.
|
2021-05-23 10:44:39 -07:00 |
|
Dillon Kearns
|
7bcc276929
|
Add missing argument in test.
|
2021-05-19 07:58:37 -07:00 |
|
Dillon Kearns
|
075a886adf
|
Add missing argument in test.
|
2021-05-14 19:38:10 -07:00 |
|
Dillon Kearns
|
ffcaabca77
|
Remove Site.apiRoutes, since it now lives in Api.elm.
|
2021-05-07 10:09:04 -07:00 |
|
Dillon Kearns
|
6fab76ab96
|
Rename ApiHandler -> ApiRoute.
|
2021-05-06 07:26:21 -07:00 |
|
Dillon Kearns
|
b16f32c1fa
|
Rename field.
|
2021-05-06 07:16:05 -07:00 |
|
Dillon Kearns
|
4d175558ce
|
Remove obsolete generateFiles.
|
2021-05-06 07:14:49 -07:00 |
|
Dillon Kearns
|
16b15bf4a4
|
Wire in initial handling for api requests.
|
2021-05-04 10:37:37 -07:00 |
|
Dillon Kearns
|
7f59d64151
|
Remove unused import.
|
2021-04-23 16:25:12 -07:00 |
|
Dillon Kearns
|
9c09b18812
|
Fix test failure.
|
2021-04-23 16:24:26 -07:00 |
|
Dillon Kearns
|
521c3c0cc7
|
Rename StaticData -> Data.
|
2021-04-23 16:22:23 -07:00 |
|
Dillon Kearns
|
20f37a4069
|
Remove obsolete sourceIcon.
|
2021-04-23 08:47:11 -07:00 |
|
Dillon Kearns
|
af55887d72
|
Fix test.
|
2021-04-22 11:33:06 -07:00 |
|
Dillon Kearns
|
f707815679
|
Fix test.
|
2021-04-21 07:52:56 -07:00 |
|
Dillon Kearns
|
1e1f16e23d
|
Add missing field in test setup.
|
2021-04-20 20:54:18 -07:00 |
|
Dillon Kearns
|
7f14f6171a
|
Apply review fixes.
|
2021-04-20 14:35:55 -07:00 |
|
Dillon Kearns
|
a082d9e291
|
Move HTTP-related DataSource API under DataSource.Http.
|
2021-04-20 13:52:54 -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
|
3b5d790bdc
|
Remove extra argument.
|
2021-04-17 12:35:00 -07:00 |
|
Dillon Kearns
|
632e1961f0
|
Review fixes.
|
2021-04-17 08:18:26 -07:00 |
|
Dillon Kearns
|
e11d359222
|
Make sure send page progress events get kicked off when there are no initial requests from getStaticRoutes or generateFiles.
|
2021-04-17 07:44:22 -07:00 |
|
Dillon Kearns
|
9bb173baab
|
Run elm-review.
|
2021-04-16 09:32:09 -07:00 |
|
Dillon Kearns
|
21ecb7e746
|
Remove debug log statements.
|
2021-04-16 09:28:59 -07:00 |
|
Dillon Kearns
|
51f2eb2a20
|
Remove obsolete test case.
|
2021-04-16 09:28:43 -07:00 |
|
Dillon Kearns
|
bdd4ace0fd
|
Normalize error message test assertions.
|
2021-04-16 09:27:20 -07:00 |
|
Dillon Kearns
|
fbc161c77b
|
Add a toString in the build error decoder for the test assertions.
|
2021-04-16 09:20:28 -07:00 |
|
Dillon Kearns
|
d04d670669
|
Fix getStaticRoutes wiring for tests.
|
2021-04-16 08:27:12 -07:00 |
|
Dillon Kearns
|
d0f3af3a1c
|
Fix compiler errors in test.
|
2021-04-16 08:04:15 -07:00 |
|
Dillon Kearns
|
12b36d964f
|
No more PathKey for PagePath!
|
2021-04-10 10:33:26 -07:00 |
|
Dillon Kearns
|
ca901b043d
|
Apply fixes.
|
2021-04-10 10:12:51 -07:00 |
|
Dillon Kearns
|
89650a4eb1
|
Merge branch 'serverless' into static-files
# Conflicts:
# examples/docs/package-lock.json
# examples/docs/src/Template/BlogIndex.elm
# examples/docs/src/Template/Page.elm
# generator/src/cli.js
# netlify.toml
# package-lock.json
# package.json
# src/Pages/Internal/Platform/Cli.elm
# tests/BetaStaticHttpRequestsTests.elm
# tests/StaticHttpRequestsTests.elm
|
2021-04-05 19:49:08 -07:00 |
|
Dillon Kearns
|
d9e2d23cab
|
Fix compiler error.
|
2021-04-05 17:15:22 -07:00 |
|
Dillon Kearns
|
2f78c3592a
|
Run review fixes.
|
2021-04-03 21:24:08 -07:00 |
|
Dillon Kearns
|
6ef3000011
|
Handle initial StaticHttp requests to get routes.
|
2021-04-03 13:08:02 -07:00 |
|
Dillon Kearns
|
66d407b5c8
|
Add hardcoded fetch for static routes.
|
2021-04-03 09:53:42 -07:00 |
|
Dillon Kearns
|
e2d943d913
|
Add detail to test error.
|
2021-04-03 06:39:07 -07:00 |
|
Dillon Kearns
|
39b83767b6
|
Fix some test errors.
|
2021-04-02 21:43:57 -07:00 |
|
Dillon Kearns
|
4a199146a0
|
Address review errors.
|
2021-04-02 14:49:18 -07:00 |
|
Dillon Kearns
|
77ed808d18
|
Remove unused code.
|
2021-04-02 14:44:40 -07:00 |
|
Dillon Kearns
|
1e5d6b8a0e
|
Add file path and glob handlers.
|
2021-03-31 19:55:28 -07:00 |
|
Dillon Kearns
|
da3ef40e7f
|
Wire through request json.
|
2021-03-26 15:44:32 -07:00 |
|
Dillon Kearns
|
f7e1e8d3cb
|
Run elm-review fixes.
|
2020-12-07 08:41:10 -08:00 |
|
Dillon Kearns
|
74b3ba2b5e
|
Fix compiler error.
|
2020-10-26 11:50:06 -07:00 |
|
Dillon Kearns
|
5ad85cad0d
|
Use ImagePath for manifest icons.
|
2020-10-20 20:48:21 -07:00 |
|
Dillon Kearns
|
59a8d1f5da
|
Fix compiler error.
|
2020-10-20 19:38:51 -07:00 |
|
Dillon Kearns
|
7ae76293d8
|
Fix compiler error in tests.
|
2020-10-19 17:41:27 -07:00 |
|
Dillon Kearns
|
299ebd0edc
|
Use codecs to send out ports to JS.
|
2020-10-17 18:58:17 -07:00 |
|
Dillon Kearns
|
eb170bd2c1
|
Fix some test compiler errors.
|
2020-10-17 13:47:41 -07:00 |
|
Dillon Kearns
|
4587e235d8
|
Process one page at a time.
|
2020-10-13 21:02:12 -07:00 |
|
Dillon Kearns
|
1d304ad094
|
Wire in starting point for continuing steps one at a time for cli pre-rendering.
|
2020-10-13 15:40:36 -07:00 |
|
Dillon Kearns
|
86ea65a3ba
|
Generate multiple pages, and show error messages.
|
2020-10-11 21:21:34 -07:00 |
|
Dillon Kearns
|
daa128796d
|
Split off beta build process and add snapshot test.
|
2020-10-09 17:08:02 -07:00 |
|
Dillon Kearns
|
7c32c6683f
|
Avoid using deprecated individually cached responses per request in one case.
|
2020-10-07 12:27:33 -07:00 |
|
Dillon Kearns
|
962c397d75
|
Restore staticResponses update for now to fix some cases.
|
2020-10-07 11:08:43 -07:00 |
|
Dillon Kearns
|
1a20715be6
|
Avoid storing stripped requests and instead compute at the last moment.
|
2020-10-06 21:02:23 -07:00 |
|
Johannes Maas
|
aa27d9a49e
|
Update error message test
|
2020-07-19 20:09:38 +02:00 |
|
Dillon Kearns
|
4962bf6520
|
Make pending requests check check if the cache contains requests. Fixes #107.
|
2020-06-15 19:42:04 -07:00 |
|
Dillon Kearns
|
4101b060a5
|
Use equalDicts helper.
|
2020-06-15 15:23:07 -07:00 |
|
Dillon Kearns
|
0d39eafb06
|
Add test case for generating files with static http data.
|
2020-06-13 13:43:35 -07:00 |
|
Dillon Kearns
|
229a8c4445
|
Add additional parameter to test start function.
|
2020-06-13 12:31:47 -07:00 |
|
Dillon Kearns
|
44b5fad025
|
Rewrite type annotation across lines.
|
2020-06-13 12:29:36 -07:00 |
|
Dillon Kearns
|
79d4d6bdcc
|
Extract codec to module.
|
2020-06-13 06:09:09 -07:00 |
|
Dillon Kearns
|
f0d67660b3
|
Extract Effect type to module.
|
2020-06-11 20:57:19 -07:00 |
|
Dillon Kearns
|
eef6e7d568
|
Extract ToJsPayload module.
|
2020-06-11 20:55:19 -07:00 |
|
Dillon Kearns
|
2fb7f0c08d
|
Make sure to eagerly evaluate markdown rendering in CLI mode to get errors.
|
2020-05-13 21:14:05 -07:00 |
|
Dillon Kearns
|
eab4900140
|
Clean up some code.
|
2020-05-11 16:42:54 -07:00 |
|
Dillon Kearns
|
43bfd94df2
|
Fix test failure.
|
2020-05-11 10:42:40 -07:00 |
|
Dillon Kearns
|
4cf6ad9d92
|
Merge branch 'master' into generate-files-static-http
|
2020-05-11 09:27:30 -07:00 |
|
Dillon Kearns
|
dedeb0725d
|
Add a test case.
|
2020-04-19 10:35:17 -07:00 |
|
Dillon Kearns
|
3c690106f4
|
Wire in static http cache to prevent making extra requests.
|
2020-04-19 08:17:51 -07:00 |
|
Dillon Kearns
|
f72a4588c7
|
Add an optimized decoder wrapper module.
|
2020-04-16 22:03:39 -07:00 |
|
Steven Vandevelde
|
07c001d998
|
Adjust tests
|
2020-03-11 17:03:47 +01:00 |
|
Dillon Kearns
|
1bc941de89
|
Hardcode empty generate files as a first step before actually performing the static http requests.
|
2020-03-07 11:28:13 -08:00 |
|
Dillon Kearns
|
3cdbe8b0a3
|
Include content type in StringBody. Include more context in bad http requests.
|
2020-03-04 08:24:06 -08:00 |
|
Dillon Kearns
|
f158af027e
|
Expose specific variants of Expect explicitly, and change String version to give a Result.
|
2020-03-03 07:54:16 -08:00 |
|
Dillon Kearns
|
ce28a25acb
|
Add a simple copy-pasted API for StaticHttp Expect values.
|
2020-03-02 22:08:00 -08:00 |
|
Dillon Kearns
|
25bbea6f9b
|
Add an escape hatch for unoptimized StaticHttp requests.
|
2020-03-01 19:09:39 -08:00 |
|
Dillon Kearns
|
c7145974a7
|
Fix a test failure.
|
2020-01-27 15:28:42 -08:00 |
|
Dillon Kearns
|
5a1e06c729
|
Keep dev server running for non-fatal errors.
|
2020-01-27 15:05:40 -08:00 |
|
Dillon Kearns
|
2825dd038f
|
Fix compilation error in test module.
|
2020-01-26 10:19:37 -08:00 |
|
Dillon Kearns
|
c79d736844
|
Change generateFiles to return Results so users can make it fail explicitly instead of squelching errors.
|
2020-01-25 12:47:06 -08:00 |
|
Dillon Kearns
|
81ce8979e9
|
Comment out debug log statement.
|
2020-01-03 14:02:24 -08:00 |
|
Dillon Kearns
|
cc2b43ed23
|
Move the body constructors to the StaticHttp module to be more analagous to elm/http.
|
2020-01-03 13:57:45 -08:00 |
|
Dillon Kearns
|
21da4794e7
|
Change Body to Custom Type.
|
2020-01-03 13:37:50 -08:00 |
|
Dillon Kearns
|
5c9e8bc9b5
|
Include Body in StaticHttp requests.
|
2020-01-03 13:22:53 -08:00 |
|
Dillon Kearns
|
f2e8c70883
|
Change url hashing function to use JSON encoding.
|
2020-01-03 12:18:18 -08:00 |
|
Dillon Kearns
|
80b852e55d
|
Move StaticHttp under Pages module namespace.
|
2019-12-11 06:13:02 -08:00 |
|
Dillon Kearns
|
4545e1229e
|
Remove some noise.
|
2019-12-09 09:41:01 -08:00 |
|
Dillon Kearns
|
adfd95678a
|
Use plaintext test helper.
|
2019-12-07 06:46:45 -08:00 |
|
Dillon Kearns
|
79142c7be1
|
Inline error to string function for static http requests.
|
2019-12-07 06:35:36 -08:00 |
|
Dillon Kearns
|
8ddfa36dee
|
Move error titles into BuildError type.
|
2019-12-07 06:21:54 -08:00 |
|
Dillon Kearns
|
f8766e0472
|
Only reduce JSON responses in prod build, not dev mode (so that JSON decoders can be safely re-run).
|
2019-11-12 20:14:34 -08:00 |
|
Dillon Kearns
|
ebf0fd096a
|
Add some log statements and remove some unused code.
|
2019-11-12 18:24:54 -08:00 |
|
Dillon Kearns
|
79ad4c28d3
|
Remove non-reducible json decoder functions from StaticHttp module.
|
2019-11-12 18:22:36 -08:00 |
|
Dillon Kearns
|
c8533f8fb9
|
Remove obsolete function.
|
2019-11-12 12:48:01 -08:00 |
|
Dillon Kearns
|
62521a0e5a
|
Add combine and resolve functions and test case.
|
2019-11-12 09:59:37 -08:00 |
|
Dillon Kearns
|
56933942c8
|
Rename module.
|
2019-11-11 17:48:08 -08:00 |
|
Dillon Kearns
|
7b78c2340a
|
Remove unused modules.
|
2019-11-11 17:46:54 -08:00 |
|
Dillon Kearns
|
f3472892ac
|
Wire through HTTP headers.
|
2019-11-11 16:57:51 -08:00 |
|
Dillon Kearns
|
dad13ebd2a
|
Fix raw response dict lookup when it includes secrets.
|
2019-11-11 13:01:52 -08:00 |
|
Dillon Kearns
|
45d5ce8e89
|
Wire through new Secrets API.
|
2019-11-11 12:40:38 -08:00 |
|
Dillon Kearns
|
2637447fc0
|
Add reducedPost function.
|
2019-11-08 13:47:43 -08:00 |
|
Dillon Kearns
|
e36f2734bc
|
Wire through HTTP method into dict key for response lookup.
|
2019-11-07 21:47:36 -08:00 |
|
Dillon Kearns
|
32359078f9
|
Use record with method option for StaticHttp requests in preparation for configurable request headers and method.
|
2019-11-05 07:53:17 -08:00 |
|
Dillon Kearns
|
5b8ccee881
|
Use record for unmasked urls in preparation for adding HTTP request headers, method, and body.
|
2019-11-04 18:24:02 -08:00 |
|
Dillon Kearns
|
2152a71e7c
|
Handle passing through reduced responses with map2.
|
2019-11-04 13:48:30 -08:00 |
|
Dillon Kearns
|
5f90f03ab3
|
Make sure stripped responses are passed through andThen chains.
|
2019-11-04 13:24:08 -08:00 |
|
Dillon Kearns
|
c20071a06e
|
Fix up elm.json and remove test only and logs.
|
2019-11-04 13:05:12 -08:00 |
|
Dillon Kearns
|
a04f26bc99
|
Get a simple test case passing for JSON reducers!
|
2019-11-03 10:07:20 -08:00 |
|
Dillon Kearns
|
28c48af222
|
Fix test expectaion.
|
2019-11-02 14:46:52 -07:00 |
|
Dillon Kearns
|
72c84901ff
|
Make sure missing secrets are reported for nested andThen requests.
|
2019-11-02 14:17:32 -07:00 |
|
Dillon Kearns
|
e6f8b691eb
|
Terminate with port message after HTTP error.
|
2019-11-02 13:14:09 -07:00 |
|
Dillon Kearns
|
d7bd04a24e
|
Use opaque types for url masking logic.
|
2019-11-02 11:13:33 -07:00 |
|
Dillon Kearns
|
9d0653a9aa
|
Fix stale data being passed to function.
|
2019-11-01 16:46:12 -07:00 |
|
Dillon Kearns
|
1a70ac7713
|
Get happy path for StaticHttp.andThen working.
|
2019-11-01 13:29:09 -07:00 |
|
Dillon Kearns
|
e48c16da94
|
Fix failing test.
|
2019-10-29 22:33:47 -07:00 |
|
Dillon Kearns
|
f44be0d46c
|
Make sure that duplicate requests don't cause the CLI to hang.
|
2019-10-29 21:45:23 -07:00 |
|
Dillon Kearns
|
c313a1ce6a
|
Restore html error messages for frontmatter decoder errors.
|
2019-10-29 12:42:52 -07:00 |
|
Dillon Kearns
|
60e93f393a
|
Make sure port is sent out when there are no static http requests.
|
2019-10-28 08:04:34 -07:00 |
|
Dillon Kearns
|
89c9f9d803
|
Refactor test setup.
|
2019-10-28 07:57:21 -07:00 |
|
Dillon Kearns
|
65ad09d51f
|
Fix test.
|
2019-10-26 16:50:09 -07:00 |
|
Dillon Kearns
|
de64cea7bb
|
Remove unnecessary line of code.
|
2019-10-25 07:00:04 -07:00 |
|
Dillon Kearns
|
69e465d511
|
Fetch and store values from secrets.
|
2019-10-24 08:26:41 -07:00 |
|
Dillon Kearns
|
dd42d5eb78
|
Wire through secrets more.
|
2019-10-24 07:06:50 -07:00 |
|
Dillon Kearns
|
7cd6ebe39b
|
Show decoder errors for each page.
|
2019-10-24 06:13:15 -07:00 |
|
Dillon Kearns
|
650d393f7c
|
Show decoder failures during CLI build.
|
2019-10-24 05:58:48 -07:00 |
|
Dillon Kearns
|
34324d7b19
|
Change StaticHttp design to allow for multiple requests per page.
|
2019-10-23 21:01:11 -07:00 |
|
Dillon Kearns
|
f8f5504423
|
Include response data in static request port payload.
|
2019-10-22 12:43:26 -07:00 |
|
Dillon Kearns
|
e88847e1d2
|
Get updates working for static requests dict.
|
2019-10-22 08:42:17 -07:00 |
|
Dillon Kearns
|
fe844c52d9
|
Only send if there are no pending requests (staticRequestsUpdate needs to be implemented).
|
2019-10-22 08:31:36 -07:00 |
|
Dillon Kearns
|
dab2e4b32c
|
Add setup for passing in different pages and requests in static http test harness.
|
2019-10-22 06:46:31 -07:00 |
|
Dillon Kearns
|
789cc59d88
|
Send manifest config through port.
|
2019-10-21 23:06:25 -07:00 |
|
Dillon Kearns
|
17997d7ea0
|
Get test running with codec.
|
2019-10-21 22:00:15 -07:00 |
|
Dillon Kearns
|
db860c67b1
|
Make assertion about outgoing port.
|
2019-10-21 20:21:52 -07:00 |
|
Dillon Kearns
|
56f1bcc3cf
|
Get http request executing in elm-program-test example.
|
2019-10-21 19:56:48 -07:00 |
|
Dillon Kearns
|
4d2115f7f7
|
Wire in elm-program-test simulatedEffects.
|
2019-10-21 19:31:17 -07:00 |
|
Dillon Kearns
|
9a7373db33
|
Set up more elm-program-test boilerplate.
|
2019-10-21 19:26:04 -07:00 |
|
Dillon Kearns
|
c2f8b5253a
|
Prepare some boilerplate for elm-program-test.
|
2019-10-21 18:49:46 -07:00 |
|