Commit Graph

351 Commits

Author SHA1 Message Date
Dillon Kearns
785d6ae85a Use site config module. 2020-09-13 07:19:09 -07:00
Dillon Kearns
a9db326fa4 Rename some global things to shared. 2020-09-12 09:16:56 -07:00
Dillon Kearns
6214964257 Rename global to shared. 2020-09-12 09:15:24 -07:00
Dillon Kearns
b762c655a4 Rename module. 2020-09-06 13:37:24 -07:00
Dillon Kearns
9a4fd9a3f3 Remove unused import. 2020-09-06 13:12:55 -07:00
Dillon Kearns
d6790c479c Use static payload for head function. 2020-09-06 12:42:05 -07:00
Dillon Kearns
40614be38f Pass in global static in static bundle. 2020-09-06 12:29:46 -07:00
Dillon Kearns
651de61146 Change Template signatures and use Template alias instead of TemplateDocument module. 2020-09-06 08:41:24 -07:00
Dillon Kearns
eb8c0ffabc Remove save hook. 2020-09-05 22:17:28 -07:00
Dillon Kearns
57310bacd8 Wire in global model to view. 2020-09-05 21:31:14 -07:00
Dillon Kearns
87eb2408cc Stop generating save function. 2020-09-05 21:13:38 -07:00
Dillon Kearns
b66b0ba45c Wire up new shared update msg. 2020-09-05 21:02:05 -07:00
Dillon Kearns
e4a703b8d4 Wire in load function on global msgs. 2020-09-02 07:57:33 -07:00
Dillon Kearns
dc9e34207a Init local model with load from global model. 2020-09-01 23:49:23 -07:00
Dillon Kearns
6bebe4f32c Persist global state. 2020-09-01 23:03:50 -07:00
Dillon Kearns
9e8659b305 Remove toMsg and toGlobalMsg and change msg type for rendered document. 2020-09-01 22:38:57 -07:00
Dillon Kearns
3a0196b69d Use save function on template model updates. 2020-09-01 17:39:05 -07:00
Dillon Kearns
7a6e9b77f2 Rename function. 2020-08-26 22:05:12 -07:00
Dillon Kearns
307f1bdf25 Wire in toMsg and toGlobalMsg. 2020-08-24 22:13:14 -07:00
Dillon Kearns
dc4ba8105d Remove Debug.todo. 2020-08-23 21:27:51 -07:00
Dillon Kearns
d98d94747a Remove coupling to elm-ui and elm-markdown packages in generated template connector. 2020-08-23 13:15:31 -07:00
Dillon Kearns
959130aae0 Pass in subscriptions explicitly to template builder, and let caller pipe through toProgram. 2020-08-23 10:44:00 -07:00
Dillon Kearns
0ac6caaf0b Implement update wiring in Template Connector. 2020-08-23 10:39:51 -07:00
Dillon Kearns
375006e342 Escape literal backslashes and wire in code generation. 2020-08-23 08:00:49 -07:00
Dillon Kearns
6de2a556eb Remove unused argument. 2020-08-23 07:35:03 -07:00
Dillon Kearns
0ce57d2750 Use wildcard for update function for now. 2020-08-23 07:34:09 -07:00
Dillon Kearns
56028a1d41 Remove hardcoding of init function. 2020-08-23 07:21:40 -07:00
Dillon Kearns
15a8881eec Remove more hardcoding. 2020-08-22 22:35:39 -07:00
Dillon Kearns
8978187ca6 Remove some more hardcoding. 2020-08-22 22:25:58 -07:00
Dillon Kearns
3983c06006 Remove some hardcoding. 2020-08-22 22:17:02 -07:00
Dillon Kearns
493f8d3634 Add hardcoded generate file function to seed snapshot. 2020-08-22 21:34:47 -07:00
Dillon Kearns
3bee40a7bc
Merge pull request #123 from sparksp/generate-command
Generate without full build
2020-08-17 19:41:30 -07:00
Dillon Kearns
646ebc42b2 Set headers to turn off caching in dev server so Safari doesn't load stale data. 2020-08-17 19:37:29 -07:00
Phill Sparks
8b4d92d4ca
Use build --skip-dist instead of generate 2020-07-14 21:57:18 +01:00
Phill Sparks
4da355b17e
Generate without full build
Adds `elm-pages generate` command which only builds `gen/Pages.elm`.

Fixes #112
2020-07-14 21:57:18 +01:00
Dillon Kearns
ebd348d3f6
Merge pull request #110 from Y0hy0h/image-dimensions
Provide image dimensions
2020-06-16 20:54:51 -07:00
Dillon Kearns
aaaf75e366
Merge pull request #121 from dillonkearns/non-zero-exit-on-error
Non zero exit on errors
2020-06-16 08:26:11 -07:00
Dillon Kearns
e734f76576 Make sure webpack exits with non-zero status when there are errors. Fixes #115. 2020-06-16 08:22:58 -07:00
Johannes Maas
e34c7ca438 Fix static folder destination on Windows
On Windows, a file in static/file.txt was put into dist/static/file.txt instead of dist/file.txt.

This was because we cut off everything before the first "/" in the target path string, but Windows separates folders with "\".

Instead, we can use the somewhat hidden context feature from the CopyPlugin to get rid of the static/ prefix. See https://webpack.js.org/plugins/copy-webpack-plugin/#from-is-a-glob
2020-06-12 12:20:22 +02:00
Johannes Maas
0ede0c8a3b Fix infinite recompilation loop
The images were sorted differently in the resulting Pages.elm file, triggering constant recompilations because the files were considered different.

The random order is probably due to the introduced async operations.
2020-05-23 23:04:40 +02:00
Johannes Maas
e4a9c84cf5 Propagate the promise handling 2020-05-17 21:21:55 +02:00
Johannes Maas
b23915eac1 Pass images their dimensions 2020-05-17 21:21:29 +02:00
Johannes Maas
0ea9c78e51 Add dimensions to buildImage 2020-05-17 21:20:03 +02:00
Johannes Maas
ef9108924b Merge remote-tracking branch 'upstream/master' into image-dimensions 2020-05-17 19:54:21 +02:00
Dillon Kearns
84fd44b922 Address some typescript warnings. 2020-05-17 10:48:52 -07:00
Dillon Kearns
39bf0ca62a Address some typescript warnings. 2020-05-17 10:23:36 -07:00
Johannes Maas
7be88793fe Refactor generation code 2020-05-17 18:34:53 +02:00
Dillon Kearns
1684c45ca3 Use async plugin for generating files. 2020-05-17 09:12:06 -07:00
Johannes Maas
6173268185 Factor out common funcs in image asset processing 2020-05-17 15:36:19 +02:00
Dillon Kearns
7d340065bb Make sure to fail on build errors for elm-pages build. 2020-05-11 16:29:40 -07:00