Comments (2)
Seems fairly feasible to package it up. While I think it would be unwise to use this dependency due to its outdated dependencies, it can serve as a great reference either way: binary-install example. Someone also went through the trouble of rewriting it without axios: simple-binary-install.
Apparently binaryen npm package already contains wasm-merge and wasm-opt bins, and I can confirm extism-js works just fine with them. So this is just a matter of adding it as a peerDep.
Edit: Once again I've been duped by npm's hoisting behavior. Seems there's a bit more to it, on top of adding it as peerDep, as binaries of transient deps aren't hoisted.
So wasm-merge won't automatically become available for the plugin developer to directly call, unless they add it as a dep themselves. I believe it would be available to the extism-js binary that we'll bundle though, so it should be a non-issue.
from js-pdk.
This would be really awesome to see, it would make the process of using the pdk super streamlined for node devs. Also, it unlocks npx
flows where you could execute a build without even having to install it locally, which is really great for quick-starting.
from js-pdk.
Related Issues (20)
- Plugin compilation warning HOT 2
- Explore runtime linking of JS provider
- Support Host Functions HOT 4
- JS PDK Improvements HOT 2
- Windows Support HOT 2
- JS-PDK polyfill System
- Support Non-WASI plug-ins HOT 1
- Move test files out of root, create build system for them
- Design 1.0 API and release v1.0.0-rc1 HOT 2
- Wasm exception when calling http host fn
- Error: module[extism:host/env] not instantiated HOT 2
- Add support for `Date()` HOT 2
- ESM Support
- Regression bug when exception is thrown HOT 1
- Export mapping relies on the order of declarations HOT 1
- Conform to W3C spec for console.log, error, etc HOT 1
- consider making resulting modules `reactor` modules HOT 2
- Install error on macOS
- Move away from quickjs-wasm-rs to an alternative HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from js-pdk.