forked from airgap-it/beacon-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
122 lines (122 loc) · 4.73 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
{
"name": "@airgap/beacon-sdk",
"version": "2.3.10",
"description": "The beacon-sdk allows you to easily connect DApps with Wallets through P2P communication or a chrome extension.",
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
"unpkg": "dist/walletbeacon.min.js",
"types": "dist/cjs/index.d.ts",
"keywords": [
"airgap",
"beacon",
"crypto",
"blockchain",
"tezos",
"decentralized",
"dapp"
],
"license": "MIT",
"homepage": "https://www.airgap.it",
"repository": {
"type": "git",
"url": "https://github.com/airgap-it/beacon-sdk"
},
"scripts": {
"prebuild": "ts-node --project tsconfig-cjs.json scripts/generate-wallet-list.ts",
"build": "npm run pretest && tsc -p tsconfig.json && tsc -p ./tsconfig-cjs.json && npm run browserify && npm run posttest && cp ./dist/walletbeacon.min.js ./examples/walletbeacon.min.js",
"browserify": "npm run pretest && tsc -p ./tsconfig-browserify.json && npm run posttest && browserify ./dist/browserify/index.js -s beacon | uglifyjs > ./dist/walletbeacon.min.js && rm -rf dist/browserify",
"prettier": "prettier --write 'src/**/*' 'docs/**/*.md' 'example-dapp.html' 'example-wallet.html'",
"lint": "eslint 'src/**/*.ts'",
"lint:fix": "eslint 'src/**/*.ts' --fix",
"lint-ci": "eslint 'src/**/*.ts' -f json -o lintReport.json || true",
"pretest": "ts-node --project tsconfig.test.json scripts/change-files-before-tests.ts",
"test": "npm run check-version && TS_NODE_PROJECT='tsconfig.test.json' nyc mocha --require ts-node/register --require source-map-support/register --full-trace --timeout 40000 ./test/**/**.spec.ts",
"posttest": " ts-node --project tsconfig.test.json scripts/change-files-after-tests.ts",
"test-ci": "nyc --reporter=lcov npm test",
"e2e": "ts-node --project tsconfig-node.json e2e/permission-request.ts",
"e2e-prepare-ffmpeg": "ts-node --project tsconfig-node.json e2e/generate-ffmpeg-file.ts",
"e2e-create-videos": "ffmpeg -f concat -i e2e/output/dapp/input.txt e2e/output/dapp/output.webm && ffmpeg -f concat -i e2e/output/wallet/input.txt e2e/output/wallet/output.webm",
"e2e-combine-videos": "ffmpeg -i e2e/output/dapp/output.webm -i e2e/output/wallet/output.webm -filter_complex '[0]pad=iw+5:color=black[left];[left][1]hstack=inputs=2' e2e/output/combined.webm",
"e2e:all": "npm run e2e && npm run e2e-prepare-ffmpeg && npm run e2e-create-videos && npm run e2e-combine-videos",
"audit-ci": "npm audit --json > audit.json && node scripts/dependency-scanning.js",
"sonar-scanner": "sonar-scanner",
"prepare": "npm run build",
"check-version": "ts-node --project tsconfig-cjs.json scripts/check-sdk-version.ts",
"typedoc": "typedoc src/index.ts --includeVersion --internal-aliases publicapi --external-aliases internalapi --logLevel Verbose --listInvalidSymbolLinks && ts-node --project tsconfig-cjs.json scripts/process-docs.ts"
},
"author": "Papers GmbH <[email protected]> (https://papers.ch)",
"dependencies": {
"@types/chrome": "0.0.115",
"@types/libsodium-wrappers": "0.7.7",
"axios": "0.21.1",
"bignumber.js": "9.0.0",
"bs58check": "2.1.2",
"libsodium-wrappers": "0.7.8",
"qrcode-generator": "1.4.4"
},
"devDependencies": {
"@types/chai-as-promised": "7.1.2",
"@types/mocha": "7.0.2",
"@types/node": "14.0.1",
"@types/sinon": "9.0.5",
"@typescript-eslint/eslint-plugin": "2.33.0",
"@typescript-eslint/eslint-plugin-tslint": "2.33.0",
"@typescript-eslint/parser": "2.33.0",
"axios-mock-adapter": "1.18.2",
"browserify": "16.5.1",
"chai": "4.2.0",
"chai-as-promised": "7.1.1",
"eslint": "7.0.0",
"eslint-config-prettier": "6.11.0",
"eslint-plugin-import": "2.20.2",
"eslint-plugin-no-null": "1.0.2",
"eslint-plugin-prefer-arrow": "1.2.1",
"husky": "4.2.5",
"jsdom": "16.4.0",
"jsdom-global": "3.0.2",
"mocha": "7.1.2",
"nyc": "15.0.1",
"prettier": "2.0.5",
"pretty-quick": "2.0.1",
"puppeteer": "^10.0.0",
"puppeteer-mass-screenshots": "^1.0.15",
"resize-img": "2.0.0",
"sinon": "9.0.3",
"sonar-scanner": "3.1.0",
"static-server": "^2.2.1",
"ts-node": "8.10.1",
"tslint": "6.1.2",
"typedoc": "^0.20.30",
"typedoc-plugin-internal-external": "^2.2.0",
"typescript": "3.9.2",
"uglify-js": "3.9.4"
},
"files": [
"/dist"
],
"nyc": {
"include": [
"src/**/*.ts"
],
"exclude": [
"test/**/*.spec.ts"
],
"extension": [
".ts"
],
"require": [
"ts-node/register"
],
"reporter": [
"text",
"text-summary"
],
"sourceMap": true,
"instrument": true
},
"husky": {
"hooks": {
"pre-commit": "npm run check-version && pretty-quick --staged"
}
}
}