<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>numbat-wasm/README.md - fork/numbat @ v1.8.0</title>
<meta name="description" content="numbat-wasm/README.md in fork/numbat at v1.8.0.">
<meta property="og:title" content="numbat-wasm/README.md - fork/numbat @ v1.8.0">
<meta property="og:description" content="numbat-wasm/README.md in fork/numbat at v1.8.0.">
<meta property="og:type" content="website">
<meta property="og:site_name" content="git.julia.blue">
<link rel="stylesheet" href="/css/style.css?v=62">
<script type="module" src="/js/main.js?v=62"></script>
</head>
<body>
<main data-ref="v1.8.0" data-tip="c04afb354608ef22e475d8d6fec955ca6e823d97">
<noscript>
  <div class="callout">
    <p>
      hey! this is a static git repo viewer. commit diffs, file history,
      older commits and other revisions won't load without javascript.
    </p>
    <p>
      you are still able to view source files on branch/tag tips,
      but the experience is degraded.
    </p>
  </div>
</noscript>
<header class="repo"><div>
<h1>fork/numbat</h1>
</div>
<pre class="clone">git clone https://git.julia.blue/fork/numbat</pre>
</header>
<p class="snapshot-commit"><span class="commit-author">David Peter</span><span class="commit-message" data-commit="6622b17457820c0440271f43d9dfebc220ec3bf9">Update wasm deployment</span><span class="snapshot-sha sha" data-commit="6622b17457820c0440271f43d9dfebc220ec3bf9">6622b17</span><time datetime="2023-09-22T09:09:42+02:00" title="2023-09-22 09:09:42 +0200">2023-09-22</time></p>
<header class="topbar"><details class="switcher"><summary>v1.8.0</summary><div class="menu"><strong>branches</strong><a href="/fork/numbat/ref/master/">master</a><strong>tags</strong><a href="/fork/numbat/ref/v1.6.0/">v1.6.0</a><a href="/fork/numbat/ref/v1.6.1/">v1.6.1</a><a href="/fork/numbat/ref/v1.6.2/">v1.6.2</a><a href="/fork/numbat/ref/v1.6.3/">v1.6.3</a><a href="/fork/numbat/ref/v1.7.0/">v1.7.0</a><a class="current" href="/fork/numbat/ref/v1.8.0/">v1.8.0</a><a class="all" href="/fork/numbat/refs">all refs →</a></div></details><nav class="crumbs"><a href="/fork/numbat/">numbat</a> / <a href="/fork/numbat/ref/v1.8.0/tree/numbat-wasm/">numbat-wasm</a> / <span class="cur">README.md</span></nav>
<span class="view-stats"><span>280 B</span><span>21 lines</span></span><span class="actions"><a class="raw" href="/fork/numbat/raw/e34a049ced9d378b649bd4d02cc7377111105a36/numbat-wasm/README.md">raw</a></span></header>
<div class="markdown-view"><input type="radio" name="markdown-view" id="markdown-rendered" checked><label for="markdown-rendered">rendered</label><input type="radio" name="markdown-view" id="markdown-code"><label for="markdown-code">code</label><section class="readme rendered"><p>Build:</p>
<pre class="language-bash"><a-f>wasm-pack</a-f> build</pre>
<p>Test:</p>
<pre class="language-bash"><a-f>wasm-pack</a-f> test <a-co>--headless</a-co> <a-co>--firefox</a-co></pre>
<p>Serve:</p>
<pre class="language-bash"><a-k>export</a-k> <a-pr>NODE_OPTIONS</a-pr>=--openssl-legacy-provider <a-c># workaround for https://github.com/webpack/webpack/issues/14532</a-c>
<a-f>cd</a-f> www
<a-f>npm</a-f> run start</pre>
<p>Deploy:</p>
<pre class="language-bash"><a-f>bash</a-f> deploy.sh</pre>
</section><div class="code-panel"><pre class="code src language-markdown"><span class="code-line"><a class="ln" id="L1" href="#L1">1</a><span class="code-text">Build:</span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L2" href="#L2">2</a><span class="code-text"><a-p>```</a-p><a-tl> bash</a-tl></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L3" href="#L3">3</a><span class="code-text"><a-p>wasm-pack build</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L4" href="#L4">4</a><span class="code-text"><a-p>```</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L5" href="#L5">5</a><span class="code-text"></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L6" href="#L6">6</a><span class="code-text"><a-p>Test:</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L7" href="#L7">7</a><span class="code-text"><a-p>```</a-p><a-tl> bash</a-tl></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L8" href="#L8">8</a><span class="code-text"><a-p>wasm-pack test </a-p><a-co>--headless</a-co><a-p> </a-p><a-co>--firefox</a-co></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L9" href="#L9">9</a><span class="code-text"><a-p>```</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L10" href="#L10">10</a><span class="code-text"></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L11" href="#L11">11</a><span class="code-text"><a-p>Serve:</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L12" href="#L12">12</a><span class="code-text"><a-p>```</a-p><a-tl>bash</a-tl></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L13" href="#L13">13</a><span class="code-text"><a-p>export </a-p><a-pr>NODE_OPTIONS</a-pr><a-p>=--openssl-legacy-provider </a-p><a-c># workaround for https://github.com/webpack/webpack/issues/14532</a-c></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L14" href="#L14">14</a><span class="code-text"><a-p>cd www</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L15" href="#L15">15</a><span class="code-text"><a-p>npm run start</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L16" href="#L16">16</a><span class="code-text"><a-p>```</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L17" href="#L17">17</a><span class="code-text"></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L18" href="#L18">18</a><span class="code-text"><a-p>Deploy:</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L19" href="#L19">19</a><span class="code-text"><a-p>```</a-p><a-tl>bash</a-tl></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L20" href="#L20">20</a><span class="code-text"><a-p>bash deploy.sh</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L21" href="#L21">21</a><span class="code-text"><a-p>```</a-p></span></span></pre></div></div>
</main>
</body>
</html>
