-
Notifications
You must be signed in to change notification settings - Fork 2
/
package.json
126 lines (126 loc) · 3.84 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
{
"name": "json-fetch",
"version": "9.0.3",
"description": "A wrapper around ES6 fetch to simplify interacting with JSON APIs.",
"author": "Good Eggs <open-source@goodeggs.com>",
"contributors": [
"dannynelson <danny@goodeggs.com>",
"Arlo Armstrong <arlo@goodeggs.com>"
],
"license": "MIT",
"keywords": [
"fetch",
"api",
"json",
"es6"
],
"main": "lib/index.js",
"repository": {
"type": "git",
"url": "git://github.com/goodeggs/json-fetch.git"
},
"publishConfig": {
"registry": "https://registry.npmjs.org/",
"access": "public"
},
"homepage": "https://github.com/goodeggs/json-fetch",
"bugs": "https://github.com/goodeggs/json-fetch/issues",
"engines": {
"node": ">=12"
},
"dependencies": {
"@babel/runtime": "^7.15.3",
"isomorphic-fetch": "2.2.1",
"lodash.pick": "^4.4.0",
"promise-retry": "1.1.1"
},
"devDependencies": {
"@babel/cli": "^7.14.8",
"@babel/core": "^7.15.0",
"@babel/plugin-transform-runtime": "^7.15.0",
"@babel/preset-env": "^7.15.0",
"@babel/preset-flow": "^7.14.5",
"@babel/register": "^7.15.3",
"babel-eslint": "^10.1.0",
"eslint": "^5.16.0",
"eslint-config-prettier": "^7.2.0",
"eslint-plugin-goodeggs": "7.4.2",
"eslint-plugin-prettier": "^3.4.1",
"flow-bin": "^0.97.0",
"goodeggs-test-helpers": "^8.3.2",
"husky": "^7.0.2",
"leasot": "^7.5.0",
"lint-staged": "^8.2.1",
"mocha": "6.2.3",
"nock": "^10.0.6",
"nyc": "^15.1.0",
"prettier": "^1.19.1"
},
"scripts": {
"build": "yarn run build:clean && yarn run build:transpile",
"build:clean": "rm -rf lib",
"build:transpile": "babel src --out-dir lib --copy-files",
"lint": "yarn run lint:src && yarn run lint:prettier",
"lint:src": "yarn run lint:src:glob '**/*.{js,jsx,ts,tsx}'",
"lint:src:glob": "eslint --ignore-path .eslintignore",
"lint:prettier": "yarn run lint:prettier:glob '**/*.{yml,json,md,gql,graphql,flow}'",
"lint:prettier:glob": "prettier --ignore-path .eslintignore --list-different",
"fmt": "yarn run fmt:src && yarn run fmt:prettier",
"fmt:src": "yarn run fmt:src:glob '**/*.{js,jsx,ts,tsx}'",
"fmt:src:glob": "eslint --ignore-path .eslintignore --fix",
"fmt:prettier": "yarn run fmt:prettier:glob '**/*.{yml,json,md,gql,graphql,flow}'",
"fmt:prettier:glob": "prettier --ignore-path .eslintignore --write",
"prepublishOnly": "yarn run build",
"postversion": "git push --follow-tags",
"tdd": "yarn run test:mocha --watch",
"test": "yarn run todos && yarn run lint && yarn run typecheck && yarn run test:mocha:coverage",
"test:mocha": "yarn run test:mocha:glob 'src/**/test.js'",
"test:mocha:coverage": "yarn run nyc --report-dir=.coverage --temp-directory=.coverage/.nyc_output --reporter=lcov --reporter=text-summary yarn run test:mocha",
"test:mocha:glob": "NODE_ENV=test yarn run mocha --opts mocha.opts",
"todos": "yarn run todos:glob '**/*.{js,jsx,ts,tsx}'",
"todos:glob": "leasot --exit-nicely --tags '\\$FlowFixMe' --ignore='node_modules/**','lib/**','flow-typed/**'",
"typecheck": "flow"
},
"babel": {
"presets": [
"@babel/preset-env",
"@babel/preset-flow"
],
"plugins": [
"@babel/plugin-transform-runtime"
]
},
"eslintConfig": {
"parser": "babel-eslint",
"plugins": [
"goodeggs"
],
"extends": [
"plugin:goodeggs/goodeggs",
"prettier",
"plugin:prettier/recommended"
],
"env": {
"browser": true,
"node": true
},
"rules": {
"goodeggs/lodash-import-scope": "off"
}
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"*.{js,jsx,ts,tsx}": [
"yarn run fmt:src:glob",
"git add"
],
"*.{yml,json,md,gql,graphql,flow}": [
"yarn run fmt:prettier:glob",
"git add"
]
}
}