Skip to content

Commit a460efd

Browse files
authored
Change to @anduh/pug-cli to resolve security issue, per pugjs/pug-cli#86 (#175)
1 parent ee108f5 commit a460efd

File tree

3 files changed

+10
-5
lines changed

3 files changed

+10
-5
lines changed

dev-doc.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@ The web app uses
55
- [VueJs](https://vuejs.org/) - For templating and reactive updates in the DOM
66
- [Firebase Hosting](https://firebase.google.com/docs/hosting/) - For hosting the static web app
77
- CLI Tools
8-
- [pug](https://github.com/pugjs/pug-cli) - To convert pug templates to html and merge partials into single [`index.html`](public/index.html) file.
8+
- [pug](https://github.com/Anduh/pug-cli) - To convert pug templates to html and merge partials into single [`index.html`](public/index.html) file.
99
- [sass](https://sass-lang.com/documentation/cli) - To convert sass templates to css and merge partials into single [`style.css`](public/css/style.css) file.
1010
- [js-yaml](https://github.com/nodeca/js-yaml#cli-executable) - To convert yaml templates to json and generate the [`thirdpartyservices.js`](public/js/thirdpartyservices.js) file.
1111
- [firebase-tools](https://github.com/firebase/firebase-tools) - To interact with Firebase as a service from command line.
1212
---
1313
> Install the CLI tools using
1414
>
15-
> ```npm install -g pug-cli sass js-yaml firebase-tools```
15+
> ```npm install -g @anduh/pug-cli sass js-yaml firebase-tools```
1616
1717

1818
If you wish to modify the code for the webapp, then look into [`src`](src) directory.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"dependencies": {
3-
"pug-cli": "^1.0.0-alpha6"
3+
"@anduh/pug-cli": "^1.0.0-alpha8"
44
}
55
}

render.sh

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,13 @@
2121
echo "⚙️ STEP 1: RENDER PUG > HTML"
2222

2323
# Using pug-cli to render from pug to html
24-
# Install pug-cli: npm install -g pug-cli
25-
pug src/index.pug --pretty --out public
24+
# Specifically a fork
25+
# - NPM: https://www.npmjs.com/package/@anduh/pug-cli
26+
# - Github: https://github.com/Anduh/pug-cli
27+
# because the original is not maintained anymore!
28+
# Install pug-cli: npm install -g @anduh/pug-cli
29+
30+
pug3 src/index.pug --pretty --out public
2631

2732
echo "⚙️ STEP 2: RENDER SASS > CSS"
2833
# Using sass-cli to render from sass to css

0 commit comments

Comments
 (0)