Commit Graph

3514 Commits

Author SHA1 Message Date
Dillon Kearns
0ca946421f Remove no-optional flag to fix cloudflare pages deploy issue with esbuild install. 2022-02-23 18:01:42 -08:00
Dillon Kearns
2edb61cb74 Reinstall dependencies and remove npm i -f flag to try on cloudflare pages. 2022-02-23 17:25:01 -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
a6a50b8300 See if vercel-build command works on vercel deployment. 2022-02-23 16:21:30 -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
13caf7c8cb Extract out two stylesheets in docs site. 2022-02-23 13:43:29 -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
e6a81a56e9 Change argument order in helper function. 2022-02-23 10:41:04 -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
Dillon Kearns
797d3edb84 Update package-lock file in pokedex example. 2022-02-21 17:38:25 -08:00
Dillon Kearns
12c00b7565 Update adapter script error message and template file location. 2022-02-21 17:01:01 -08:00
Dillon Kearns
ff71b62321 Try using vite-generated HTML template in adapter-generated scripts. 2022-02-21 16:54:51 -08:00
Dillon Kearns
64c983c3ec Move entrypoint files to top-level in pokedex project. 2022-02-21 15:51:16 -08:00
Dillon Kearns
bc4612ddab Use elm-review option --fix-all-without-prompt instead of stdin pipe. 2022-02-21 15:50:42 -08:00
Dillon Kearns
e793a8fe89 Ensure that fixes don't infinitely apply for Request.oneOf [] case. 2022-02-21 15:50:17 -08:00
Dillon Kearns
939635eec4 Remove hardcoded index.html project file. 2022-02-21 15:37:24 -08:00
Dillon Kearns
7da42c9ffd Delete unused. 2022-02-21 14:56:38 -08:00
Dillon Kearns
0964448ae5 Remove obsolete code. 2022-02-21 14:46:51 -08:00
Dillon Kearns
cd18fb7567 Update dependencies. 2022-02-21 14:25:10 -08:00
Dillon Kearns
e2e98405ec Update dependencies. 2022-02-21 14:23:17 -08:00
Dillon Kearns
8287623f23 Pass through root tag to HTML template replacement. 2022-02-21 09:57:23 -08:00
Dillon Kearns
8ee5b2a649 Add missing. (+2 squashed commits)
Squashed commits:
[ea4646e3] Fix two errors.
[31faf674] Add initial Vite SSR setup.
2022-02-21 09:30:31 -08:00
Dillon Kearns
79c7f6a75e Update intellij config file. 2022-02-21 09:30:08 -08:00
Dillon Kearns
fbcbfa3c27 Add optional body parameter to reload page data port in order to avoid an extra round trip for form POST. 2022-02-17 11:52:21 -08:00
Dillon Kearns
94d6a71579 Simplify expect*Response function signatures to remove extra mapping function. 2022-02-17 07:58:21 -08:00
Dillon Kearns
9c9dd49eca Update docs and extract internal function. 2022-02-16 21:36:36 -08:00
Dillon Kearns
c5b5f35504 Add expectBytesResponse. 2022-02-16 21:25:43 -08:00
Dillon Kearns
edc808ac37 Add DataSource.Http.expectWhatever. 2022-02-16 21:13:04 -08:00
Dillon Kearns
2215a63580 Add expectBytes. 2022-02-16 20:54:56 -08:00
Dillon Kearns
c1d8209c0c elm-review fixes. 2022-02-16 17:16:29 -08:00
Dillon Kearns
141667f2b2 Refactor internal request types. 2022-02-16 17:15:12 -08:00
Dillon Kearns
3976ec436a Remove redundant implementation. 2022-02-16 17:08:46 -08:00
Dillon Kearns
094e905dd5 Update pokedex example for latest file structure with app/ folder. 2022-02-16 16:54:52 -08:00
Dillon Kearns
f5a3d6f897 Move decrypt/encrypt logic into interal request code path. 2022-02-16 16:54:15 -08:00
Dillon Kearns
c91077ad56 Change GotBatch data type to support different response types. 2022-02-16 16:51:59 -08:00
Dillon Kearns
370afc6703 Return build error instead of caching HTTP response in cases where HTTP errors are not handled (expectJson and expectString).
SInce it's always going to fail, caching the bad response would keep it stuck in a build failure state.
2022-02-16 10:51:26 -08:00
Dillon Kearns
2b6d13234f Add DataSource.Http.expectStringResponse which allows you to get response headers and handle bad status codes. 2022-02-15 16:01:23 -08:00