-
Notifications
You must be signed in to change notification settings - Fork 46
/
package.json
100 lines (100 loc) · 3.26 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
{
"name": "blinktrade",
"version": "1.0.0-rc.1",
"description": "BlinkTrade client for node.js",
"homepage": "https://blinktrade.com/docs",
"main": "lib/blinktrade.js",
"browser": "dist/blinktrade.js",
"module": "es/blinktrade.js",
"directories": {
"test": "test"
},
"bin": {
"blinktrade": "bin/blinktrade"
},
"scripts": {
"lint": "eslint src test",
"flow": "flow",
"check": "yarn lint && yarn test ",
"clean:flow": "find src -type f -name '*.flow' -delete",
"build:es": "cross-env NODE_ENV=es rollup -c -o es/blinktrade.js",
"build:umd": "cross-env NODE_ENV=development rollup -c -o dist/blinktrade.js",
"build:umd:min": "cross-env NODE_ENV=production rollup -c -o dist/blinktrade.min.js",
"build:commonjs": "cross-env NODE_ENV=cjs rollup -c -o lib/blinktrade.js",
"build:cli": "cross-env NODE_ENV=cjs rollup -c -o bin/blinktrade && echo \"#!/usr/bin/env node\\n\\n$(cat bin/blinktrade)\" > bin/blinktrade",
"build:prod": "yarn build:umd:min",
"build:dev": "yarn build:commonjs && yarn build:umd && yarn build:es",
"build:flow:index": "for i in dist lib es; do sed 's/\\./..\\/src/g' src/index.js > $i/blinktrade.js.flow; done",
"build:flow": "for file in $(find ./src -name '*.js' -not -path '*/__mocks__*'); do cp \"$file\" `echo \"$file\" | sed 's/\\/src\\//\\/src\\//g'`.flow; done && yarn build:flow:index",
"build": "yarn build:dev && yarn build:prod && yarn build:cli && yarn build:flow",
"prepare": "yarn build",
"test": "jest",
"test:cov": "jest --coverage",
"test:watch": "jest --watch"
},
"keywords": [
"blinktrade",
"node"
],
"jest": {
"projects": [
{
"displayName": "browser",
"testEnvironment": "jsdom",
"testMatch": [
"<rootDir>/test/browser/*"
]
},
{
"displayName": "node",
"testEnvironment": "jest-environment-node",
"testMatch": [
"<rootDir>/test/node/*"
]
}
]
},
"author": "Cesar Augusto, Rodrigo Souza",
"license": "GPLv3",
"dependencies": {
"commander": "^2.19.0",
"dotenv": "^6.1.0",
"eventemitter2": "^5.0.1",
"fetch-ponyfill": "^6.0.2",
"inquirer": "^6.2.0",
"invariant": "^2.2.4",
"ip": "^1.1.3",
"js-sha256": "^0.9.0",
"macaddress-secure": "^0.2.11",
"nodeify": "^1.0.0",
"ws": "^5.1.1"
},
"devDependencies": {
"@babel/core": "^7.0.0",
"@babel/plugin-external-helpers": "^7.0.0",
"@babel/plugin-proposal-object-rest-spread": "^7.0.0",
"@babel/preset-env": "^7.0.0",
"@babel/preset-flow": "^7.0.0",
"@babel/register": "7.0.0",
"babel-core": "^7.0.0-bridge.0",
"babel-eslint": "^8.0.2",
"babel-jest": "^23.6.0",
"cross-env": "^5.1.1",
"eslint": "^4.11.0",
"eslint-config-airbnb-base": "^12.1.0",
"eslint-plugin-flowtype": "^2.39.1",
"eslint-plugin-import": "^2.8.0",
"flow-bin": "^0.81.0",
"jest": "^23.6.0",
"jest-cli": "^23.6.0",
"nock": "^10.0.1",
"rollup": "^0.66.0",
"rollup-plugin-babel": "^4.0.1",
"rollup-plugin-commonjs": "^9.1.8",
"rollup-plugin-flow": "^1.1.1",
"rollup-plugin-json": "^3.1.0",
"rollup-plugin-node-resolve": "^3.4.0",
"rollup-plugin-shim": "^1.0.0",
"rollup-plugin-uglify": "^6.0.0"
}
}