forked from preactjs/preact-www
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
128 lines (128 loc) · 3.55 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
{
"name": "preact-www",
"version": "0.3.0",
"description": "Preact website.",
"engines": {
"node": ">=12"
},
"repository": {
"type": "git",
"url": "https://github.com/preactjs/preact-www.git"
},
"scripts": {
"dev": "concurrently \"npm run dev:client\" \"npm run dev:lambda\"",
"dev:client": "preact watch --template src/template.html",
"dev:lambda": "netlify-lambda serve src/lambda",
"start": "npm run -s server",
"prestart": "npm run -s build",
"server": "superstatic build -p ${PORT:-8080} --host 0.0.0.0 --gzip -c '{\"rewrites\": [{\"source\":\"**\",\"destination\":\"index.html\"}],\"headers\":[{\"source\":\"**\",\"headers\":[{\"key\":\"Cache-Control\",\"value\":\"max-age=31536000\"}]}]}'",
"build": "netlify-lambda build src/lambda && preact build --prerenderUrls src/prerender.js --template src/template.html",
"prebuild": "rimraf build/assets && rimraf build/content",
"pretest": "npm run -s lint && npm run -s build",
"test": "cross-env JEST_PUPPETEER_CONFIG=test/jest-puppeteer.config.js jest --runInBand --no-coverage test/browser/.*\\.js",
"lint": "eslint src test",
"format": "prettier --write \"{src,test}/**/*.{less,js,json}\""
},
"keywords": [
"preact"
],
"eslintConfig": {
"extends": "developit",
"rules": {
"react/sort-comp": 0,
"react/no-danger": 0,
"brace-style": 0,
"indent": 0,
"lines-around-comment": 0,
"no-prototype-builtins": 0
},
"globals": {
"PRERENDER": true,
"__non_webpack_require__": true,
"ga": true,
"page": true
},
"settings": {
"react": {
"version": "16.8"
}
}
},
"eslintIgnore": [
"prism.js"
],
"jest": {
"preset": "jest-puppeteer"
},
"prettier": {
"singleQuote": true,
"trailingComma": "none",
"useTabs": true,
"tabWidth": 2
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"{src,test}/**/*.{less,js,json}": [
"prettier --write",
"git add"
]
},
"license": "MIT",
"author": "Preact Authors <[email protected]>",
"devDependencies": {
"@babel/polyfill": "^7.7.0",
"concurrently": "^5.2.0",
"critters-webpack-plugin": "^2.5.0",
"cross-env": "^7.0.3",
"dlv": "^1.1.3",
"eslint": "^6.8.0",
"eslint-config-developit": "^1.1.1",
"husky": "^4.0.0",
"identity-obj-proxy": "^3.0.0",
"jest": "^26.6.3",
"jest-puppeteer": "^4.4.0",
"jsdom": "^15.2.1",
"less-loader": "^5.0.0",
"lint-staged": "^9.5.0",
"netlify-lambda": "^1.6.3",
"per-env": "^1.0.2",
"postcss-custom-properties": "^9.0.2",
"preact-cli": "^3.0.0-rc.16",
"preact-cli-plugin-netlify": "^1.5.0",
"preact-render-spy": "^1.3.0",
"prettier": "^1.19.1",
"promise-polyfill": "^8.1.3",
"puppeteer": "^2.0.0",
"rimraf": "^3.0.2",
"size-plugin": "^2.0.1",
"workerize-loader": "^1.1.0"
},
"dependencies": {
"babel-standalone": "^6.26.0",
"classnames": "^2.2.6",
"codemirror": "^5.50.2",
"decko": "^1.2.0",
"encoding": "^0.1.13",
"flatmap": "0.0.3",
"htm": "^2.2.1",
"less": "^3.10.3",
"linkstate": "^1.1.1",
"marked": "^0.8.0",
"node-fetch": "^2.6.1",
"preact": "^10.4.4",
"preact-custom-element": "^4.0.0",
"preact-markup": "^2.0.0",
"preact-render-to-string": "^5.1.9",
"preact-router": "^3.1.0",
"sucrase": "^3.12.0",
"superstatic": "^6.0.4",
"unistore": "^3.5.1",
"window-or-global": "^1.0.1",
"worker-loader": "^2.0.0",
"yaml": "^1.7.2"
}
}