mirror of
https://github.com/Qortal/piratewallet-light-cli.git
synced 2025-01-30 18:42:15 +00:00
Set up webpack library backed by zcash-client-backend-wasm
This commit is contained in:
parent
f53de917c5
commit
110a611ffe
3539
zcash-client-sdk-js/package-lock.json
generated
3539
zcash-client-sdk-js/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -10,5 +10,11 @@
|
||||
"zcash"
|
||||
],
|
||||
"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
zcash-client-sdk-js/src/index.js
Normal file
5
zcash-client-sdk-js/src/index.js
Normal file
@ -0,0 +1,5 @@
|
||||
import * as wasm from 'zcash-client-backend-wasm'
|
||||
|
||||
export function greet () {
|
||||
wasm.greet()
|
||||
}
|
10
zcash-client-sdk-js/webpack.config.js
Normal file
10
zcash-client-sdk-js/webpack.config.js
Normal 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'
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user