2020-09-27 15:10:11 +03:00
|
|
|
{
|
2020-10-01 22:38:10 +03:00
|
|
|
"name": "docs.github.com",
|
2020-09-27 15:10:11 +03:00
|
|
|
"private": true,
|
|
|
|
"main": "server.js",
|
2020-10-01 22:38:10 +03:00
|
|
|
"author": {
|
|
|
|
"email": "opensource+docs@github.com",
|
|
|
|
"name": "GitHub",
|
|
|
|
"url": "https://github.com/github/docs"
|
|
|
|
},
|
2020-10-08 03:42:52 +03:00
|
|
|
"license": "(MIT AND CC-BY-4.0)",
|
2021-05-25 01:40:50 +03:00
|
|
|
"cacheDirectories": [
|
|
|
|
"node_modules",
|
|
|
|
".next/cache"
|
|
|
|
],
|
2020-09-27 15:10:11 +03:00
|
|
|
"dependencies": {
|
2021-05-19 20:32:47 +03:00
|
|
|
"@primer/components": "^28.0.4",
|
2021-04-13 21:38:04 +03:00
|
|
|
"@primer/css": "^16.2.0",
|
2021-05-19 20:32:47 +03:00
|
|
|
"@primer/octicons": "^14.1.0",
|
|
|
|
"@primer/octicons-react": "^14.1.0",
|
2021-05-20 20:46:04 +03:00
|
|
|
"ajv": "^8.4.0",
|
|
|
|
"ajv-formats": "^2.1.0",
|
2021-05-19 20:32:47 +03:00
|
|
|
"algoliasearch": "^4.9.1",
|
2021-04-07 15:27:44 +03:00
|
|
|
"assert": "^2.0.0",
|
2020-09-27 15:10:11 +03:00
|
|
|
"browser-date-formatter": "^3.0.3",
|
2021-05-19 20:32:47 +03:00
|
|
|
"change-case": "^4.1.2",
|
2020-09-27 15:10:11 +03:00
|
|
|
"cheerio": "^1.0.0-rc.3",
|
2021-05-06 00:54:49 +03:00
|
|
|
"classnames": "^2.3.1",
|
2020-09-27 15:10:11 +03:00
|
|
|
"compression": "^1.7.4",
|
2020-12-11 21:13:18 +03:00
|
|
|
"connect-datadog": "0.0.9",
|
2020-09-27 15:10:11 +03:00
|
|
|
"connect-slashes": "^1.4.0",
|
|
|
|
"cookie-parser": "^1.4.5",
|
|
|
|
"cors": "^2.8.5",
|
|
|
|
"csurf": "^1.11.0",
|
2021-05-25 01:40:50 +03:00
|
|
|
"dayjs": "^1.10.4",
|
2021-05-19 20:32:47 +03:00
|
|
|
"dotenv": "^9.0.2",
|
2020-09-27 15:10:11 +03:00
|
|
|
"express": "^4.17.1",
|
2021-05-19 20:32:47 +03:00
|
|
|
"express-rate-limit": "^5.2.6",
|
2021-03-09 22:14:02 +03:00
|
|
|
"express-timeout-handler": "^2.2.0",
|
2021-05-19 20:32:47 +03:00
|
|
|
"flat": "^5.0.2",
|
|
|
|
"github-slugger": "^1.3.0",
|
|
|
|
"got": "^11.8.2",
|
|
|
|
"gray-matter": "^4.0.3",
|
2020-12-03 01:10:47 +03:00
|
|
|
"hast-util-from-parse5": "^6.0.1",
|
2021-01-29 23:44:50 +03:00
|
|
|
"hast-util-parse-selector": "^2.2.5",
|
|
|
|
"hast-util-select": "^4.0.2",
|
2021-01-30 00:42:35 +03:00
|
|
|
"hast-util-to-string": "^1.0.4",
|
2020-12-03 01:10:47 +03:00
|
|
|
"hastscript": "^6.0.0",
|
2021-05-19 20:32:47 +03:00
|
|
|
"helmet": "^4.6.0",
|
2021-01-29 01:06:19 +03:00
|
|
|
"highlightjs-graphql": "^1.0.2",
|
2021-05-19 20:32:47 +03:00
|
|
|
"hot-shots": "^8.3.1",
|
2020-09-27 15:10:11 +03:00
|
|
|
"html-entities": "^1.2.1",
|
|
|
|
"imurmurhash": "^0.1.4",
|
|
|
|
"js-cookie": "^2.2.1",
|
2021-05-19 20:32:47 +03:00
|
|
|
"js-yaml": "^4.1.0",
|
2021-02-08 20:58:51 +03:00
|
|
|
"liquidjs": "^9.22.1",
|
2021-05-06 21:46:59 +03:00
|
|
|
"lodash": "^4.17.21",
|
2021-01-28 22:38:22 +03:00
|
|
|
"lunr": "^2.3.9",
|
|
|
|
"lunr-languages": "^1.4.0",
|
2021-05-19 20:32:47 +03:00
|
|
|
"morgan": "^1.10.0",
|
2021-05-05 18:23:46 +03:00
|
|
|
"next": "^10.2.0",
|
2020-09-27 15:10:11 +03:00
|
|
|
"node-fetch": "^2.6.1",
|
2020-12-03 01:10:47 +03:00
|
|
|
"parse5": "^6.0.1",
|
2020-09-29 18:51:48 +03:00
|
|
|
"port-used": "^2.0.8",
|
2021-03-26 02:54:25 +03:00
|
|
|
"rate-limit-redis": "^2.1.0",
|
2021-05-19 20:32:47 +03:00
|
|
|
"react": "^17.0.2",
|
|
|
|
"react-dom": "^17.0.2",
|
|
|
|
"redis": "^3.1.2",
|
2021-03-29 20:34:22 +03:00
|
|
|
"redis-mock": "^0.56.3",
|
2021-01-29 01:06:19 +03:00
|
|
|
"rehype-autolink-headings": "^2.0.5",
|
2021-04-27 00:21:09 +03:00
|
|
|
"rehype-highlight": "^4.1.0",
|
2021-01-29 01:06:19 +03:00
|
|
|
"rehype-raw": "^4.0.2",
|
|
|
|
"rehype-slug": "^2.0.3",
|
|
|
|
"rehype-stringify": "^6.0.1",
|
2020-12-03 01:10:47 +03:00
|
|
|
"remark-code-extra": "^1.0.1",
|
2021-01-29 01:06:19 +03:00
|
|
|
"remark-gemoji-to-emoji": "^1.1.0",
|
|
|
|
"remark-parse": "^7.0.2",
|
|
|
|
"remark-rehype": "^5.0.0",
|
2021-02-11 19:15:59 +03:00
|
|
|
"revalidator": "^0.3.1",
|
2021-04-08 23:51:37 +03:00
|
|
|
"rss-parser": "^3.12.0",
|
2020-09-27 15:10:11 +03:00
|
|
|
"search-with-your-keyboard": "1.1.0",
|
2021-05-19 20:32:47 +03:00
|
|
|
"semver": "^7.3.5",
|
2020-09-27 15:10:11 +03:00
|
|
|
"slash": "^3.0.0",
|
2020-12-03 01:10:47 +03:00
|
|
|
"strip-html-comments": "^1.0.0",
|
2021-05-06 23:25:04 +03:00
|
|
|
"styled-components": "^5.3.0",
|
2021-03-19 23:07:46 +03:00
|
|
|
"throng": "^5.0.0",
|
2021-01-29 01:06:19 +03:00
|
|
|
"unified": "^8.4.2",
|
2021-01-26 20:45:23 +03:00
|
|
|
"unist-util-visit": "^2.0.3",
|
2021-05-19 20:32:47 +03:00
|
|
|
"uuid": "^8.3.2",
|
2021-05-25 01:40:50 +03:00
|
|
|
"walk-sync": "^2.2.0"
|
2020-09-27 15:10:11 +03:00
|
|
|
},
|
|
|
|
"devDependencies": {
|
2021-05-19 20:32:47 +03:00
|
|
|
"@actions/core": "^1.2.7",
|
|
|
|
"@actions/github": "^5.0.0",
|
2021-05-25 01:40:50 +03:00
|
|
|
"@babel/core": "^7.14.3",
|
|
|
|
"@babel/eslint-parser": "^7.14.3",
|
|
|
|
"@babel/plugin-transform-runtime": "^7.14.3",
|
|
|
|
"@babel/preset-env": "^7.14.2",
|
|
|
|
"@graphql-inspector/core": "^2.5.0",
|
|
|
|
"@graphql-tools/load": "^6.2.8",
|
2021-05-19 20:32:47 +03:00
|
|
|
"@octokit/rest": "^18.5.3",
|
|
|
|
"@types/lodash": "^4.14.169",
|
|
|
|
"@types/react": "^17.0.6",
|
|
|
|
"@types/react-dom": "^17.0.5",
|
2020-12-16 01:04:41 +03:00
|
|
|
"async": "^3.2.0",
|
2020-09-27 15:10:11 +03:00
|
|
|
"await-sleep": "0.0.1",
|
2021-05-25 01:40:50 +03:00
|
|
|
"babel-loader": "^8.2.2",
|
2021-05-06 23:25:04 +03:00
|
|
|
"babel-plugin-styled-components": "^1.12.0",
|
2021-05-25 01:40:50 +03:00
|
|
|
"babel-preset-env": "^1.7.0",
|
2021-05-19 20:32:47 +03:00
|
|
|
"chalk": "^4.1.1",
|
|
|
|
"commander": "^7.2.0",
|
2021-05-25 01:40:50 +03:00
|
|
|
"copy-webpack-plugin": "^8.1.1",
|
2020-09-27 15:10:11 +03:00
|
|
|
"count-array-values": "^1.2.1",
|
2021-05-25 01:40:50 +03:00
|
|
|
"cross-env": "^7.0.3",
|
2020-09-27 15:10:11 +03:00
|
|
|
"csp-parse": "0.0.2",
|
2021-05-25 01:40:50 +03:00
|
|
|
"css-loader": "^4.3.0",
|
2021-05-19 20:32:47 +03:00
|
|
|
"csv-parse": "^4.15.4",
|
|
|
|
"csv-parser": "^3.0.0",
|
2020-10-19 16:24:09 +03:00
|
|
|
"dedent": "^0.7.0",
|
2021-05-19 20:32:47 +03:00
|
|
|
"domwaiter": "^1.3.0",
|
|
|
|
"eslint": "^7.26.0",
|
|
|
|
"eslint-config-standard": "^16.0.2",
|
|
|
|
"eslint-plugin-import": "^2.23.2",
|
2020-12-03 01:10:47 +03:00
|
|
|
"eslint-plugin-node": "^11.1.0",
|
2021-05-25 01:40:50 +03:00
|
|
|
"eslint-plugin-promise": "^4.2.1",
|
2020-09-27 15:10:11 +03:00
|
|
|
"event-to-promise": "^0.8.0",
|
2021-05-19 20:32:47 +03:00
|
|
|
"glob": "^7.1.7",
|
|
|
|
"graphql": "^15.5.0",
|
2020-09-27 15:10:11 +03:00
|
|
|
"heroku-client": "^3.1.0",
|
2020-12-03 01:10:47 +03:00
|
|
|
"http-status-code": "^2.1.0",
|
2021-05-19 20:32:47 +03:00
|
|
|
"husky": "^6.0.0",
|
|
|
|
"image-size": "^1.0.0",
|
2021-05-25 23:44:19 +03:00
|
|
|
"is-url": "^1.2.4",
|
2020-09-27 15:10:11 +03:00
|
|
|
"japanese-characters": "^1.1.0",
|
2021-05-19 20:32:47 +03:00
|
|
|
"javascript-stringify": "^2.1.0",
|
2021-04-27 00:21:09 +03:00
|
|
|
"jest": "^26.6.3",
|
2020-09-27 15:10:11 +03:00
|
|
|
"jest-expect-message": "^1.0.2",
|
2021-05-19 20:32:47 +03:00
|
|
|
"jest-github-actions-reporter": "^1.0.3",
|
|
|
|
"jest-silent-reporter": "^0.5.0",
|
2020-09-27 15:10:11 +03:00
|
|
|
"jest-slow-test-reporter": "^1.0.0",
|
2021-05-25 23:44:19 +03:00
|
|
|
"linkinator": "^2.13.6",
|
2020-09-27 15:10:11 +03:00
|
|
|
"make-promises-safe": "^5.1.0",
|
2021-05-25 23:44:19 +03:00
|
|
|
"mdast-util-from-markdown": "^0.8.4",
|
2020-09-27 15:10:11 +03:00
|
|
|
"mime": "^2.4.4",
|
2021-05-25 01:40:50 +03:00
|
|
|
"mini-css-extract-plugin": "^1.6.0",
|
2021-05-25 23:44:19 +03:00
|
|
|
"mkdirp": "^1.0.4",
|
2021-05-19 20:32:47 +03:00
|
|
|
"mock-express-response": "^0.3.0",
|
|
|
|
"mockdate": "^3.0.5",
|
|
|
|
"nock": "^13.0.11",
|
|
|
|
"nodemon": "^2.0.7",
|
|
|
|
"npm-merge-driver-install": "^2.0.1",
|
|
|
|
"object-hash": "^2.1.1",
|
2021-05-25 01:40:50 +03:00
|
|
|
"postcss": "^8.2.15",
|
2021-05-19 20:32:47 +03:00
|
|
|
"prettier": "^2.3.0",
|
2021-04-07 19:05:09 +03:00
|
|
|
"process": "^0.11.10",
|
2021-05-19 20:32:47 +03:00
|
|
|
"replace": "^1.2.1",
|
2021-05-25 01:40:50 +03:00
|
|
|
"resolve-url-loader": "^4.0.0",
|
2021-05-25 23:44:19 +03:00
|
|
|
"rimraf": "^3.0.2",
|
2021-05-19 20:32:47 +03:00
|
|
|
"robots-parser": "^2.3.0",
|
2021-05-25 01:40:50 +03:00
|
|
|
"sass": "^1.32.13",
|
|
|
|
"sass-loader": "^11.1.1",
|
2021-05-19 20:32:47 +03:00
|
|
|
"start-server-and-test": "^1.12.2",
|
|
|
|
"strip-ansi": "^7.0.0",
|
2021-05-25 01:40:50 +03:00
|
|
|
"style-loader": "^2.0.0",
|
2021-05-19 20:32:47 +03:00
|
|
|
"supertest": "^6.1.3",
|
2021-05-05 18:23:46 +03:00
|
|
|
"typescript": "^4.2.4",
|
2020-12-03 01:10:47 +03:00
|
|
|
"url-template": "^2.0.8",
|
2021-05-25 01:40:50 +03:00
|
|
|
"webpack": "^5.37.0",
|
|
|
|
"webpack-cli": "^4.7.0",
|
2021-05-19 20:32:47 +03:00
|
|
|
"webpack-dev-middleware": "^4.2.0",
|
2021-05-25 01:40:50 +03:00
|
|
|
"website-scraper": "^4.2.3"
|
|
|
|
},
|
|
|
|
"optionalDependencies": {
|
|
|
|
"jest-puppeteer": "^5.0.3",
|
|
|
|
"jimp": "^0.16.1",
|
|
|
|
"pa11y-ci": "^2.4.1",
|
|
|
|
"puppeteer": "^9.1.1",
|
2021-03-12 04:20:27 +03:00
|
|
|
"xlsx-populate": "^1.21.0"
|
2020-09-27 15:10:11 +03:00
|
|
|
},
|
|
|
|
"scripts": {
|
2021-02-12 22:23:40 +03:00
|
|
|
"start": "cross-env NODE_ENV=development ENABLED_LANGUAGES='en,ja' nodemon server.js",
|
2020-09-27 15:10:11 +03:00
|
|
|
"dev": "npm start",
|
2020-12-10 21:37:06 +03:00
|
|
|
"debug": "cross-env NODE_ENV=development ENABLED_LANGUAGES='en,ja' nodemon --inspect server.js",
|
2020-12-03 01:10:47 +03:00
|
|
|
"rest-dev": "script/rest/update-files.js && npm run dev",
|
2021-05-25 01:40:50 +03:00
|
|
|
"build": "npm run webpack-build && next build",
|
|
|
|
"webpack-build": "cross-env NODE_ENV=production npx webpack --mode production",
|
2020-09-27 15:10:11 +03:00
|
|
|
"start-all-languages": "cross-env NODE_ENV=development nodemon server.js",
|
2021-05-05 18:23:46 +03:00
|
|
|
"lint": "eslint --fix . && prettier -w \"**/*.{yml,yaml}\" && npm run lint-tsc",
|
2021-02-01 19:59:33 +03:00
|
|
|
"lint-translation": "TEST_TRANSLATION=true jest content/lint-files",
|
2021-05-05 18:23:46 +03:00
|
|
|
"lint-tsc": "prettier -w \"**/*.{ts,tsx}\"",
|
2021-05-06 18:31:04 +03:00
|
|
|
"test": "jest && eslint . && prettier -c \"**/*.{yml,yaml}\"",
|
2020-09-27 15:10:11 +03:00
|
|
|
"prebrowser-test": "npm run build",
|
|
|
|
"browser-test": "start-server-and-test browser-test-server 4001 browser-test-tests",
|
2021-01-27 04:06:58 +03:00
|
|
|
"browser-test-server": "cross-env NODE_ENV=production PORT=4001 node server.js",
|
2020-12-09 03:26:18 +03:00
|
|
|
"browser-test-tests": "cross-env BROWSER=1 jest tests/browser/browser.js",
|
2020-09-27 15:10:11 +03:00
|
|
|
"sync-search": "start-server-and-test sync-search-server 4002 sync-search-indices",
|
|
|
|
"sync-search-dry-run": "DRY_RUN=1 npm run sync-search",
|
|
|
|
"sync-search-server": "cross-env NODE_ENV=production PORT=4002 node server.js",
|
2021-01-20 18:37:42 +03:00
|
|
|
"sync-search-indices": "script/sync-search-indices.js",
|
2020-09-27 15:10:11 +03:00
|
|
|
"test-watch": "jest --watch --notify --notifyMode=change --coverage",
|
|
|
|
"prevent-pushes-to-main": "node script/prevent-pushes-to-main.js",
|
|
|
|
"pa11y-ci": "pa11y-ci",
|
2020-10-21 23:32:06 +03:00
|
|
|
"pa11y-test": "start-server-and-test browser-test-server 4001 pa11y-ci",
|
2021-01-22 00:36:22 +03:00
|
|
|
"link-check": "start-server-and-test link-check-server 4002 link-check-test",
|
|
|
|
"link-check-server": "cross-env NODE_ENV=development ENABLED_LANGUAGES='en' PORT=4002 node server.js",
|
2021-01-22 18:07:13 +03:00
|
|
|
"link-check-test": "cross-env node script/check-internal-links.js",
|
2020-11-11 01:01:35 +03:00
|
|
|
"heroku-postbuild": "node script/early-access/clone-for-build.js && npm run build"
|
2020-09-27 15:10:11 +03:00
|
|
|
},
|
|
|
|
"engines": {
|
2021-05-20 23:32:19 +03:00
|
|
|
"node": ">= 16.0.0"
|
2020-09-27 15:10:11 +03:00
|
|
|
},
|
2021-05-20 23:36:46 +03:00
|
|
|
"repository": "https://github.com/github/docs"
|
2020-12-09 20:40:58 +03:00
|
|
|
}
|