Skip to content

Commit

Permalink
build(wasm): stricter dockerignore
Browse files Browse the repository at this point in the history
This reduces the context size from a few MB to a few KB.
Minor cleanup in `examples/wasm.ts`.
  • Loading branch information
dnlup committed Apr 2, 2021
1 parent b0773dc commit a18d702
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
12 changes: 6 additions & 6 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
node_modules
.github
bench
test
images
lib
*
!package.json
!package-lock.json
!tsconfig.json
!bin
!src
3 changes: 1 addition & 2 deletions examples/wasm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* A minimal Parser that mimicks a small fraction of the Node.js parser
* API.
* To run:
* - `npm run build`
* - `npm run build-wasm`
* - `npx ts-node examples/wasm.ts`
*/
import { readFileSync } from 'fs';
Expand Down Expand Up @@ -63,7 +63,6 @@ const wasm_on_header_value = (p: number, at: number, length: number) => {

const wasm_on_headers_complete = (p: number) => {
const i = instMap.get(p);
console.log(get_type);
const type = get_type(p);
const versionMajor = get_version_major(p);
const versionMinor = get_version_minor(p);
Expand Down

0 comments on commit a18d702

Please sign in to comment.