Commit Graph

234 Commits

Author SHA1 Message Date
Dillon Kearns
5a1e06c729 Keep dev server running for non-fatal errors. 2020-01-27 15:05:40 -08:00
Dillon Kearns
6195c5a35f Remove some console.log statements. 2020-01-25 20:34:52 -08:00
Dillon Kearns
cae334486a Merge branch 'master' into generate-files 2020-01-23 20:03:18 -08:00
Dillon Kearns
3a4881d002 Change relative path reference for content.json preload tag. 2020-01-20 08:03:59 -08:00
Dillon Kearns
fe6e046610 Add script defer tag. 2020-01-20 07:59:29 -08:00
Dillon Kearns
d9deee076b
Merge pull request #41 from lukewestby/patch-1
Escape frontmatter content in raw records so it handles newlines
2020-01-12 18:53:47 -08:00
Dillon Kearns
2e8fbee58b Merge branch 'master' into generate-files 2020-01-08 15:07:30 -08:00
Dillon Kearns
79e68efba8 Restore --port functionality in dev mode. 2020-01-08 09:55:31 -08:00
Luke Westby
5785d45f66
escape frontmatter content so it handles newlines 2020-01-07 09:33:40 -08:00
Dillon Kearns
a0a99dab52 Ignore files with extensions for service worker shell fallback. 2020-01-06 09:50:51 -08:00
Dillon Kearns
4c4d26e320 Merge branch 'master' into generate-files 2020-01-05 20:59:43 -08:00
Dillon Kearns
dc29eb4ed6 Fix builtAt time format (was divided by 1000 incorrectly). 2020-01-05 20:59:27 -08:00
Dillon Kearns
815dec7d98 Add hardcoded file generation in prep for programmatic file generation from elm. 2020-01-05 13:54:55 -08:00
Dillon Kearns
c846c9ff25 Remove HMR config from production webpack configuration. 2020-01-04 19:09:25 -08:00
Dillon Kearns
48d19ddc72 Setup hot module reloading for dev server. 2020-01-04 18:53:08 -08:00
Dillon Kearns
dd785ea4af Merge branch 'master' into pr/23 2020-01-03 18:22:14 -08:00
Dillon Kearns
cce522862d Change buildTime to builtAt. 2020-01-03 16:18:37 -08:00
Dillon Kearns
70a1e75635 Remove reference to unused internal module in generated file. 2020-01-03 16:00:31 -08:00
Dillon Kearns
1e34faac47 Delete old generated files to prevent compilation errors. 2020-01-03 14:48:42 -08:00
Dillon Kearns
4b75992ab7 Update dependency. 2019-12-11 10:33:26 -08:00
Dillon Kearns
a55440f44e Update to Elm 0.19.1. 2019-12-11 05:54:00 -08:00
Dillon Kearns
b435eb1560 Merge branch 'master' into static-http 2019-12-10 17:26:17 -08:00
Dillon Kearns
d016beb50b Normalize path names so lookups succeed. 2019-12-10 09:51:43 -08:00
Dillon Kearns
1b2d08bc54 Use ilias's latest json library, update docs site, use 19.1 for docs site. 2019-12-09 20:18:48 -08:00
Dillon Kearns
b0213189ca Generate buildTime constant in Pages.elm. 2019-12-09 13:03:53 -08:00
Daniel Marin
362e5ffef5
Delay copying of elm files to /gen folder until cli app is done
Before this change webpack started compiling before the cli version
if the app was compiled in doCliStuff.

Not sure how but this was causing webpack to send the cli version
of the app to the browser when main.js was requested. This caused
the app to not render anything (because it was a worker app) and
not show any errors.

The change just waits until the cli finished compiling to only
then move the .elm files to the /gen folder, triggering webpack
to recompile using the correct (ui version) of the app.
2019-11-14 19:21:56 +00:00
Dillon Kearns
976b8d8e0e Fix regression with .emu frontmatter parsing. 2019-11-14 06:53:08 -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
f5ef176306 Generate files for extensions besides md and emu. Fixes #16. 2019-11-04 10:18:49 -08:00
Dillon Kearns
86d14fb8e5 Only check flags for port, not env variables. 2019-11-03 20:18:49 -08:00
Dillon Kearns
f3fbc9ff72 Update docs to use the new StaticHttp module. 2019-11-02 16:32:12 -07:00
Dillon Kearns
8941ae1e84 Print out error string from CLI without extra noise. 2019-10-28 13:16:22 -07:00
Dillon Kearns
5754bfb186 Pass through environment to CLI app for secrets. 2019-10-24 08:58:44 -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
bbc06c46b3 Remove some log statements. 2019-10-22 18:13:17 -07:00
Dillon Kearns
c04b72c5c2 Wire through StaticRequests end-to-end. 2019-10-22 13:36:41 -07:00
Dillon Kearns
789cc59d88 Send manifest config through port. 2019-10-21 23:06:25 -07:00
Dillon Kearns
4b32547c7c Update generated Pages.elm file template. 2019-10-21 15:57:01 -07:00
Dillon Kearns
1fc2e80294 Stop copying over files that are now moved to public package. 2019-10-21 15:29:44 -07:00
Dillon Kearns
d1d6d91fa8 Make XHR request in CLI with xhr2 package. 2019-10-21 08:40:22 -07:00
Dillon Kearns
899f872223 Add starting point for function to extract StaticRequests for each page. 2019-10-19 10:02:28 -07:00
Leo jPod
ac954f8f4c
introduce an optional argument to the develop command to specify which port it should run 2019-10-16 08:08:18 +02:00
Leo jPod
63477bbd05
check, can we force feed the port via a env var? 2019-10-16 08:08:18 +02:00
Dillon Kearns
40089da983 Initial prototype to fetch static data. 2019-10-15 22:16:49 -07:00
Dillon Kearns
92a2ba9578 Get basic types wired up for static data. 2019-10-15 20:23:52 -07:00
Dillon Kearns
ebc80239a8 Do example of hardcoded static data. 2019-10-14 08:06:31 -07:00
Dillon Kearns
8037ed33f5 Pass in static http no-op request as a prototype. 2019-10-13 17:35:34 -07:00
Dillon Kearns
130fe8c3ad Change structure of the view/head functions in application config. 2019-10-13 09:53:24 -07:00
Dillon Kearns
431b350858 Wire through (Maybe (PagePath pathKey)) as init argument. 2019-10-08 21:12:17 -07:00
Dillon Kearns
fcc3661909 Add onUrlChange to Pages.application (fixes #4). 2019-10-08 20:36:54 -07:00