Commit Graph

364 Commits

Author SHA1 Message Date
Dillon Kearns
4ecad413d9 Add generator version. 2020-10-21 10:14:00 -07:00
Dillon Kearns
1d71e5433d Copy style entrypoint from beta-style.css. 2020-10-20 20:55:30 -07:00
Dillon Kearns
2dad51714f Rename entry point to beta-index. 2020-10-20 20:52:36 -07:00
Dillon Kearns
48c31bcca2 Get docs site compiling with elm-pages build/develop. 2020-10-20 19:30:52 -07:00
Dillon Kearns
7376288e88 Pass through title to cli, add icon meta tags, fix external image url to not prepend canonical url. 2020-10-20 19:11:58 -07:00
Dillon Kearns
61a46aef91 Add icons to manifest config. 2020-10-20 16:41:00 -07:00
Dillon Kearns
a4a34f893d Add shebang line for beta cli. 2020-10-19 22:42:26 -07:00
Dillon Kearns
c7af54bbe8 Move file. 2020-10-19 22:30:47 -07:00
Dillon Kearns
e4bcf3f00c Clear service worker registrations. 2020-10-19 21:55:40 -07:00
Dillon Kearns
a9e2ece36d Try creating directory before generating file. 2020-10-19 19:02:50 -07:00
Dillon Kearns
6966d5d5f3 Await mkdir to ensure directory exists before continuing. 2020-10-19 18:45:20 -07:00
Dillon Kearns
dc6c9e9692 Fix head tag renderer. 2020-10-18 19:19:37 -07:00
Dillon Kearns
6910f32c42 Exit with non-zero status code when error is present. 2020-10-17 21:15:56 -07:00
Dillon Kearns
299ebd0edc Use codecs to send out ports to JS. 2020-10-17 18:58:17 -07:00
Dillon Kearns
5a7374114a Copy image directory to dist. 2020-10-16 18:51:29 -07:00
Dillon Kearns
c960dffdca Make sure files exist before trying to mkdir. 2020-10-16 18:41:13 -07:00
Dillon Kearns
1f76899971 Copy nested directory for images folder. 2020-10-16 18:21:28 -07:00
Dillon Kearns
129e9360b1 Move static and image folder contents into dist dir. 2020-10-16 18:00:27 -07:00
Dillon Kearns
22d66c4760 Copy index template in build step. 2020-10-16 16:30:10 -07:00
Dillon Kearns
17aa244fc6 Run terser with npx. 2020-10-16 15:59:43 -07:00
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