-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
Switching from jade to pug #21047
Switching from jade to pug #21047
Conversation
💔 Build Failed |
💔 Build Failed |
💔 Build Failed |
Jenkins, test this |
💚 Build Succeeded |
@azasypkin are you familiar enough with the way that internationalization works to determine if this switch from
from pugjs/pug#2305 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would prefer we transition completely to pug, converting any mention of jade
in the i18n stuff, but what you have here looks good too.
@@ -140,8 +140,6 @@ | |||
"http-proxy-agent": "^2.1.0", | |||
"https-proxy-agent": "^2.2.1", | |||
"inert": "4.0.2", | |||
"jade": "1.11.0", | |||
"jade-loader": "0.8.0", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎉 I somehow always forget to remove this loader when I'm messing around with the optimizer
💚 Build Succeeded |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Excellent idea!
Just added one note.
(paths, entry) => { | ||
const resolvedPath = resolve(inputPath, entry); | ||
|
||
if (resolvedPath.endsWith('.html')) { | ||
paths.htmlEntries.push(resolvedPath); | ||
} else if (resolvedPath.endsWith('.jade')) { | ||
paths.jadeEntries.push(resolvedPath); | ||
} else if (resolvedPath.endsWith('.jade') || resolvedPath.endsWith('.pug')) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
since switching to pug
, I would remove jade
at all for avoiding misunderstanding
💔 Build Failed |
retest |
💔 Build Failed |
A different set of flaky tests failed CI this time. Red + Red == Green? |
retest |
💔 Build Failed |
Different flaky tests fail each time. Gonna merge this anyway. |
* Upgrading pug * Switching .jade to .pug and fixing templates * Renaming the I18N usages of jade to pug * No more jade in I18N
jade
has been renamed topug
, so this is essentially a newer version ofjade
.