mirror of
https://github.com/aljazceru/cdk.git
synced 2025-12-24 08:05:02 +01:00
feat: build for js bindings
This commit is contained in:
12
bindings/cdk-js/.npmignore
Normal file
12
bindings/cdk-js/.npmignore
Normal file
@@ -0,0 +1,12 @@
|
||||
.cargo/
|
||||
target/
|
||||
src/
|
||||
scripts/
|
||||
examples/
|
||||
pkg/package.json
|
||||
pkg/*.md
|
||||
pkg/*.wasm
|
||||
.gitignore
|
||||
Cargo.toml
|
||||
Cargo.lock
|
||||
*.tgz
|
||||
3
bindings/cdk-js/justfile
Normal file
3
bindings/cdk-js/justfile
Normal file
@@ -0,0 +1,3 @@
|
||||
pack:
|
||||
rm -rf ./pkg
|
||||
wasm-pack build --target web
|
||||
42
bindings/cdk-js/package.json
Normal file
42
bindings/cdk-js/package.json
Normal file
@@ -0,0 +1,42 @@
|
||||
{
|
||||
"name": "@cashudevkit/cdk",
|
||||
"version": "0.0.0",
|
||||
"description": "Cashu Dev Kit",
|
||||
"keywords": [
|
||||
"cashu"
|
||||
"rust",
|
||||
"bindings",
|
||||
"javascript"
|
||||
],
|
||||
"license": "MIT",
|
||||
"homepage": "https://github.com/cashubtc/cdk",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/cashubtc/cdk.git"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/cashubtc/cdk/issues"
|
||||
},
|
||||
"author": {
|
||||
"name": "thesimplekid",
|
||||
"email": "tsk@thesimplekid.com",
|
||||
"url": "https://github.com/thesimplekid"
|
||||
},
|
||||
"main": "pkg/cdk_js.js",
|
||||
"types": "pkg/cdk_js.d.ts",
|
||||
"files": [
|
||||
"pkg/cdk_js_bg.wasm.js",
|
||||
"pkg/cdk_js_bg.wasm.d.ts",
|
||||
"pkg/cdk_js.js",
|
||||
"pkg/cdk_js.d.ts"
|
||||
],
|
||||
"devDependencies": {
|
||||
"wasm-pack": "^0.10.2"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">= 10"
|
||||
},
|
||||
"scripts": {
|
||||
"build": "wasm-pack build --target web",
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user