-
Notifications
You must be signed in to change notification settings - Fork 3
/
package.json
125 lines (125 loc) · 3.49 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
{
"name": "web3-network-detective",
"version": "1.0.0",
"description": "A simple module for determining if a web3 provider is on the Ethereum mainnet or testnet.",
"scripts": {
"start": "node ./scripts/setuprepository.js",
"npmcheckversion": "node ./scripts/npmcheckversion.js",
"preinstall": "npm run npmcheckversion",
"test": "npm run test:dapple && mocha src/tests/**/*.js -t 100000 -R spec && mocha src/contracts/tests/**/*.js -t 100000 -R spec",
"test:dapple": "cd ./src/ && node ../node_modules/dapple/cmd/main.js test",
"prebuild": "npm run test && rimraf dist && mkdir dist",
"build:dapple": "node ./node_modules/dapple/cmd/main.js build",
"build": "browserify src/index.js -o dist/bundle.js",
"ethdeploy:testnet": "node ./node_modules/ethdeploy/bin/main.js ./scripts/ethdeploy.testnet.js",
"ethdeploy:mainnet": "node ./node_modules/ethdeploy/bin/main.js ./scripts/ethdeploy.mainnet.js",
"prepublish": "npm run build",
"release": "npmpub",
"pretest": "npm run lint",
"lint": "npm run lint:js",
"lint:eslint": "eslint --ignore-path .gitignore",
"lint:js": "npm run lint:eslint -- .",
"lint:staged": "lint-staged",
"coveralls": "cat ./coverage/lcov/lcov.info | coveralls"
},
"authors": [
"Nick Dodson <[email protected]>"
],
"repository": {
"type": "git",
"url": "https://github.com/silentcicero/web3-network-detective.git"
},
"main": "src/index.js",
"files": [
"CONTRIBUTING.md",
"scripts",
"dist",
"src",
"docs",
"!**/__tests__"
],
"keywords": [
"web3",
"network",
"detection",
"detector",
"identifier",
"testnet",
"mainnet"
],
"license": "MIT",
"dependencies": {
"web3": "^0.17.0-beta"
},
"devDependencies": {
"dapple": "^0.7.2",
"browserify": "^13.1.0",
"chai": "^3.5.0",
"chaithereum": "^1.4.0",
"cli-input": "^0.2.0",
"coveralls": "^2.11.9",
"cross-env": "^1.0.7",
"dapple": "^0.7.2",
"es6-arrow-function": "^0.6.6",
"eslint": "^2.13.1",
"eslint-config-airbnb": "^9.0.1",
"eslint-plugin-import": "^1.14.0",
"eslint-plugin-jsx-a11y": "^1.5.5",
"eslint-plugin-react": "^5.2.2",
"esprima": "^2.7.3",
"ethdeploy": "git+https://github.com/SilentCicero/ethdeploy.git",
"ethdeploy-provider-zero-client": "git+https://github.com/SilentCicero/ethdeploy-provider-zero-client.git",
"ethereumjs-tx": "^1.1.2",
"ethereumjs-util": "^4.5.0",
"eventsource-polyfill": "^0.9.6",
"lint-staged": "^1.0.1",
"lodash": "^4.13.1",
"minimist": "^1.2.0",
"mocha": "^2.4.5",
"pre-commit": "^1.1.3",
"replace-in-file": "^2.0.1",
"rimraf": "^2.5.2",
"sinon": "^2.0.0-pre"
},
"lint-staged": {
"lint:eslint": "*.js"
},
"eslintConfig": {
"parser": "esprima",
"extends": "airbnb",
"env": {
"browser": true,
"mocha": true,
"node": true
},
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module"
},
"rules": {
"import/no-unresolved": 2,
"comma-dangle": [
2,
"always-multiline"
],
"indent": [
2,
2,
{
"SwitchCase": 1
}
],
"no-var": 0,
"func-names": 0,
"prefer-arrow-callback": 0,
"arrow-spacing": 0,
"requireArrowFunctions": 0,
"no-console": 1,
"max-len": 0,
"prefer-template": 2,
"no-use-before-define": 0,
"newline-per-chained-call": 0
}
},
"pre-commit": "lint:staged"
}