-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
103 lines (103 loc) · 3.12 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
{
"name": "favicon-mode-switcher",
"version": "1.1.1",
"description": "🕯 Make your favicon adapt to dark and light mode",
"main": "dist/index.min.js",
"unpkg": "dist/index.umd.min.js",
"module": "dist/index.min.mjs",
"types": "index.d.ts",
"files": [
"dist/*",
"index.js",
"index.d.ts",
"!dist/.gitkeep"
],
"browserslist": [
"last 2 versions",
"ie > 7"
],
"scripts": {
"test": "jest --verbose",
"build": "npm run babel && npm run minify && npm run version",
"babel": "npm run babel:umd && npm run babel:cjs && npm run babel:esm",
"babel:umd": "cross-env MODULE=umd npx babel favicon-mode-switcher.js -o dist/index.umd.js",
"babel:cjs": "cross-env MODULE=commonjs npx babel favicon-mode-switcher.js -o dist/index.js",
"babel:esm": "cross-env MODULE=esm npx babel favicon-mode-switcher.js -o dist/index.mjs",
"minify": "npm run minify:umd && npm run minify:cjs && npm run minify:esm",
"minify:umd": "npx terser dist/index.umd.js -o dist/index.umd.min.js -m -c passes=3 --comments false --mangle-props regex=\"/linkElement|hrefConfig|baseHref/\" -d DEBUG=false",
"minify:cjs": "npx terser dist/index.js -o dist/index.min.js -m -c passes=3 --comments false --mangle-props regex=\"/linkElement|hrefConfig|baseHref/\" -d DEBUG=false --module",
"minify:esm": "npx terser dist/index.mjs -o dist/index.min.mjs -m -c passes=3 --comments false --mangle-props regex=\"/linkElement|hrefConfig|baseHref/\" -d DEBUG=false --module",
"version": "npx replace '__VERSION__' $npm_package_version dist/*",
"prepublishOnly": "npm t && npm run build"
},
"repository": {
"type": "git",
"url": "git+https://github.com/jonaskuske/favicon-mode-switcher.git"
},
"keywords": [
"favicon",
"icon",
"dark",
"light",
"dark mode",
"dark theme",
"light theme",
"color scheme",
"prefers-color-scheme"
],
"author": "Jonas Kuske",
"license": "MIT",
"bugs": {
"url": "https://github.com/jonaskuske/favicon-mode-switcher/issues"
},
"homepage": "https://github.com/jonaskuske/favicon-mode-switcher/#readme",
"devDependencies": {
"@babel/cli": "^7.4.4",
"@babel/core": "^7.4.5",
"@babel/preset-env": "^7.4.5",
"@types/jest": "^27.0.2",
"@types/node": "^16.11.7",
"babel-plugin-add-module-exports": "^1.0.2",
"cross-env": "^7.0.3",
"eslint": "^8.2.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-prettier": "^4.0.0",
"jest": "^27.3.1",
"lint-staged": "^13.2.1",
"prettier": "^2.4.1",
"replace": "^1.1.0",
"terser": "^5.9.0",
"yorkie": "^2.0.0"
},
"eslintIgnore": [
"dist/"
],
"prettier": {
"semi": false,
"singleQuote": true,
"printWidth": 100,
"trailingComma": "all"
},
"eslintConfig": {
"root": true,
"env": {
"browser": true
},
"extends": [
"eslint:recommended",
"plugin:prettier/recommended"
],
"parserOptions": {
"sourceType": "module",
"ecmaVersion": 2021
}
},
"gitHooks": {
"pre-commit": "lint-staged"
},
"lint-staged": {
"*.{js,json,css,md,html}": [
"prettier --write"
]
}
}