-
-
Notifications
You must be signed in to change notification settings - Fork 14
/
package.json
82 lines (82 loc) · 2.9 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
{
"name": "distract-me-not",
"version": "2.8.2",
"private": true,
"dependencies": {
"bcryptjs": "^2.4.3",
"copy-to-clipboard": "^3.3.3",
"date-fns": "^2.30.0",
"evergreen-ui": "^6.9.0",
"fuzzaldrin-plus": "^0.6.0",
"lodash": "^4.17.21",
"omgopass": "^3.2.1",
"query-string": "^7.1.3",
"react": "^17.0.2",
"react-countdown-circle-timer": "^3.0.9",
"react-dom": "^17.0.2",
"react-router-dom": "^5.3.4",
"react-transition-group": "^4.4.2",
"sass": "^1.77.8",
"web-vitals": "^2.1.4",
"webextension-polyfill": "^0.12.0"
},
"scripts": {
"start": "craco start",
"build": "INLINE_RUNTIME_CHUNK=false GENERATE_SOURCEMAP=false craco build",
"build:firefox": "npm run build",
"build:chrome": "npm run build",
"build:edge": "npm run build",
"postbuild:firefox": "cd build && mv -f manifest.firefox.json manifest.json",
"postbuild:chrome": "cd build && cp -f ../public/manifest.json manifest.json && rm -f manifest.firefox.json",
"postbuild:edge": "npm run postbuild:chrome",
"package": "web-ext build --source-dir=build --artifacts-dir=. --overwrite-dest",
"package:firefox": "npm run package -- --filename={name}-{version}-firefox.zip",
"package:chrome": "npm run package -- --filename={name}-{version}-chrome.zip",
"package:edge": "npm run package -- --filename={name}-{version}-edge.zip",
"package:all": "npm run postbuild:firefox && npm run package:firefox && npm run postbuild:chrome && npm run package:chrome && npm run package:edge",
"package:source": "zip -r -FS distract_me_not-source.zip * .env.development .env.test -x build\\* node_modules\\* old\\* old-src\\* web-ext-artifacts\\* screenshots\\* *.zip",
"sign": "node ./scripts/sign-addon.js",
"test": "craco test --verbose",
"test:all": "npm test -- --watchAll --testMatch \"**/src/**/*.test.{js,jsx}\"",
"test:update": "npm run test:all -- -u",
"eject": "react-scripts eject",
"release:major": "release-it major",
"release:minor": "release-it minor",
"release:patch": "release-it patch",
"format": "npx prettier --write \"src/**/*.{js,jsx,json,css,scss}\""
},
"eslintConfig": {
"env": {
"webextensions": true
},
"extends": [
"react-app",
"react-app/jest"
]
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
},
"devDependencies": {
"@craco/craco": "^6.4.5",
"@testing-library/jest-dom": "^5.17.0",
"@testing-library/react": "^12.1.5",
"@testing-library/user-event": "^13.5.0",
"@types/jest": "^27.4.1",
"copy-webpack-plugin": "^5.1.2",
"react-scripts": "^4.0.3",
"release-it": "^15.5.0",
"release-it-update-manifest-plugin": "^1.0.0",
"sign-addon": "^3.11.0",
"web-ext": "^7.12.0"
}
}