Commit Graph

179 Commits

Author SHA1 Message Date
Dillon Kearns
38b6dc8419 Generate all Nothing values (only works for prod for now). 2019-08-16 18:31:25 -07:00
Dillon Kearns
431fd9d5bd Remove hardcoding for preload links. 2019-08-16 18:31:05 -07:00
Dillon Kearns
d527f94e36 Generate content.txt file for all markdown files. 2019-08-16 08:32:15 -07:00
Dillon Kearns
9fabb89c97 Add hardcoded content.txt file to assets. 2019-08-16 08:12:16 -07:00
Dillon Kearns
020228f8ed Use favicons webpack plugin. 2019-08-15 15:51:19 -07:00
Dillon Kearns
824e7bf300 Pass through --debug flag for elm-pages develop. 2019-08-15 12:13:08 -07:00
Dillon Kearns
aab81c137f Use --optimize for production build. 2019-08-14 22:04:56 -07:00
Dillon Kearns
2f394a0dda Move to workbox webpack plugin. 2019-08-14 21:43:12 -07:00
Dillon Kearns
b61d1023fd Skip --optimize for now as it's causing errors. 2019-08-14 19:43:50 -07:00
Dillon Kearns
1eb3653a18 Fix configuration for dev/prod elm loader. 2019-08-14 19:35:00 -07:00
Dillon Kearns
937b079a4f Build service worker once static files are generated. 2019-08-14 19:16:23 -07:00
Dillon Kearns
d85d647dc6 Optimize elm build in production mode. 2019-08-14 18:31:07 -07:00
Dillon Kearns
5679d642b4 Fix service worker to load from absolute url. 2019-08-14 17:55:41 -07:00
Dillon Kearns
6ce8a8d0a2 Fix the way the elm-pages module was being loaded. 2019-08-14 17:42:02 -07:00
Dillon Kearns
f8168edd69 Display webpack errors if present in elm-pages build. 2019-08-14 17:41:26 -07:00
Dillon Kearns
18687b8432 Remove commented line. 2019-08-14 17:40:45 -07:00
Dillon Kearns
025b7ff2af Try different module resolution fix for looking up node_modules. 2019-08-14 16:43:35 -07:00
Dillon Kearns
857cb8e94d Try removing resolve module option to make netlify build happy. 2019-08-14 15:47:14 -07:00
Dillon Kearns
e2c7cbad73 Use template for html file that loads service worker file. 2019-08-14 15:15:00 -07:00
Dillon Kearns
6af5a1ca11 Get css loaders working. 2019-08-14 14:31:05 -07:00
Dillon Kearns
6a6668cf8b Wait for prerender trigger to pre-render pages. 2019-08-14 14:16:28 -07:00
Dillon Kearns
572e3ccb6c Build service worker for elm-pages build step. 2019-08-14 14:15:14 -07:00
Dillon Kearns
4e1b4a7627 Inject script tag in <head> to prevent elm from removing it. 2019-08-14 14:14:47 -07:00
Dillon Kearns
f18a21d3a0 Remove hardcoding of routes. 2019-08-14 13:32:53 -07:00
Dillon Kearns
e4a2be705b Get prerendering working with hardcoded list of routes. 2019-08-14 13:26:10 -07:00
Dillon Kearns
ffc324b21f Clean up repeated code. 2019-08-14 12:50:53 -07:00
Dillon Kearns
5b39c9f46c Implement elm-pages build command. 2019-08-14 12:49:00 -07:00
Dillon Kearns
62f29e151c Correctly route other html pages. 2019-08-14 12:23:54 -07:00
Dillon Kearns
f70ef558cf Serve static assets. 2019-08-14 12:17:07 -07:00
Dillon Kearns
7c89584333 Run webpack server for elm-pages build. 2019-08-14 09:57:04 -07:00
Dillon Kearns
f45cc838e9 Use require.resolve in webpack file to fix issue with local installs. 2019-08-14 09:31:23 -07:00
Dillon Kearns
33697a7043 Add webpack html plugin. 2019-08-13 16:13:07 -07:00
Dillon Kearns
77617f388c Add basic boilerplate for running webpack dev server. 2019-08-13 16:02:58 -07:00
Dillon Kearns
4bd49a6511 Add boilerplate for building with webpack middleware. 2019-08-13 13:55:13 -07:00
Dillon Kearns
a7917cf70e Add import. 2019-08-13 13:00:40 -07:00
Dillon Kearns
57c3a7b0b2 Add function for building service worker with workbox for use with CLI. 2019-08-12 20:10:21 -07:00
Dillon Kearns
2f9a758be9 Include markdown paths in prerender paths. 2019-08-11 20:01:59 -07:00
Dillon Kearns
9ec5923ea1 Rename variables. 2019-08-05 16:01:32 -07:00
Dillon Kearns
3a5dc7c12f Rename type. 2019-08-05 16:00:17 -07:00
Dillon Kearns
2b33dfc451 Add a space before the raw json to avoid invalid elm syntax. 2019-08-05 15:17:55 -07:00
Dillon Kearns
69a5018ca8 Use gray-matter npm package to parse markdown frontmatter. 2019-08-05 15:12:58 -07:00
Dillon Kearns
3790c65a2b Rename Pages.program to Pages.application. 2019-08-05 11:14:29 -07:00
Dillon Kearns
487075ba2c Watch for changes to .md files. 2019-08-02 17:38:26 -07:00
Dillon Kearns
38c9d6dafc Remove some comments. 2019-08-02 06:56:27 -07:00
Dillon Kearns
cbb918bc33 Generate raw content for markdown files. 2019-08-02 06:29:34 -07:00
Dillon Kearns
e44abadcb6 Add watch mode. 2019-07-29 13:34:22 -07:00
Dillon Kearns
4000021d63 Change binary and naming to elm-pages. 2019-07-29 11:56:41 -07:00
Dillon Kearns
cb87654b0d Fix watch path. 2019-07-29 11:55:43 -07:00
Dillon Kearns
11dc79bb45 Add console log to show when running. 2019-07-29 11:53:38 -07:00
Dillon Kearns
79504bf4f5 Change import line. 2019-07-29 09:27:36 -07:00
Dillon Kearns
7052aba7bf Change code generation to use flat structure under content directory, and generate prerender.config.js file. 2019-07-29 09:27:21 -07:00
Dillon Kearns
bdfd510e8c Parse pages into single list. 2019-07-28 08:47:58 -07:00
Dillon Kearns
5b33c0b5d3 Run in file watch mode. 2019-07-26 10:15:45 -07:00
Dillon Kearns
0a08f36a89 Update generator code. 2019-07-25 16:32:22 -07:00
Dillon Kearns
9957519829 Don't generate image assets for directories. 2019-07-24 15:40:53 -07:00
Dillon Kearns
5dfa1135a1 Update generated code. 2019-07-24 15:40:41 -07:00
Dillon Kearns
a41ecfa189 Generate image assets. 2019-07-24 15:34:09 -07:00
Dillon Kearns
1fb98e8650 Write image-assets file. 2019-07-24 15:22:04 -07:00
Dillon Kearns
5de1e17fd2 Add binary file for npm. 2019-07-23 21:04:12 -07:00
Dillon Kearns
f910e51de1 Change title. 2019-07-23 20:00:41 -07:00
Dillon Kearns
e5a327e02b Remove log statements. 2019-07-23 19:41:45 -07:00
Dillon Kearns
43cab10850 Address typescript errors. 2019-07-23 19:41:31 -07:00
Dillon Kearns
7f0aeeb234 Use import for package.json file. 2019-07-23 19:39:43 -07:00
Dillon Kearns
9467385906 Drop index as last term. 2019-07-23 17:07:34 -07:00
Dillon Kearns
81cd85997b Add leading /s in prerenderrc generator. 2019-07-23 09:01:31 -07:00
Dillon Kearns
80a7ff4769 Correctly generate prerenderrc paths. 2019-07-23 08:57:24 -07:00
Dillon Kearns
f0b98c8d63 Change file structure. 2019-07-23 08:50:51 -07:00
Dillon Kearns
8baa8d6843 Write contents to file system. 2019-07-23 07:45:34 -07:00
Dillon Kearns
0fe04f3da5 Update generator code to include correct path. 2019-07-23 07:40:35 -07:00
Dillon Kearns
d0b9c19498 Include contents in generated code. 2019-07-23 07:33:22 -07:00
Dillon Kearns
20c67bbbbf Generate for each page. 2019-07-23 07:32:24 -07:00
Dillon Kearns
0c2a71ae97 Add annotations. 2019-07-23 07:28:27 -07:00
Dillon Kearns
63b30587a1 Pass through file contents. 2019-07-23 07:27:53 -07:00
Dillon Kearns
26e9e755f2 Update posts, add glob depdency. 2019-07-23 06:08:00 -07:00
Dillon Kearns
1b8b4c0bd3 Update generation code. 2019-07-22 21:40:53 -07:00
Dillon Kearns
a2a0576a7e Extract function. 2019-07-22 21:36:54 -07:00
Dillon Kearns
cfab8fcc82 Update content generation format. 2019-07-22 21:34:37 -07:00
Dillon Kearns
3d8e6f1dde Add boilerplate for generator CLI. 2019-07-22 21:05:31 -07:00
Dillon Kearns
25337c03e5 Add generator module. 2019-07-22 20:40:38 -07:00