Skip to content

Commit

Permalink
Change to @anduh/pug-cli to resolve security issue, per pugjs/pug-cli#86
Browse files Browse the repository at this point in the history
  • Loading branch information
nisrulz committed Jun 8, 2023
1 parent ee108f5 commit 56864a8
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
4 changes: 2 additions & 2 deletions dev-doc.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ The web app uses
- [VueJs](https://vuejs.org/) - For templating and reactive updates in the DOM
- [Firebase Hosting](https://firebase.google.com/docs/hosting/) - For hosting the static web app
- CLI Tools
- [pug](https://github.com/pugjs/pug-cli) - To convert pug templates to html and merge partials into single [`index.html`](public/index.html) file.
- [pug](https://github.com/Anduh/pug-cli) - To convert pug templates to html and merge partials into single [`index.html`](public/index.html) file.
- [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.
- [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.
- [firebase-tools](https://github.com/firebase/firebase-tools) - To interact with Firebase as a service from command line.
---
> Install the CLI tools using
>
> ```npm install -g pug-cli sass js-yaml firebase-tools```
> ```npm install -g @anduh/pug-cli sass js-yaml firebase-tools```

If you wish to modify the code for the webapp, then look into [`src`](src) directory.
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"dependencies": {
"pug-cli": "^1.0.0-alpha6"
"@anduh/pug-cli": "^1.0.0-alpha8"
}
}
9 changes: 7 additions & 2 deletions render.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,13 @@
echo "⚙️ STEP 1: RENDER PUG > HTML"

# Using pug-cli to render from pug to html
# Install pug-cli: npm install -g pug-cli
pug src/index.pug --pretty --out public
# Specifically a fork
# - NPM: https://www.npmjs.com/package/@anduh/pug-cli
# - Github: https://github.com/Anduh/pug-cli
# because the original is not maintained anymore!
# Install pug-cli: npm install -g @anduh/pug-cli

pug3 src/index.pug --pretty --out public

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

0 comments on commit 56864a8

Please sign in to comment.