Set up webpack library backed by zcash-client-backend-wasm

This commit is contained in:
Jack Grigg
2019-06-11 17:35:21 +01:00
parent f53de917c5
commit 110a611ffe
4 changed files with 3560 additions and 2 deletions
+3538 -1
View File
File diff suppressed because it is too large Load Diff
+7 -1
View File
@@ -10,5 +10,11 @@
"zcash" "zcash"
], ],
"author": "Jack Grigg <jack@z.cash>", "author": "Jack Grigg <jack@z.cash>",
"license": "MIT" "license": "MIT",
"devDependencies": {
"webpack": "4.33.0"
},
"dependencies": {
"zcash-client-backend-wasm": "file:../zcash-client-backend-wasm/pkg"
}
} }
+5
View File
@@ -0,0 +1,5 @@
import * as wasm from 'zcash-client-backend-wasm'
export function greet () {
wasm.greet()
}
+10
View File
@@ -0,0 +1,10 @@
var path = require('path')
module.exports = {
entry: './src/index.js',
output: {
path: path.resolve(__dirname, 'dist'),
filename: 'zcash-client-sdk.js',
library: 'zcashClientSdk'
}
}