mirror of
https://github.com/tiffany352/rink-rs
synced 2024-11-10 05:34:14 +00:00
d642411f31
Bumps [pug](https://github.com/pugjs/pug) from 3.0.2 to 3.0.3. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/pugjs/pug/releases">pug's releases</a>.</em></p> <blockquote> <h2>pug-code-gen@3.0.3</h2> <h2>Bug Fixes</h2> <ul> <li>Validate <code>templateName</code> and <code>globals</code> are valid JavaScript identifiers to prevent possible remote code execution if un-trusted user input is passed to the compilation options (<a href="https://redirect.github.com/pugjs/pug/issues/3438">#3438</a>)</li> </ul> <h2>pug@3.0.3</h2> <h2>Bug Fixes</h2> <ul> <li> <p>Update pug-code-gen with the following fix: (<a href="https://redirect.github.com/pugjs/pug/issues/3438">#3438</a>)</p> <p>Validate <code>templateName</code> and <code>globals</code> are valid JavaScript identifiers to prevent possible remote code execution if un-trusted user input is passed to the compilation options</p> </li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href=" |
||
---|---|---|
.. | ||
currency | ||
plugins | ||
repl | ||
scripts | ||
site | ||
templates | ||
package-lock.json | ||
package.json | ||
README.adoc | ||
soupault.toml |
= Rink web This is the sources required to build https://rinkcalc.app, which is a statically generated site. == Requirements * `wasm-pack` (`pacman -S wasm-pack` or cargo install) * `cmark-gfm` (`pacman -S cmark-gfm`) * https://soupault.app/install/[soupault] * Node.JS (21.7.1 known to work) == Instructions 1. Run `wasm-pack build --target web rink-js`. This only needs to be re-run after making changes to rust code. 2. Enter `web/repl/` and run `npm install` 3. Enter `web/` and run `npm install` 4. Enter `web/` and run `soupault --verbose` 5. Enter `web/currency/` and run `npm install` 6. Enter `web/build/` and run `node ../currency/update-currency.js` 7. To view, enter `web/build/` and run `python -m http.server -b localhost 3000 --protocol HTTP/1.1` Github releases are only fetched once. To re-fetch them, delete `web/build/releases.json` and re-run soupault. == Deployment Copy the contents of `web/build/` to your server. Copy `web/currency/`, including its `node_modules`, to your server. Setup a cron job to run the currency script to update the `data/` directory, about once an hour is good.