Dillon Kearns
9faaa69e11
Use util.promisfy to ensure compatibility with Node 12.
2020-10-16 15:43:11 -07:00
Dillon Kearns
b8a7b95698
Generate files.
2020-10-16 15:33:51 -07:00
Dillon Kearns
3643f5666d
Write out manifest.json file.
2020-10-16 15:19:46 -07:00
Dillon Kearns
8c3e27b3ff
Add generate-manifest js function.
2020-10-16 10:36:25 -07:00
Dillon Kearns
4137773928
Import user-index in example.
2020-10-16 10:36:12 -07:00
Dillon Kearns
cc78cb40c5
Add data-url div to example boilerplate.
2020-10-15 20:41:35 -07:00
Dillon Kearns
6c1781b154
Remove hardcoding of raw body in content.json.
2020-10-15 06:33:16 -07:00
Dillon Kearns
3e4ce8dc29
Extract constant.
2020-10-15 06:17:32 -07:00
Dillon Kearns
0b168e5e25
Clean up some async cli code.
2020-10-15 06:10:24 -07:00
Dillon Kearns
9c117fa854
Copy stylesheet and js entrypoint in async function.
2020-10-14 13:21:02 -07:00
Dillon Kearns
3785838fd9
Copy stylesheet and include it.
2020-10-14 12:59:31 -07:00
Dillon Kearns
81df8b7094
Log after pre-rendering each route.
2020-10-13 21:54:23 -07:00
Dillon Kearns
ad0059037a
Log http requests with port.
2020-10-13 21:18:15 -07:00
Dillon Kearns
2f6a773b0c
Run code generation in beta cli.
2020-10-13 10:03:36 -07:00
Dillon Kearns
eb9c339dcd
Run terser.
2020-10-12 18:30:50 -07:00
Dillon Kearns
df3213148f
Refactor duplicate shell execution code.
2020-10-12 17:54:05 -07:00
Dillon Kearns
ef952f6acb
Add some type annotations.
2020-10-12 17:20:34 -07:00
Dillon Kearns
6a32b0ca5c
Include logic for base routes.
2020-10-12 17:03:35 -07:00
Dillon Kearns
a0e3fa0043
Fix issue with importing index.js in beta.
2020-10-12 16:05:46 -07:00
Dillon Kearns
5d6d555849
Run terser on output.
2020-10-11 22:22:58 -07:00
Dillon Kearns
802f43cfb5
Import elm code as an es6 module.
2020-10-11 22:18:33 -07:00
Dillon Kearns
86ea65a3ba
Generate multiple pages, and show error messages.
2020-10-11 21:21:34 -07:00
Dillon Kearns
40c3f5a16c
Render head tags in beta pre-renderer.
2020-10-11 08:43:38 -07:00
Dillon Kearns
7beaf5ddaf
Set up proof of concept for webpack-free build.
2020-10-10 18:07:36 -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