Skip to content

Commit 6482c69

Browse files
committed
Fixed up renaming changes
1 parent 0e285aa commit 6482c69

File tree

3 files changed

+11
-10
lines changed

3 files changed

+11
-10
lines changed

examples/markdown-parser/index.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
import { h, render, Component } from "preact";
2-
import asbind from "../../dist/asbind.esm";
2+
import asbind from "../../dist/as-bind.esm";
33

44
// Import our TypeScript equivalent
5-
import { convertMarkdownToHTML } from "../../dist/examples/markdown-parser/assembly/index";
5+
import { convertMarkdownToHTML } from "../../dist/ts/index";
66
import "./index.css";
77

8-
let testMarkdown = `# __asbind__ ~~convert~~ **markdown** to html
8+
let testMarkdown = `# __as-bind__ ~~convert~~ **markdown** to html
99
1010
* Item 1
1111
* Item 2
@@ -15,7 +15,7 @@ let testMarkdown = `# __asbind__ ~~convert~~ **markdown** to html
1515
1616
## And now we are back!
1717
18-
Here is a [link to the source code](https://github.com/torch2424/asbind)
18+
Here is a [link to the source code](https://github.com/torch2424/as-bind)
1919
2020
And an image of the author!
2121
@@ -35,7 +35,7 @@ let testMarkdown = `# __asbind__ ~~convert~~ **markdown** to html
3535
3636
> WebAssembly is cool - Torch2424, 2019
3737
38-
\`npm install asbind\`
38+
\`npm install as-bind\`
3939
4040
\`\`\`
4141
const someCode = "hello world!";
@@ -91,7 +91,7 @@ ${markdown}
9191
9292
------
9393
94-
asbind response:
94+
as-bind response:
9595
9696
${html}
9797
`);

package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,15 @@
2020
"lib:wasm:build:cp": "cpy 'lib/assembly/**/*' dist",
2121
"lib:js:build": "rollup -c --environment LIB,PROD",
2222
"lib:js:build:dev": "rollup -c --environment LIB,DEV",
23-
"lib:test:build": "asc test/assembly/test.ts -b test/assembly/test.wasm --validate --runtime full --debug",
23+
"lib:test:build": "asc lib/assembly/as-bind.ts test/assembly/test.ts -b test/assembly/test.wasm --validate --runtime full --debug",
2424
"lib:deploy": "np",
2525
"md:build": "run-s md:wasm:build md:ts:build md:js:build",
26-
"md:dev": "run-p lib:watch md:wasm:watch md:js:watch serve",
26+
"md:dev": "run-p lib:watch md:wasm:watch md:ts:watch md:js:watch serve",
2727
"md:wasm:watch": "chokidar --initial \"examples/markdown-parser/assembly/**/*\" -c \"run-s md:wasm:build\"",
28+
"md:ts:watch": "chokidar --initial \"examples/markdown-parser/assembly/**/*\" -c \"run-s md:ts:build\"",
2829
"md:js:watch": "chokidar --initial \"examples/markdown-parser/**/*\" -c \"rollup -c --environment MD,DEV\"",
2930
"md:wasm:build": "asc lib/assembly/as-bind.ts examples/markdown-parser/assembly/index.ts -b dist/examples/markdown-parser/index.wasm -t dist/examples/markdown-parser/index.wat --sourceMap dist/examples/markdown-parser/index.wasm.map --validate --runtime full",
30-
"md:ts:build": "tsc --project examples/markdown-parser/assembly/ --outDir dist/ --module \"es2015\"",
31+
"md:ts:build": "tsc --project examples/markdown-parser/assembly/ --outDir dist/ts/ --module \"es2015\"",
3132
"md:js:build": "rollup -c --environment MD,PROD",
3233
"md:deploy": "run-s build md:build md:deploy:gh-pages",
3334
"md:deploy:gh-pages": "gh-pages -d dist/examples/markdown-parser"

test/test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
const fs = require("fs");
22
const assert = require("assert");
3-
const { AsBind } = require("../dist/asbind.cjs");
3+
const { AsBind } = require("../dist/as-bind.cjs");
44

55
const wasmBytes = new Uint8Array(fs.readFileSync("./test/assembly/test.wasm"));
66

0 commit comments

Comments
 (0)