You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Reacted by Volodymyr Agafonkin, lyonbot, Raman Mastyka, Matthew McEachen, Nick Stanish, Ryan Burnette, Andrii Fedyk, Lei, matt penrice, Abdelrahman and 14 more
One of the major selling points of EJS IMO was no module dependencies, and would much rather have the CLI added a separate npm package then add these dependencies for a CLI we are not using
Reacted by Kirill Groshkov, Matthew McEachen, Ryan Burnette, matt penrice, Tyler Krys, Chawye Hsu, dev-trilobyte, David Fong, allnulled, tobidelius and 3 more
Yes, Jake is currently a hard dependency of the new CLI. The desire for a separate CLI package is noted. I'll definitely consider it.
Reacted by Kirill Groshkov, Ryan Burnette, Matthew McEachen, matt penrice, Santeri Hiltunen, Tyler Krys, Rouven Weßling, dev-trilobyte, David Fong, sseide and 4 more
I'd also like to encourage cutting out the CLI into a separate package (ejs-cli). Having no dependencies was one of the biggest advantages of this library.
Reacted by allnulled, Kirill Groshkov, Tyler Krys, Rouven Weßling, dev-trilobyte, David Fong, sseide, jersey, Matthew McEachen and Gaël Girodon
Yes, it would be very nice to not include jake + (filelist minimatch chalk async) + (...inner).
If anyone wants ejs as CLI, just npm install ejs-cli, or something. In favour, this library is key in the ecosystem.
Is the only reason that Jake is included in cli.js for argument parsing? It shouldn't be too difficult to write an inline parser for such a simple program. I hardly think that yet another NPM package is the best solution here.
I use ejs because it is the most intuitive solution for js templating I have found, and coding templates with it is really easy. I proposed already to separate ejs-cli from ejs, if ejs could be loaded as a single UMD script file from the web, it would also be incredibly powerful to be used in the web, at the level of jQuery even. But anyway, this is an author's decision.
UPDATE: well. They are doing it already. And I guess they are not the only.
Activity
ben-tbotlabs commentedon Apr 24, 2020
I think it is because of the CLI that was added on Apr 19, 2020, so it is required to be a full dependency.
But to be clear in order to add this dependency you have added the following dependency tree
One of the major selling points of EJS IMO was no module dependencies, and would much rather have the CLI added a separate npm package then add these dependencies for a CLI we are not using
kirillgroshkov commentedon Apr 24, 2020
I still think it was added by mistake
mde commentedon Apr 24, 2020
Yes, Jake is currently a hard dependency of the new CLI. The desire for a separate CLI package is noted. I'll definitely consider it.
RyanZim commentedon Apr 24, 2020
I'll throw in my vote for a separate CLI
ryanburnette commentedon Apr 29, 2020
@mde I'll vote for anything that reduces dependencies.
If you aren't using the cli and don't want the extra dependencies, just fork and remove Jake from the package.json file like I did. https://github.com/ryanburnette/ejs
mourner commentedon May 10, 2020
I'd also like to encourage cutting out the CLI into a separate package (
ejs-cli). Having no dependencies was one of the biggest advantages of this library.allnulled commentedon May 19, 2020
Yes, it would be very nice to not include jake + (filelist minimatch chalk async) + (...inner).
If anyone wants ejs as CLI, just
npm install ejs-cli, or something. In favour, this library is key in the ecosystem.zce commentedon Jul 22, 2020
I think it may be that jake needs a free advertising space, Just kidding :)
sseide commentedon Dec 14, 2021
is there some update on the new ejs cli package to remove jake and all its dependencies from ejs again?
arthanzel commentedon Jan 5, 2022
Is the only reason that Jake is included in
cli.jsfor argument parsing? It shouldn't be too difficult to write an inline parser for such a simple program. I hardly think that yet another NPM package is the best solution here.mde commentedon Jan 9, 2022
I'd be happy to consider a PR that implements this. It was just the fastest solution I had.
arthanzel commentedon Jan 9, 2022
I'd be happy to contribute one
allnulled commentedon Jan 11, 2022
I use ejs because it is the most intuitive solution for js templating I have found, and coding templates with it is really easy. I proposed already to separate ejs-cli from ejs, if ejs could be loaded as a single UMD script file from the web, it would also be incredibly powerful to be used in the web, at the level of jQuery even. But anyway, this is an author's decision.
UPDATE: well. They are doing it already. And I guess they are not the only.
https://unpkg.com/[email protected]/ejs.min.js
Fix mde#510. Remove jake dev dependency and embed arg parser.
mde commentedon Jan 17, 2026
This issue has been closed as outdated.
If you believe this issue is still relevant, please:
jakebe a devDependency? #510)Thank you for your contribution!