forked from Emurgo/message-signing
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
41 lines (41 loc) · 2.75 KB
/
package.json
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
{
"name": "cardano-message-signing",
"version": "1.0.1",
"description": "Message signing standard for Cardano",
"scripts": {
"rust:build-nodejs": "(rimraf ./rust/pkg && cd rust; wasm-pack build --target=nodejs; wasm-pack pack) && npm run js:flowgen",
"rust:build-browser": "(rimraf ./rust/pkg && cd rust; wasm-pack build --target=browser; wasm-pack pack) && npm run js:flowgen",
"rust:build-web": "(rimraf ./rust/pkg && cd rust; wasm-pack build --target=web; wasm-pack pack) && npm run js:flowgen",
"rust:build-asm": "(rimraf ./rust/pkg && cd rust; wasm-pack build --target=browser; wasm-pack pack) && npm run asm:build && npm run js:flowgen",
"rust:publish": "cd rust && cargo publish && cd ../",
"asm:build": "./binaryen/bin/wasm2js ./rust/pkg/cardano_message_signing_bg.wasm --output ./rust/pkg/cardano_message_signing.asm.js && node ./scripts/wasm-to-asm",
"rust:check-warnings": "(cd rust; RUSTFLAGS=\"-D warnings\" cargo +stable build)",
"rust:test": "(cd rust; cargo test)",
"js:flowgen": "flowgen ./rust/pkg/cardano_message_signing.d.ts -o ./rust/pkg/cardano_message_signing.js.flow --add-flow-header",
"js:prepublish": "npm run rust:test && rimraf ./publish && cp -r ./rust/pkg ./publish && cp README.md publish/ && cp LICENSE publish/",
"js:publish-nodejs:prod": "npm run rust:build-nodejs && npm run js:prepublish && node ./scripts/publish-helper -nodejs && cd publish && npm publish --access public",
"js:publish-nodejs:beta": "npm run rust:build-nodejs && npm run js:prepublish && node ./scripts/publish-helper -nodejs && cd publish && npm publish --tag beta --access public",
"js:publish-browser:prod": "npm run rust:build-browser && npm run js:prepublish && node ./scripts/publish-helper -browser && cd publish && npm publish --access public",
"js:publish-browser:beta": "npm run rust:build-browser && npm run js:prepublish && node ./scripts/publish-helper -browser && cd publish && npm publish --tag beta --access public",
"js:publish-asm:prod": "npm run rust:build-asm && npm run js:prepublish && node ./scripts/publish-helper -asmjs && cd publish && npm publish --access public",
"js:publish-asm:beta": "npm run rust:build-asm && npm run js:prepublish && node ./scripts/publish-helper -asmjs && cd publish && npm publish --tag beta --access public",
"postinstall": "git submodule update --init --recursive && cd binaryen; cmake . && make"
},
"husky": {
"hooks": {
"pre-push": "npm run rust:test && npm run rust:build-nodejs"
}
},
"author": "EMURGO",
"license": "MIT",
"repository": {
"type": "git",
"url": "git+https://github.com/Emurgo/message-signing.git"
},
"dependencies": {},
"devDependencies": {
"flowgen": "1.16.1",
"husky": "4.2.5",
"rimraf": "3.0.2"
}
}