-
Notifications
You must be signed in to change notification settings - Fork 28
/
package.json
171 lines (171 loc) · 6.78 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
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
{
"name": "@fabric/core",
"version": "0.1.0-RC1",
"description": "Experimental peer-to-peer framework.",
"main": "types/fabric.js",
"module": "index.js",
"bin": {
"fabric": "scripts/cli.js"
},
"directories": {
"doc": "docs",
"example": "examples",
"test": "tests"
},
"engines": {
"node": "18.19.0"
},
"scripts": {
"audit": "npm audit --json --level critical > reports/AUDIT.json",
"book": "npm run dev",
"build:book": "npm run make:book && npm run tidy",
"build": "npm run make:all",
"chat": "node scripts/cli.js chat",
"clean:all": "rm -rf node_modules package-lock.json",
"clean": "rm -rf node_modules",
"cli": "npm run chat",
"coverage": "c8 npm test",
"deploy": "npm run build && rm -rf stores/wiki && git clone [email protected]:FabricLabs/wiki.git stores/wiki && rm -rf stores/wiki/.git && cp -rf stores/wiki/assets assets/wiki && http-server",
"dev": "npm run make:dev && http-server -p 8000 _book",
"docs": "npm run make:api && npm run make:docs && http-server -p 8000 docs",
"examples": "npm run make:examples && http-server -p 8000 examples",
"keygen": "node scripts/keygen.js",
"lint:fix": "npx semistandard --fix",
"lint": "npx semistandard",
"local": "npm run build && http-server -p 8000 ./assets",
"make:all": "npm run make:service && npm run make:app && npm run make:lib && npm run make:dev # && npm run make:binary",
"make:api": "jsdoc2md --configure jsdoc.json --files types/*.js schemata/*.js services/*.js settings/deprecations.js README.md > API.md",
"make:app": "### ERROR: Not yet implemented. Debug: `examples/app.js` to `assets/app.js`",
"make:binary": "pkg -c package.json -o assets/binaries/fabric scripts/cli.js",
"make:book": "mkdir -p _book && honkit build",
"make:coverage": "npm run coverage && c8 report --reporter html",
"make:dev": "npm run make:examples && npm run make:docs && npm run make:book && cp -rf docs _book/ && cp -rf examples _book/ && glob-run js-beautify --indent-size 2 -r _book/**.html",
"make:docs": "npm run make:api && node_modules/.bin/jsdoc -c jsdoc.json services/**.js types/**.js settings/deprecations.js DEVELOPERS.md -d docs/ && glob-run js-beautify --indent-size 2 -r docs/**.html",
"make:examples": "./node_modules/.bin/docco --output assets examples/*.js && ./node_modules/.bin/glob-run ./node_modules/.bin/js-beautify --indent-size 2 -r assets/examples/*.html",
"make:lib": "### ERROR: Not yet implemented. Debug: `scripts/fabric.js` to `assets/fabric.min.js`",
"make:nix": "node2nix --lock package-lock.json --nodejs-16 --node-env .nix/node-env.nix --output .nix/node-packages.nix",
"make:service": "### ERROR: Not yet implemented. Debug: ` examples/service.js` to `assets/service.js`",
"make:viewer": "### ERROR: Not yet implemented. Debug: `components/circuit-viewer.js` to `assets/viewer.min.js`",
"playnet": "node scripts/playnet.js",
"report:coverage": "npm run make:coverage && c8 report --reporter=text-lcov > reports/coverage.lcov",
"report:credits": "node_modules/.bin/license-checker --json > reports/credits.json",
"report:install": "rm -rf node_modules && echo \"\n\" > package-lock.json && echo \"$ npm i\" > reports/install.log && npm i >> reports/install.log",
"report:legal": "node_modules/.bin/license-checker --json > reports/licenses.json",
"report:todo": "grep --exclude-dir=.git --exclude-dir=_book --exclude-dir=assets --exclude-dir=node_modules --exclude-dir=reports --exclude-dir=coverage --exclude-dir=docs -rEI \"TODO|FIXME\" . > reports/TODO.txt",
"reports": "npm run report:install && npm run make:coverage && npm run report:todo",
"review:coverage": "npm run make:coverage && http-server -p 8000 reports/coverage",
"review:todo": "npm run report:todo && cat reports/TODO.txt && echo '\nOutstanding TODO items (@fabric/core):' && wc -l reports/TODO.txt && echo '\nIssues List: https://github.com/FabricLabs/fabric/issues\nDisclosures: [email protected]\n\n'",
"start": "node scripts/app.js",
"static": "npm run build:scripts && http-server -p 8000 assets",
"test:app": "npm run make:service && npm run make:app && NODE_ENV=test mocha tests/fabric.app.js",
"test:bitcoin": "mocha tests/bitcoin.core.js",
"test:wasm": "emcc contracts/test.c -o assets/wasm.html",
"test": "NODE_ENV=test mocha --recursive tests",
"tidy": "glob-run js-beautify --indent-size 2 -r _book/**.html",
"watch:book": "honkit serve --port 8000 # NOTE: /docs and /examples may not be available."
},
"repository": {
"type": "git",
"url": "git+https://github.com/FabricLabs/fabric.git"
},
"keywords": [
"fabric",
"p2p",
"application",
"architecture",
"serverless",
"web"
],
"author": "Fabric Labs",
"license": "MIT",
"bugs": {
"url": "https://github.com/FabricLabs/fabric/issues"
},
"homepage": "https://github.com/FabricLabs/fabric#readme",
"dependencies": {
"arbitrary": "1.4.10",
"base58check": "2.0.0",
"bech32-buffer": "0.2.0",
"bip-schnorr": "0.6.6",
"bip32": "4.0.0",
"bip39": "3.0.4",
"bip65": "1.0.3",
"bip68": "1.0.4",
"bitcoinjs-lib": "6.0.0",
"blessed": "0.1.81",
"bn.js": "5.2.1",
"buffer": "6.0.3",
"commander": "6.1.0",
"content-type": "1.0.4",
"cross-fetch": "3.1.5",
"dotparser": "0.3.0",
"ecpair": "2.0.1",
"elliptic": "6.5.4",
"events": "3.3.0",
"fast-json-patch": "3.1.1",
"is-my-json-valid": "2.20.6",
"javascript-state-machine": "3.1.0",
"jayson": "4.0.0",
"json-pointer": "0.6.2",
"jsonpointer": "5.0.1",
"level": "7.0.1",
"lodash.merge": "4.6.2",
"macaroon": "3.0.4",
"merkletreejs": "0.3.11",
"minsc": "0.2.0",
"mkdirp": "1.0.4",
"noise-protocol-stream": "1.1.3",
"path-match": "1.2.4",
"pluralize": "8.0.0",
"redis": "3.1.2",
"rimraf": "2.6.2",
"simple-aes": "0.1.1",
"struct": "0.0.12",
"tiny-secp256k1": "2.2.1",
"zeromq": "v6.0.0-beta.19"
},
"devDependencies": {
"c8": "7.11.3",
"chai": "4.0.2",
"cross-env": "5.1.3",
"debug-trace": "2.2.1",
"docco": "0.9.1",
"eccrypto": "1.0.3",
"eslint": "5.16.0",
"glob-run": "0.1.7",
"honkit": "4.0.7",
"http-server": "14.1.1",
"js-beautify": "1.14.3",
"jsdoc": "4.0.2",
"jsdoc-to-markdown": "7.1.1",
"json-to-dot": "1.1.0",
"mocha": "10.2.0"
},
"c8": {
"exclude": [
"assets",
"contracts",
"currencies",
"functions",
"tests",
"data"
],
"report-dir": "./reports/coverage",
"temp-dir": "./reports/c8"
},
"pkg": {
"@targets": [
"node16-linux-arm64",
"node16-linux-x64",
"node16-macos-x64",
"node16-windows-x64"
]
},
"semistandard": {
"ignore": [
"assets/",
"logs/",
"stores/"
]
}
}