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

jade and transformers are deprecated #3181

Closed
bhvreddy opened this issue Jan 26, 2017 · 13 comments
Closed

jade and transformers are deprecated #3181

bhvreddy opened this issue Jan 26, 2017 · 13 comments

Comments

@bhvreddy
Copy link

npm WARN deprecated jade@1.11.0: Jade has been renamed to pug, please install the latest version of pug
instead of jade
npm WARN deprecated transformers@2.1.0: Deprecated, use jstransformer

@dougwilson
Copy link
Contributor

Rewriting the examples that use jade to use something else like pug would be a great first pull request :) !

@notrab
Copy link
Contributor

notrab commented Jan 27, 2017

I forgot to comment here earlier but I created a PR which converts all of the Jade templates to Pug and will resolve the issue you posted 🤘

@dougwilson dougwilson self-assigned this Jan 28, 2017
@dougwilson dougwilson mentioned this issue Jan 29, 2017
22 tasks
@strugee
Copy link

strugee commented Feb 8, 2017

@dougwilson might want to create a "good first pr"/"starter issue"/etc. label for that :)

@dougwilson
Copy link
Contributor

@strugee that is a good suggestion. I just added the "help wanted" label. Do you think that conveys the right ask or think we need a more specific label?

@strugee
Copy link

strugee commented Feb 11, 2017

@dougwilson I think that'll be useful. However it might still be a good idea to create a "starter issue" label or something to help more people get involved in the project :)

@samhh
Copy link

samhh commented Feb 15, 2017

As a newcomer-ish to open source contributions, that's the label I always look for first. In-fact, that's what I was looking for when I found this!

@Moniarchy
Copy link

Looks like there was interest in this. Has this issue been officially claimed/is it being worked on yet? If not, I'd love to take it on.

@dougwilson
Copy link
Contributor

So there are a couple aspects about the issue. The issue itself is basically to somehow get the jade module out of our dev dependencies. The PR #3183 was made to simply completely swap it out to pug, which seemed great at first, but apparently they don't have quite the same Node.js version support we do on the 4.x branch.

I'm thinking that we could probably attack this with a couple iterations:

  1. Examples that use jade which have no particular need to use a template at all can just remove template from them (the search example can just be a static page, with search.jade -> public/index.html and client.js -> public/client.js and then use express.static).
  2. Examples that use a template engine, but which one doesn't matter can maybe use ejs or something else (?) not fully thought out
  3. The "jade" example could either be converted just to pug (which PR [examples] Replace Jade with Pug #3183 already does) or convert it to a different template engine

I proposed ejs as the "different" engine simply because we already have that one in the dev deps. Other thoughts welcome :)

I hope that helps everyone.

@dougwilson
Copy link
Contributor

And that doesn't have to be one giant PR :) Incremental progress PRs are certainly welcome.

@notrab
Copy link
Contributor

notrab commented Feb 26, 2017

I'm happy to work on your suggestions @dougwilson

Removing Jade examples might be a great way to push forward and reintroduce Pug when the dependencies are settled. ejs is good enough to provide an example of how view engines integrate.

@dougwilson
Copy link
Contributor

Ok, jade has almost been removed through PRs from @notrab 👍

@MeLlamoPablo
Copy link

@strugee, I've been lurking repos to see where I could contribute. Node uses the good first contribution tag so that may be cool to use.

@dougwilson
Copy link
Contributor

Yea, the "help wanted" is a default tag from somewhere. I added the "good first contribution" tag now, and even got one done: https://github.com/expressjs/express/issues?utf8=%E2%9C%93&q=is%3Aissue%20label%3A%22good%20first%20contribution%22%20 👍

dougwilson pushed a commit that referenced this issue Mar 23, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment