Commit Graph

1437 Commits

Author SHA1 Message Date
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
e0f03dd1a3 Add elm-pages beta to NPM bin. 2020-10-19 22:25:00 -07:00
Dillon Kearns
2bf1aeef42 Install terser and elm-optimize-level-2. 2020-10-19 22:23:40 -07:00
Dillon Kearns
00bcb72b8b Remove redundant function calls to improve performance. 2020-10-19 22:21:03 -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
7ae76293d8 Fix compiler error in tests. 2020-10-19 17:41:27 -07:00
Dillon Kearns
0255316065 Fix performace bottleneck in map2. 2020-10-19 17:21:36 -07:00
Dillon Kearns
dc6c9e9692 Fix head tag renderer. 2020-10-18 19:19:37 -07:00
Dillon Kearns
7964f90191 Remove some todos. 2020-10-18 17:26:06 -07:00
Dillon Kearns
7c72bfdc12 Rename value. 2020-10-18 16:54:51 -07:00
Dillon Kearns
f896d5d306 Remove some todos. 2020-10-18 16:50:14 -07:00
Dillon Kearns
4efd43b97d Handle sending errors from generate files. 2020-10-18 13:31:44 -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
eb170bd2c1 Fix some test compiler errors. 2020-10-17 13:47:41 -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
cfaf6dbb5c Lift a case statement. 2020-10-16 11:51:54 -07:00
Dillon Kearns
5ce03395ab Extract function. 2020-10-16 11:00:28 -07:00
Dillon Kearns
29aac16a33 Include ports in example. 2020-10-16 10:36:52 -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
094f108890 Remove unused variable. 2020-10-15 20:59:52 -07:00
Dillon Kearns
4b30a4b4bb Update beta index code. 2020-10-15 20:53:12 -07:00
Dillon Kearns
cc78cb40c5 Add data-url div to example boilerplate. 2020-10-15 20:41:35 -07:00
Dillon Kearns
adf16677d2 Add links to example. 2020-10-15 20:41:14 -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
5b5b2b4cda Add script for testing lots of files in content folder. 2020-10-14 10:09:13 -07:00
Dillon Kearns
81df8b7094 Log after pre-rendering each route. 2020-10-13 21:54:23 -07:00
Dillon Kearns
fbef4d6c15 Add gitignore for simple/gen. 2020-10-13 21:46:44 -07:00
Dillon Kearns
8a24e858d2 Send ports for pages as they're completed. 2020-10-13 21:46:08 -07:00
Dillon Kearns
ad0059037a Log http requests with port. 2020-10-13 21:18:15 -07:00
Dillon Kearns
4587e235d8 Process one page at a time. 2020-10-13 21:02:12 -07:00
Dillon Kearns
1d304ad094 Wire in starting point for continuing steps one at a time for cli pre-rendering. 2020-10-13 15:40:36 -07:00
Dillon Kearns
2f256c800c Remove generated file. 2020-10-13 15:00:37 -07:00
Dillon Kearns
2f6a773b0c Run code generation in beta cli. 2020-10-13 10:03:36 -07:00