forked from naogify/ja-maplibre-gl-js-docs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
111 lines (111 loc) · 3.95 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
{
"name": "maplibre-gl-js-docs",
"description": "MapLibre GL JS documentation website",
"license": "BSD-3-Clause",
"repository": {
"type": "git",
"url": "git://github.com/maplibre/maplibre-gl-js-docs.git"
},
"engines": {
"node": ">=12"
},
"devDependencies": {
"@babel/core": "^7.11.6",
"@babel/plugin-proposal-class-properties": "^7.10.4",
"@babel/plugin-proposal-export-default-from": "^7.10.4",
"@babel/preset-env": "^7.11.5",
"@babel/preset-flow": "^7.10.4",
"@babel/preset-react": "^7.10.4",
"@mapbox/appropriate-images": "^4.0.0",
"@mapbox/appropriate-images-react": "^1.0.0",
"@mapbox/batfish": "^2.1.0",
"@mapbox/copyeditor": "^0.10.0",
"@mapbox/dr-ui": "^2.2.0",
"@mapbox/eslint-config-docs": "0.7.0",
"@mapbox/eslint-config-mapbox": "^3.0.0",
"@mapbox/mapbox-gl-supported": "^1.5.0",
"@mapbox/mbx-assembly": "^0.29.0",
"@mapbox/mr-ui": "^0.9.1",
"@mapbox/prettier-config-docs": "^0.2.1",
"@mapbox/remark-lint-link-text": "^0.5.0",
"@mapbox/remark-lint-mapbox": "^2.2.0",
"@maplibre/maplibre-gl-style-spec": "^14.0.0",
"@sentry/browser": "^5.27.4",
"babel-eslint": "^10.1.0",
"check-links": "^1.1.8",
"documentation": "~12.1.0",
"downshift": "^5.4.2",
"eslint": "^7.8.1",
"eslint-config-prettier": "^6.11.0",
"eslint-plugin-es": "^3.0.1",
"eslint-plugin-html": "^6.1.0",
"eslint-plugin-import": "^2.22.0",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^4.2.1",
"eslint-plugin-react": "^7.20.5",
"eslint-plugin-xss": "^0.1.10",
"execa": "^3.2.0",
"github-slugger": "1.2.1",
"husky": "^4.3.0",
"jest": "^26.4.1",
"js-yaml": "^3.13.1",
"lint-staged": "^10.3.0",
"npm-run-all": "^4.1.5",
"object.entries": "^1.1.0",
"prettier": "^2.1.1",
"prop-types": "^15.6.2",
"puppeteer": "^1.13.0",
"raw-loader": "^4.0.1",
"react": "^16.13.1",
"react-dom": "^16.13.1",
"react-helmet": "^6.1.0",
"regenerator-runtime": "^0.13.7",
"remark": "^10.0.1",
"remark-cli": "^8.0.1",
"remark-frontmatter": "^2.0.0",
"remark-lint-heading-increment": "^2.0.1",
"remark-react": "^5.0.1",
"slugg": "^1.2.1",
"tap-min": "^2.0.0",
"tape": "^5.0.1"
},
"scripts": {
"lint": "eslint --ext .html docs/pages/example --ext .js .",
"lint-md": "remark docs/pages/",
"install-gl-js-deps": "cd maplibre-gl-js/ && npm install --ignore-scripts --no-package-lock --no-audit --loglevel=error",
"build-api": "documentation build --github --format json --sort-order alpha --config ./docs/documentation.yml --output docs/components/api.json maplibre-gl-js/src/index.js",
"build-images": "mkdir -p docs/img/dist && node docs/bin/build-image-config.js && node docs/bin/appropriate-images.js --all",
"build-docs": "run-s install-gl-js-deps build-api build-images",
"prebuild": "npm run build-docs",
"prestart": "npm run build-docs",
"build": "batfish build",
"serve-static": "batfish serve-static",
"pretest": "npm run lint",
"test": "tape test/*.test.js | tap-min && npm run lint-md && jest",
"test-content": "copyeditor docs/pages/",
"start": "NODE_OPTIONS=\"--max_old_space_size=4096\" DEPLOY_ENV=local batfish start",
"create-image": "node docs/bin/create-image",
"open-changed-examples": "git diff --name-only docs/pages/example/*.html | awk '{print \"http://localhost:8080/maplibre-gl-js-docs\" substr($0,11,length($0)-15)}' | xargs open",
"format": "prettier --write '**/*.{js,css,html,json}'"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"dependencies": {
"@mapbox/rehype-prism": "^0.5.0",
"classnames": "^2.2.6",
"fuse.js": "^5.2.3",
"rehype-slug": "^2.0.3"
},
"jest": {
"testPathIgnorePatterns": [
"/maplibre-gl-js/"
],
"transformIgnorePatterns": [
"/node_modules\\/(?!(maplibre-gl-style-spec))/"
],
"testRegex": "/__tests__/.*\\.test\\.js$"
}
}