Commit 72ca879
feat: add @microsoft/fast-build npm package with WASM CLI
- Add wasm-bindgen as a conditional WASM-target dependency to the
microsoft-fast-build Rust crate (zero-dependency for native targets)
- Add src/wasm.rs exposing render() and render_with_templates() via
wasm-bindgen for use in Node.js
- Build the crate to WASM (NodeJS target) with wasm-pack
- Create packages/fast-build/ with:
- package.json (@microsoft/fast-build, no runtime npm dependencies)
- bin/fast.js: CLI supporting `fast build` with arguments:
--templates="<glob>" custom element HTML templates (warns if missing)
--output="output.html" (default: output.html)
--entry="index.html" (default: index.html)
--state="state.json" (default: state.json)
- wasm/: compiled WASM module and JS bindings
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 3c3d3da commit 72ca879
10 files changed
Lines changed: 618 additions & 0 deletions
File tree
- crates/microsoft-fast-build
- src
- packages/fast-build
- bin
- wasm
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
| 13 | + | |
12 | 14 | | |
13 | 15 | | |
14 | 16 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
0 commit comments