This repository has been archived by the owner on Jun 14, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
package.json
67 lines (67 loc) · 1.68 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
{
"name": "mdn-reference-search",
"short_name": "MDN Search",
"version": "1.0.1",
"description": "Search MDN for JS and CSS from the URL bar",
"main": "extension/background.js",
"repository": "[email protected]:clarkbw/mdn-reference-search.git",
"author": "Bryan Clark <[email protected]>",
"license": "MPL-2.0",
"devDependencies": {
"babel-core": "^6.24.0",
"babel-jest": "^23.0.0",
"babel-loader": "^8.0.0",
"babel-preset-env": "^1.2.1",
"husky": "^1.0.0",
"jest": "^22.0.0",
"jest-fetch-mock": "^2.1.2",
"jest-webextension-mock": "^3.0.0",
"lint-staged": "^7.0.0",
"prettier": "^1.0.0",
"webpack": "^4.0.0"
},
"scripts": {
"precommit": "lint-staged",
"prepush": "yarn test",
"build": "webpack && yarn zip",
"build:watch": "webpack --watch",
"test": "jest",
"coverage": "yarn test -- --coverage",
"zip": "(cd extension && zip -r ../extension.zip .)"
},
"lint-staged": {
"src/*.js": [
"prettier --write --single-quote --print-width 80",
"git add"
],
"__tests__/**/*.js": [
"prettier --write --single-quote --print-width 80",
"git add"
],
"__setups__/**/*.js": [
"prettier --write --single-quote --print-width 80",
"git add"
],
"webpack.config.js": [
"prettier --write --single-quote --print-width 80",
"git add"
]
},
"jest": {
"setupFiles": [
"jest-webextension-mock",
"./__setups__/fetch.js"
],
"coverageDirectory": "./coverage/",
"bail": true,
"globals": {
"chrome": {
"tabs": {},
"omnibox": {
"onInputChanged": {},
"onInputEntered": {}
}
}
}
}
}