Commit Graph

2716 Commits

Author SHA1 Message Date
Dillon Kearns
2c2b2b559e Comment out some logs in dev server output. 2021-07-10 14:27:20 -07:00
Dillon Kearns
335ff5f0b1 Avoid writing CLI app's elm.json to disk if the contents are exactly what would be written. Helps the Elm compiler speed up by around 1 second. 2021-07-10 13:57:31 -07:00
Dillon Kearns
0dbb2138db Run codegen steps in parallel. 2021-07-10 13:56:44 -07:00
Dillon Kearns
283f01b690 Remove Elm code that is obsolete with new batch response architecture. 2021-07-10 13:55:42 -07:00
Dillon Kearns
2a23815a3f Handle glob with response batching. 2021-07-10 08:33:22 -07:00
Dillon Kearns
b7160fef3f Use response batching for HTTP requests. 2021-07-10 08:23:56 -07:00
Dillon Kearns
86383a89ae Add prettier config. 2021-07-10 07:53:14 -07:00
Dillon Kearns
5df5c654dd Retain in-memory cache for builds only. 2021-07-09 13:28:22 -07:00
Dillon Kearns
036271288a Try preserving cache to see how it performs on netlify builds. 2021-07-09 13:11:18 -07:00
Dillon Kearns
550f514e8c Remove some logs. 2021-07-09 13:10:58 -07:00
Dillon Kearns
97189c9689 Revert "Remove StaticHttpCache since batched read change is faster than using cache."
This reverts commit e12c5efd29.
2021-07-09 13:10:22 -07:00
Dillon Kearns
e12c5efd29 Remove StaticHttpCache since batched read change is faster than using cache. 2021-07-09 11:19:54 -07:00
Dillon Kearns
ac2891c297 Batch file reads. 2021-07-09 11:04:41 -07:00
Dillon Kearns
08ca61d79b Try first step towards a batch DataSource response optimization experiment. 2021-07-08 15:10:07 -07:00
Dillon Kearns
ac06b3903d Add link for reference. 2021-07-08 13:23:11 -07:00
Dillon Kearns
19562d8937 Merge branch 'static-files' into worker-threads 2021-07-08 13:19:21 -07:00
Dillon Kearns
0764a1a714 Hot reload CSS changes. 2021-07-08 11:59:40 -07:00
Dillon Kearns
1b77273cd9 Remove unused mode flag. 2021-07-07 21:28:58 -07:00
Dillon Kearns
5bcee08984 Add annotation. 2021-07-07 21:21:57 -07:00
Dillon Kearns
091210023e Remove unused code. 2021-07-07 21:15:54 -07:00
Dillon Kearns
32b9b8e94a Remove comment. 2021-07-07 21:13:24 -07:00
Dillon Kearns
ffb9484332 Full build functionality is obsolete now as workers run single-page mode renders. Remove some unused paths. 2021-07-07 21:13:17 -07:00
Dillon Kearns
30d92da3f7 Handle promise rejection for dev server errors. 2021-07-07 14:02:16 -07:00
Dillon Kearns
8d58b8464f Remove some logging statements. 2021-07-07 12:26:50 -07:00
Dillon Kearns
5a82bb9bd0 Handle errors in worker-based build command. 2021-07-07 12:06:55 -07:00
Dillon Kearns
c903bfff68 Formatting. 2021-07-07 12:05:58 -07:00
Dillon Kearns
075e1e641a Remove redundant log. 2021-07-07 12:05:42 -07:00
Dillon Kearns
6084b7d895 Generate static API routes in worker thread build. 2021-07-07 10:24:01 -07:00
Dillon Kearns
3e61a143a6 Don't send watch message with empty set. 2021-07-07 09:59:33 -07:00
Dillon Kearns
41dadfe804 Remove obsolete cache code in main dev server thread. 2021-07-07 09:59:24 -07:00
Dillon Kearns
e56f13d3eb In build mode, don't clear Elm require cache. 2021-07-07 09:25:52 -07:00
Dillon Kearns
457aee7067 Don't send watch messages from build command. 2021-07-07 09:14:04 -07:00
Dillon Kearns
948e3ebbc7 Update dependencies. 2021-07-07 09:02:40 -07:00
Dillon Kearns
b38815170f Remove xhr2 dependency. 2021-07-07 08:56:58 -07:00
Dillon Kearns
d22a663a90 Re-require Elm lazily on each worker render, and add file watchers from workers. 2021-07-07 08:41:14 -07:00
Dillon Kearns
c3b7391ca6 Use custom thread pool for dev server in preparation for custom messages (which aren't supported by the previous npm package). 2021-07-06 16:34:29 -07:00
Dillon Kearns
c734630a2b Use custom worker thread pool in preparation for custom message passing (npm package didn't support custom messages, only completion messages). 2021-07-06 15:24:44 -07:00
Dillon Kearns
2567b6b9b2 Delete comment. 2021-07-06 10:46:52 -07:00
Dillon Kearns
4b072c2491 Delete unused. 2021-07-06 10:45:19 -07:00
Dillon Kearns
1b02442bc9 Share environment variables in worker pools to ensure PATH is persisted and secrets are available. 2021-07-06 07:50:52 -07:00
Dillon Kearns
ac3c3369e5 Use undici to perform HTTP requests with file-system cache. 2021-07-06 06:26:14 -07:00
Dillon Kearns
2c1e47e675 Fix type signatures in docs. 2021-07-05 19:35:47 -07:00
Dillon Kearns
0fe8147b13 Use worker threads for dev server. 2021-07-04 20:14:34 -07:00
Dillon Kearns
35608ebe63 Use app.die() in worker threads to reduce memory, and restore use in dev server. 2021-07-02 16:05:16 -07:00
Dillon Kearns
9dfdf33708 Use writeFileSync in worker threads. 2021-07-02 16:04:57 -07:00
Dillon Kearns
1fd5133ba9 Base number of worker threads on number of CPUs. 2021-07-02 16:04:43 -07:00
Dillon Kearns
87ca9a72f5 Add method to http error messages. 2021-07-02 15:15:55 -07:00
Dillon Kearns
a94ee06c35 Run build with worker threads. 2021-07-02 15:15:41 -07:00
Dillon Kearns
4c5ad36976 Add more output to HTTP DataSource failure. 2021-06-28 08:01:42 -07:00
Dillon Kearns
03996ef2ad Fix typos. 2021-06-26 09:03:04 -07:00