Commit Graph

1345 Commits

Author SHA1 Message Date
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
a125919f1d Bump elm package. 2020-07-14 12:12:02 -07:00
Dillon Kearns
62b9d4176a 1.4.2 2020-07-14 12:10:19 -07:00
Dillon Kearns
2d27a014c0 Update changelogs. 2020-07-14 11:56:00 -07:00
Dillon Kearns
826f0a0cd7 Fix missing content flash for sites hosted at a base url. Fixes #106. 2020-07-14 09:14:17 -07:00
Dillon Kearns
007c9c823f Merge branch 'pr/110' 2020-06-16 20:55:04 -07: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
929c57a18a Run snapshot test with images in test directory. 2020-06-16 20:51:44 -07:00
Dillon Kearns
f521ba497c
Fix date in changelog entry. 2020-06-16 08:45:17 -07:00
Dillon Kearns
df781b9b49 Bump elm package. 2020-06-16 08:33:54 -07:00
Dillon Kearns
bd5043160c 1.4.1 2020-06-16 08:33:37 -07:00
Dillon Kearns
7c4c6c2634 Update changelogs. 2020-06-16 08:32:52 -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
3e1bd85001
Merge pull request #118 from Y0hy0h/fix-static-destination
Fix static folder destination on Windows and clean up its implementation
2020-06-16 08:25:03 -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
Dillon Kearns
1605580bb3
Merge pull request #120 from dillonkearns/fix-static-http-generate-files-hanging
Fix static http generate files hanging
2020-06-16 08:21:43 -07:00
Dillon Kearns
4962bf6520 Make pending requests check check if the cache contains requests. Fixes #107. 2020-06-15 19:42:04 -07:00
Dillon Kearns
77d5af5a1c Refactor binding to use pipe syntax. 2020-06-15 19:35:45 -07:00
Dillon Kearns
4101b060a5 Use equalDicts helper. 2020-06-15 15:23:07 -07:00
Dillon Kearns
32f1936a2a
Merge pull request #119 from dillonkearns/refactor-cli-module
Refactor cli module
2020-06-15 15:01:21 -07:00
Dillon Kearns
c54114c3e9 Remove a debug statement. 2020-06-15 14:54:46 -07:00
Dillon Kearns
3dcfd04701 Move let block up a level. 2020-06-15 14:44:03 -07:00
Dillon Kearns
0d39eafb06 Add test case for generating files with static http data. 2020-06-13 13:43:35 -07:00
Dillon Kearns
229a8c4445 Add additional parameter to test start function. 2020-06-13 12:31:47 -07:00
Dillon Kearns
44b5fad025 Rewrite type annotation across lines. 2020-06-13 12:29:36 -07:00
Dillon Kearns
25ac5de02d Add unit test for static responses module. 2020-06-13 12:26:47 -07:00
Dillon Kearns
592deda88e Extract flags decoder. 2020-06-13 11:06:06 -07:00
Dillon Kearns
4d887dee76 Remove unused type alias. 2020-06-13 07:55:01 -07:00
Dillon Kearns
93803c0d63 Remove redundant StaticResponses insert. 2020-06-13 07:49:08 -07:00
Dillon Kearns
aa348ee241 Hide private functions. 2020-06-13 07:39:13 -07:00
Dillon Kearns
d479b6a48d Remove unused import. 2020-06-13 07:37:42 -07:00
Dillon Kearns
a30d6d337c Rename some functions. 2020-06-13 07:37:23 -07:00
Dillon Kearns
aa0e2702e4 Return NextStep custom type to make StaticResponses contract more explicit. 2020-06-13 07:33:21 -07:00
Dillon Kearns
dfa44e7b02 Format some type annotations on multiple lines. 2020-06-13 06:53:27 -07:00
Dillon Kearns
79d4d6bdcc Extract codec to module. 2020-06-13 06:09:09 -07:00
Dillon Kearns
d938110cb5 Use opaque type for StaticResponses. 2020-06-12 21:18:07 -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
Dillon Kearns
f0d67660b3 Extract Effect type to module. 2020-06-11 20:57:19 -07:00
Dillon Kearns
eef6e7d568 Extract ToJsPayload module. 2020-06-11 20:55:19 -07:00
Dillon Kearns
4ad0c59406 Remove unused value. 2020-06-11 20:34:32 -07:00
Dillon Kearns
05aba2c44c Extract function. 2020-06-11 20:33:13 -07:00
Dillon Kearns
0fbd2deb5e Write type as extensible record. 2020-06-11 20:31:36 -07:00
Dillon Kearns
67d3c5df85 Extract another function. 2020-06-11 20:26:55 -07:00
Dillon Kearns
8a464e7f1b Extract another function to StaticResponses module. 2020-06-11 20:23:50 -07:00
Dillon Kearns
33638a0165 Extract function to StaticResponses module. 2020-06-11 20:22:14 -07:00
Dillon Kearns
f33b38349c Extract mode module. 2020-06-11 20:20:34 -07:00
Dillon Kearns
32c5e60752 Extract StaticResponses type from CLI code. 2020-06-11 20:19:10 -07:00
Dillon Kearns
716e71c007
Fix typo. 2020-06-09 08:27:16 -07:00
Dillon Kearns
67620a5124 Update docs site dependencies. 2020-06-06 15:21:33 -07:00