forked from 0no-co/hoofd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
129 lines (129 loc) · 3.42 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
127
128
129
{
"name": "hoofd",
"version": "1.0.0",
"description": "Hooks to populate the html head.",
"author": "jdecroock <[email protected]> (https://twitter.com/JoviDeC)",
"private": false,
"scripts": {
"build": "rimraf dist && yarn build:preact && yarn build:react",
"build:react": "microbundle --define process.env.NODE_ENV=production --external react --name hoofd --no-compress --output dist/",
"build:preact": "microbundle --define process.env.NODE_ENV=production --external preact --name hoofd --no-compress --output preact/dist --alias react=preact/hooks",
"build:ci": "microbundle --define process.env.NODE_ENV=production --external preact --name hoofd --output dist/",
"test": "jest",
"test:watch": "cross-env NODE_ENV=test yarn test -- --watch",
"prepublishOnly": "yarn test && yarn lint && yarn build",
"lint": "eslint . --ext .ts,.tsx"
},
"repository": {
"type": "git",
"url": "git+https://github.com/JoviDeCroock/hoofd.git"
},
"license": "MIT",
"bugs": {
"url": "https://github.com/JoviDeCroock/hoofd/issues"
},
"homepage": "https://github.com/JoviDeCroock/hoofd#readme",
"keywords": [
"hoofd",
"react",
"preact",
"document",
"head",
"title",
"meta",
"link",
"html",
"language",
"seo"
],
"sideEffects": false,
"main": "./dist/hoofd.js",
"browser": "./dist/hoofd.umd.js",
"umd:main": "./dist/hoofd.umd.js",
"jsnext:main": "./dist/hoofd.modern.js",
"module": "./dist/hoofd.module.js",
"source": "./src/index.ts",
"types": "./dist/index.d.ts",
"typings": "./dist/index.d.ts",
"exports": {
".": {
"browser": "./dist/hoofd.module.js",
"umd": "./dist/hoofd.umd.js",
"import": "./dist/hoofd.module.js",
"require": "./dist/hoofd.js"
},
"./preact": {
"browser": "./preact/dist/hoofd.module.js",
"umd": "./preact/dist/hoofd.umd.js",
"import": "./preact/dist/hoofd.module.js",
"require": "./preact/dist/hoofd.js"
}
},
"dependencies": {},
"devDependencies": {
"@testing-library/jest-dom": "^5.3.0",
"@testing-library/react": "^10.0.2",
"@types/jest": "24.0.23",
"@types/react": "16.9.16",
"@types/react-dom": "16.9.4",
"@typescript-eslint/eslint-plugin": "2.11.0",
"@typescript-eslint/parser": "2.11.0",
"codecov": "3.7.1",
"cross-env": "^7.0.2",
"eslint": "6.7.2",
"eslint-config-prettier": "6.7.0",
"eslint-plugin-react": "7.17.0",
"husky": "3.1.0",
"jest": "^26.6.3",
"jest-cli": "^26.6.3",
"lint-staged": "9.5.0",
"microbundle": "0.12.4",
"preact": "^10.5.7",
"prettier": "^2.0.2",
"react": "^17.0.0",
"react-dom": "^17.0.0",
"rimraf": "^3.0.2",
"ts-jest": "^26.4.4",
"tslib": "^1.11.1",
"typescript": "^3.8.3"
},
"peerDependencies": {
"react": ">= 16.8.0"
},
"mangle": {
"regex": "^_"
},
"prettier": {
"singleQuote": true,
"trailingComma": "es5"
},
"lint-staged": {
"*.{json,md}": [
"prettier --write",
"git add"
],
"*.{ts,tsx}": [
"eslint --fix",
"prettier --write",
"git add"
]
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"jest": {
"preset": "ts-jest",
"coverageDirectory": "./coverage/",
"collectCoverage": true,
"testMatch": [
"<rootDir>/__tests__/**/*.(test|spec).ts?(x)"
],
"moduleFileExtensions": [
"ts",
"tsx",
"js"
]
}
}