Package eleventy into a single binary or executable #3969
Replies: 7 comments 1 reply
-
|
Note, they are performance considerations here. Packaged node apps may run 1.5x slower than unpackaged apps. This may not be a problem for eleventy as the major bottleneck is file I/O. Correction, the v8 runtime in node v8.x.x+ now does compile-time optimizations that should make performance negligible from unpackaged apps. |
Beta Was this translation helpful? Give feedback.
-
|
cc @mattdsteele this might alleviate the problem you were going through with requiring Node 6 support |
Beta Was this translation helpful? Give feedback.
-
|
I know Hugo provides binaries and they have been successful there https://github.com/gohugoio/hugo/releases I like this idea! |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
This comment has been hidden.
This comment has been hidden.
-
|
Just wanted to add that having a single binary would also make it much easier to include 11ty support in other tools like, wink, wink Site.js alongside other single-binary static site generators like Hugo and Zola. |
Beta Was this translation helpful? Give feedback.
-
|
Adding a link to https://nodejs.org/api/single-executable-applications.html via duplicate #4111 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
One of the common complaints against almost all other static site generators is installation.
This is especially a problem for Jekyll on Windows.
Zeit/pkg creates application executables of node applications for Darwin, Win32, and Unix systems, and will still allow users to add plugins from the NPM ecosystem.
This should be a late roadmap goal, but I believe it will separate Eleventy from the pack by making it accessible to non-technical users.
This could be deployed to OS-level package managers (e.g, homebrew, package-manager, and apt) in order to make installation and update management a breeze, while still leaving the product as a CLI.
Beta Was this translation helpful? Give feedback.
All reactions