Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Please provide a cli version #469

Open
gabsoftware opened this issue Oct 30, 2019 · 10 comments
Open

Please provide a cli version #469

gabsoftware opened this issue Oct 30, 2019 · 10 comments

Comments

@gabsoftware
Copy link

EJS would be much nicer if you could provide a cli version.
I know there is already a ejs-cli NPM package, but it is not very configurable (very limited options).
That would be so useful for CI and automated build systems.

@mde
Copy link
Owner

mde commented Oct 30, 2019

This is a great idea. Would you like to take a first stab at building one? :)

@gabsoftware
Copy link
Author

I submitted a pull request to the ejs-cli npm package to add support for ejs options. As for building a node cli from scratch, that would be a first for me, but why not? :)

@gabsoftware
Copy link
Author

I see there's already a pull request to add a cli version: "Add a CLI app #393".
So there's no point in making another one. I will wait until this pull request is merged.

@mde
Copy link
Owner

mde commented Nov 4, 2019

Ah, that's right. That PR was going to require some non-trivial work to integrate, as it was ported from Jade, and referenced the older, outdated version of EJS. I'll blow the dust off it, and take a look.

@bhadresharya
Copy link

Do we have cli version now?

@sunnylqm
Copy link
Contributor

@mde
Copy link
Owner

mde commented Apr 21, 2020

Yes, it's a first stab at it. :) I have a bit more integration work to do before I put it into a release. Thanks for your patience!

@sunnylqm
Copy link
Contributor

@mde Lucky for me while I need a cli right now. Thank you for your effort on this! Will you consider to publish a beta version first?
Btw, I might found a problem here #509

@mde
Copy link
Owner

mde commented Apr 24, 2020

It's new functionality, so there's no need to beta. I've actually dark launched it with version 3.1.2.

@1000i100
Copy link

1000i100 commented Jan 9, 2021

I've just switch from ejs-cli to ejs and i have an issue with path handling :
include('../src/dummyCard.ejs', {count:i}) fail with this build command :
ejs ./demo/index.html.ejs -o generated/demo/index.html
but it work with the old build command :
ejs-cli --base-dir demo/ *.ejs --out generated/demo/

the full project : https://framagit.org/1000i100/1gallery

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants