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 |
|
Dillon Kearns
|
2c695ce165
|
Rename functions.
|
2021-04-30 20:19:39 -07:00 |
|
Dillon Kearns
|
ccbab4f685
|
Inline two values in test.
|
2021-04-30 17:04:34 -07:00 |
|
Dillon Kearns
|
3973f982b2
|
Use list for test examples.
|
2021-04-30 17:03:57 -07:00 |
|
Dillon Kearns
|
429a8ae4c1
|
List of routes, not single route, for Api routes.
|
2021-04-30 17:02:15 -07:00 |
|
Dillon Kearns
|
6e6f09cabc
|
Restore matcher tests.
|
2021-04-30 16:03:47 -07:00 |
|
Dillon Kearns
|
d95ccebc60
|
Handle variabl length params for api route codec.
|
2021-04-30 16:01:18 -07:00 |
|
Dillon Kearns
|
357e49548b
|
New experiment for Api routes prototype.
|
2021-04-30 13:54:03 -07:00 |
|
Dillon Kearns
|
f6963d3087
|
Move API handler into a module.
|
2021-04-30 08:42:07 -07:00 |
|
Dillon Kearns
|
b97df0b6cc
|
Inline value.
|
2021-04-29 20:25:01 -07:00 |
|
Dillon Kearns
|
f0d64e59f0
|
Restore route matching tests.
|
2021-04-29 16:42:13 -07:00 |
|
Dillon Kearns
|
e936ebc71d
|
Change to list of api routes.
|
2021-04-29 16:40:58 -07:00 |
|
Dillon Kearns
|
ff03bbf075
|
Remove hardcoded value.
|
2021-04-29 16:36:05 -07:00 |
|
Dillon Kearns
|
bc1ac1fecd
|
Got prototype working with reversible route.
|
2021-04-29 15:31:13 -07:00 |
|
Dillon Kearns
|
68af88cfeb
|
Update prototype.
|
2021-04-29 14:21:38 -07:00 |
|
Dillon Kearns
|
4e258bc983
|
Prototype for two-way api route codec.
|
2021-04-29 13:31:40 -07:00 |
|
Dillon Kearns
|
f790eee0fe
|
Add slash handler.
|
2021-04-29 11:19:43 -07:00 |
|
Dillon Kearns
|
e6050aec5c
|
Add test case for api route with extension.
|
2021-04-29 11:15:28 -07:00 |
|
Dillon Kearns
|
76093b6d26
|
Add a starting prototype for an API router.
|
2021-04-29 11:00:25 -07:00 |
|
Dillon Kearns
|
17553550b4
|
Put Glob under DataSource namespace.
|
2021-04-28 14:05:08 -07:00 |
|
Dillon Kearns
|
ab87bc049a
|
Handle precedence in routing example.
|
2021-04-27 10:14:03 -07:00 |
|
Dillon Kearns
|
9e1f3b7b73
|
Add test case for new router prototype.
|
2021-04-27 08:35:07 -07:00 |
|
Dillon Kearns
|
b245d7dc98
|
Remove obsolete captures list (now derived from running regex).
|
2021-04-25 20:38:48 -07:00 |
|
Dillon Kearns
|
954ebdec63
|
Remove experimental test.
|
2021-04-25 20:35:09 -07:00 |
|
Dillon Kearns
|
664cb77c78
|
Remove not functions from Glob API for now.
|
2021-04-25 20:34:56 -07:00 |
|
Dillon Kearns
|
cf589a407b
|
Run Regex matching in Elm for Glob module.
|
2021-04-25 19:39:54 -07:00 |
|
Dillon Kearns
|
810010bd1a
|
Parser-based implementation doesn't work because it's greedy (not possible to do lazy matching like regex).
|
2021-04-25 15:17:52 -07:00 |
|
Dillon Kearns
|
8791747ad7
|
Add starting point for new glob experiment.
|
2021-04-25 09:08:27 -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
|
65e6ef52dd
|
Rename glob functions with ignore/capture instead of drop/keep to make it more intuitive.
|
2021-04-20 13:53:53 -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
|
b685a76e1a
|
Remove obsolete tests.
|
2021-04-03 21:24:34 -07:00 |
|
Dillon Kearns
|
2f78c3592a
|
Run review fixes.
|
2021-04-03 21:24:08 -07:00 |
|
Dillon Kearns
|
0952b45592
|
Update scaffolding function.
|
2021-04-03 21:20:50 -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
|
3358a96839
|
Address elm-review errors.
|
2021-04-02 13:59:07 -07:00 |
|
Dillon Kearns
|
c66429f26c
|
Run additional auto-fixes.
|
2021-04-02 13:57:08 -07:00 |
|
Dillon Kearns
|
67c75b41e4
|
Add type annotation.
|
2021-04-02 13:54:42 -07:00 |
|
Dillon Kearns
|
9ad1a606a8
|
Apply auto-fixes.
|
2021-04-02 13:53:50 -07:00 |
|
Dillon Kearns
|
1e5d6b8a0e
|
Add file path and glob handlers.
|
2021-03-31 19:55:28 -07:00 |
|
Dillon Kearns
|
279c16c760
|
Add getFullPath function for Glob.
|
2021-03-31 19:52:09 -07:00 |
|
Dillon Kearns
|
e0a06df5d9
|
Add Glob.atLeastOne.
|
2021-03-31 13:56:56 -07:00 |
|
Dillon Kearns
|
78f704d578
|
Change oneOf format to use (pattern1|pattern2) notation.
|
2021-03-31 13:26:59 -07:00 |
|
Dillon Kearns
|
3fb2893dee
|
Add Glob.not.
|
2021-03-31 13:10:02 -07:00 |
|
Dillon Kearns
|
4c577cce66
|
Rename glob star functions.
|
2021-03-31 12:42:48 -07:00 |
|
Dillon Kearns
|
ea75b4acc2
|
Add recursive glob matcher.
|
2021-03-31 12:41:49 -07:00 |
|
Dillon Kearns
|
f7c647fb80
|
Rename temporary function names from removed API functions.
|
2021-03-30 19:57:34 -07:00 |
|
Dillon Kearns
|
aef010ced7
|
Remove unused code.
|
2021-03-30 19:55:52 -07:00 |
|
Dillon Kearns
|
f11b5bda39
|
Convert last test case over to new glob API.
|
2021-03-30 19:52:17 -07:00 |
|
Dillon Kearns
|
8bb55a0528
|
Convert more tests to new glob API.
|
2021-03-30 19:49:04 -07:00 |
|
Dillon Kearns
|
06069a5e16
|
Convert another glob test over to the new API.
|
2021-03-30 19:47:46 -07:00 |
|
Dillon Kearns
|
bb1ee9b7c0
|
Change glob API to use same type between matchers and top-level glob type.
|
2021-03-30 19:43:37 -07:00 |
|
Dillon Kearns
|
8cfa4be975
|
Rename init to succeed.
|
2021-03-30 17:53:17 -07:00 |
|
Dillon Kearns
|
9bbe0874ce
|
Don't allow arbitrary glob patterns, only literals, in zeroOrMore.
|
2021-03-30 17:50:45 -07:00 |
|
Dillon Kearns
|
65e2ca52ac
|
Add optional group parsing.
|
2021-03-30 16:04:05 -07:00 |
|
Dillon Kearns
|
b80a59e2fc
|
Add a oneOf matcher.
|
2021-03-30 15:37:03 -07:00 |
|
Dillon Kearns
|
6983dd582b
|
Add a starting point for glob API.
|
2021-03-30 14:16:32 -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
|
aa2c80165c
|
Move jest tests to another directory.
|
2020-10-26 11:48:13 -07:00 |
|
Dillon Kearns
|
3aa978578b
|
Update template modules file name.
|
2020-10-26 10:50:11 -07:00 |
|
Dillon Kearns
|
3442cf02a8
|
Merge branch 'master' into template-modules
# Conflicts:
# .gitignore
# examples/docs/src/Main.elm
|
2020-10-24 13:02:17 -07:00 |
|
Dillon Kearns
|
05704eb744
|
Pass in all metadata to make sure files are generated correctly.
|
2020-10-22 12:49:24 -07:00 |
|
Dillon Kearns
|
5ad85cad0d
|
Use ImagePath for manifest icons.
|
2020-10-20 20:48:21 -07:00 |
|
Dillon Kearns
|
173233a6c6
|
Remove snapshot test for elm-to-html integration.
|
2020-10-20 20:29:54 -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
|
8a24e858d2
|
Send ports for pages as they're completed.
|
2020-10-13 21:46:08 -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
|
bf68b2eb47
|
Assert for multiple ports.
|
2020-10-11 09:25:37 -07:00 |
|
Dillon Kearns
|
56718bb708
|
Simplify test helper.
|
2020-10-11 09:21:49 -07:00 |
|
Dillon Kearns
|
35e2c2ca51
|
Simplify helper function.
|
2020-10-11 09:16:44 -07:00 |
|
Dillon Kearns
|
84dc05668b
|
Get a basic case working for beta elm-to-html verison.
|
2020-10-10 08:15:54 -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 |
|
Dillon Kearns
|
ba228d2c1a
|
Tune performance to avoid traverse converting to/from dict repeatedly.
|
2020-10-05 20:35:15 -07:00 |
|
Dillon Kearns
|
9423b62a0c
|
Add builder-style Template API.
|
2020-09-24 09:04:15 -07:00 |
|
Dillon Kearns
|
fce79cdaf6
|
Rename GlobalMetadata to TemplateType.
|
2020-09-16 19:18:25 -07:00 |
|
Dillon Kearns
|
a9db326fa4
|
Rename some global things to shared.
|
2020-09-12 09:16:56 -07:00 |
|