Commit Graph

332 Commits

Author SHA1 Message Date
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
Dillon Kearns
f481a6bf77
Merge pull request #90 from Y0hy0h/terser
Replace Google Closure minifier with Terser
2020-05-11 16:09:34 -07:00
Dillon Kearns
9a8698d70b Add some more terser options. 2020-05-11 16:03:55 -07:00
Dillon Kearns
8f7bbc80b4 Restore elm optimizations for terser. 2020-05-11 15:22:28 -07:00
Dillon Kearns
29719cc428 Merge branch 'master' into pr/90 2020-05-11 12:05:38 -07:00
Dillon Kearns
3a61933d81 Merge branch 'master' into phantom-builder 2020-05-11 10:40:58 -07:00
Dillon Kearns
df5b36d7fb Render loading indicator off to the side of the elm debugger panel. 2020-05-09 20:33:32 -07:00
Dillon Kearns
87d810790f Move more of loading indicator style into Elm. 2020-05-08 07:13:16 -07:00
Dillon Kearns
e62d61fbab Generate manifest config for initial run. 2020-05-06 19:00:11 -07:00
Dillon Kearns
414f7ab1f8 Rename parameter. 2020-05-05 07:21:04 -07:00
Dillon Kearns
8a35d49d1c Remove unused arguments. 2020-05-05 07:19:16 -07:00
Dillon Kearns
d79fc80233 Remove unused arguments. 2020-05-05 07:14:24 -07:00
Dillon Kearns
ed2d671586 Change hook based on dev/prod mode. 2020-05-05 06:58:58 -07:00
Dillon Kearns
2e8e9754d1 Remove unused code. 2020-05-04 20:46:14 -07:00
Dillon Kearns
d676064acf Remove some unused code. 2020-05-04 14:00:53 -07:00
Dillon Kearns
03315da320 Change error message string. 2020-05-04 14:00:33 -07:00
Dillon Kearns
a210fcfd35 Remove unused require. 2020-05-03 20:15:52 -07:00
Dillon Kearns
73c4a2dec2 Make sure gen directory exists. 2020-05-03 17:38:34 -07:00
Dillon Kearns
8171f205fe Get build process working with new webpack setup. 2020-05-03 17:31:19 -07:00
Dillon Kearns
4c43d02f32 Remove unused code. 2020-05-03 15:57:24 -07:00