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

Add an option to silent CLI #1905

Closed
humbertocruz opened this issue Mar 25, 2015 · 6 comments
Closed

Add an option to silent CLI #1905

humbertocruz opened this issue Mar 25, 2015 · 6 comments

Comments

@humbertocruz
Copy link

It's possible to do something like this ?

jade -w -E ctp Views/* -E html webroot/*

And jade generate ctp and html files for each directory ?

thanks

@TimothyGu
Copy link
Member

No I don't think so. You can use two commands though at the same time.

@humbertocruz
Copy link
Author

Yes, but the problem is the -w option.

@TimothyGu
Copy link
Member

Wouldn't two -w work?

EDIT: Wouldn't two commands both watching the files work?

@humbertocruz
Copy link
Author

Well, I tried here with a shell script and ending each command with &. It's working fine. Maybe a -s --silent option should be fine to avoid the "rendered" messages. Thanks

@TimothyGu TimothyGu changed the title Save with more than one extension. Add an option to silent CLI Mar 25, 2015
@pavel
Copy link
Contributor

pavel commented May 19, 2015

@humbertocruz Let's assume you have this script in your package.json:

{
  "scripts": {
    "build-html": "jade -w -E html webroot/*"
  }
}

For linux you can use: npm run build-html > /dev/null and you'll get all the stdout supressed.
For windows you can use: npm run build-html >nul.

@ForbesLindesay
Copy link
Member

Moving to jade-cli project

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

4 participants