Commit Graph

283 Commits

Author SHA1 Message Date
Dillon Kearns
8ad4444fac Use hashing for a test case. 2021-07-28 09:00:34 -07:00
Dillon Kearns
83128c5112 Update tests for single-item flow (not batched page build runs). 2021-07-28 08:06:05 -07:00
Dillon Kearns
f6afc894a3 Fix some compiler errors. 2021-07-27 10:41:18 -07:00
Dillon Kearns
7ce73cc3e3 elm-review fixes. 2021-07-27 09:39:06 -07:00
Dillon Kearns
1b77273cd9 Remove unused mode flag. 2021-07-07 21:28:58 -07:00
Dillon Kearns
e6c2031737 Rename Page builder functions. 2021-06-24 10:05:16 -07:00
Dillon Kearns
aa0381c13d Fix bug where dev server didn't perform some andThen http requests. 2021-06-23 08:22:14 -07:00
Dillon Kearns
35def235b8 Successfully merge two distilled values when they have the same key and same encoded JSON. 2021-06-18 09:00:54 -07:00
Dillon Kearns
fad00c6186 elm-review fixes. 2021-06-17 11:57:42 -07:00
Dillon Kearns
e63678c490 Send errors on non-unique distill keys. 2021-06-17 11:55:22 -07:00
Dillon Kearns
dd07e2ead1 Add distill function. 2021-06-17 10:06:13 -07:00
Dillon Kearns
b809af6e45 Add DataSource.validate. 2021-06-17 10:06:13 -07:00
Dillon Kearns
60eb206470 Fix test. 2021-06-08 15:17:56 -07:00
Dillon Kearns
4af54e4ad5 Fix test. 2021-06-08 10:36:05 -07:00
Dillon Kearns
7a6ca22ad1 Handle 404 pages for found routes but not prerendered, and don't resolve DataSource if it's not pre-rendered. 2021-06-08 09:54:10 -07:00
Dillon Kearns
4c0303d942 Add missing field in test. 2021-06-06 11:11:34 -07:00
Dillon Kearns
36d1039515 Separate out public and internal APIs for ApiRoute. 2021-06-03 18:45:11 -07:00
Dillon Kearns
605b353065 Review fixes. 2021-06-03 18:10:06 -07:00
Dillon Kearns
03f8ee359f Add new rule. 2021-06-03 17:59:58 -07:00
Dillon Kearns
819dd0d5e2 Add new rule. 2021-06-03 17:57:57 -07:00
Dillon Kearns
ee874f3ba0 Address review fixes. 2021-06-03 17:14:25 -07:00
Dillon Kearns
7ce56bcb1a Address review warnings. 2021-06-03 17:12:18 -07:00
Dillon Kearns
1c2629b77e Remove unused Tuple value in return type. 2021-06-03 11:00:48 -07:00
Dillon Kearns
13ee95ad84 Update error message. 2021-05-31 21:51:31 -07:00
Dillon Kearns
8b4144ef15 Handle merging stripped JSON data from multiple data sources. 2021-05-31 20:59:30 -07:00
Dillon Kearns
124846eeb9 Update docs. 2021-05-28 13:06:07 -07:00
Dillon Kearns
18d8d6cdfd Update glob docs. 2021-05-27 14:18:48 -07:00
Dillon Kearns
35045ed51e Move some logic to internals to remove low-level functions from public API. 2021-05-27 13:27:09 -07:00
Dillon Kearns
1f0092736d Update Glob docs and add captureFilePath. 2021-05-27 11:04:19 -07:00
Dillon Kearns
d520f734b3 Make sure that capture list is updated when running Glob.match (not just Glob.capture). 2021-05-26 14:57:16 -07:00
Dillon Kearns
99f00c1d85 Fix test. 2021-05-24 11:40:36 -07:00
Dillon Kearns
6b14125d20 Add andThen. 2021-05-24 09:27:08 -07:00
Dillon Kearns
54bb39f182 Add oneOf. 2021-05-24 09:16:20 -07:00
Dillon Kearns
4dd9f14b16 Add QueryParams API prototype. 2021-05-24 08:55:33 -07:00
Dillon Kearns
ab65e84eac Remove PagePath module. 2021-05-23 15:40:01 -07:00
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
b147d17a1d Add Path.fromString. 2021-05-23 10:07:39 -07:00
Dillon Kearns
8a982aa884 Add new Path API. 2021-05-23 10:03:21 -07:00
Dillon Kearns
526b93a086 Add a workaround for allowing **/* globs to use regex match that makes the / optional. Might revisit with an API-level change rather than a regex hack. 2021-05-21 09:20:54 -07:00
Dillon Kearns
61c246ed46 Update test with new recursiveWildcard list type. 2021-05-21 09:20:54 -07:00
Dillon Kearns
d2b2408d31 Rename Glob.ignore -> Glob.match. 2021-05-19 18:20:47 -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
881cc7ccbe Add integer matcher in api routes. 2021-05-06 07:34:51 -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