2020-09-27 15:10:11 +03:00
|
|
|
{
|
2020-10-01 22:38:10 +03:00
|
|
|
"author": {
|
|
|
|
"email": "opensource+docs@github.com",
|
|
|
|
"name": "GitHub",
|
|
|
|
"url": "https://github.com/github/docs"
|
|
|
|
},
|
2021-05-25 01:40:50 +03:00
|
|
|
"cacheDirectories": [
|
|
|
|
"node_modules",
|
|
|
|
".next/cache"
|
|
|
|
],
|
2020-09-27 15:10:11 +03:00
|
|
|
"dependencies": {
|
2021-12-02 16:36:07 +03:00
|
|
|
"@github/failbot": "0.8.0",
|
2022-02-25 00:33:10 +03:00
|
|
|
"@primer/css": "^19.4.0",
|
2022-03-04 21:29:09 +03:00
|
|
|
"@primer/octicons": "17.0.0",
|
|
|
|
"@primer/octicons-react": "17.0.0",
|
2022-03-28 20:45:33 +03:00
|
|
|
"@primer/react": "^34.7.1",
|
2021-11-19 21:21:23 +03:00
|
|
|
"@react-aria/ssr": "^3.1.0",
|
2021-06-02 01:45:02 +03:00
|
|
|
"accept-language-parser": "^1.5.0",
|
2022-01-26 20:08:41 +03:00
|
|
|
"ajv": "^8.9.0",
|
2021-09-14 02:31:43 +03:00
|
|
|
"ajv-formats": "^2.1.1",
|
2021-08-02 22:01:38 +03:00
|
|
|
"cheerio": "^1.0.0-rc.10",
|
2021-05-06 00:54:49 +03:00
|
|
|
"classnames": "^2.3.1",
|
2020-12-11 21:13:18 +03:00
|
|
|
"connect-datadog": "0.0.9",
|
2021-12-02 16:18:28 +03:00
|
|
|
"cookie-parser": "^1.4.6",
|
2020-09-27 15:10:11 +03:00
|
|
|
"cors": "^2.8.5",
|
|
|
|
"csurf": "^1.11.0",
|
2021-09-14 02:31:43 +03:00
|
|
|
"dayjs": "^1.10.7",
|
2021-08-02 22:01:38 +03:00
|
|
|
"dotenv": "^10.0.0",
|
2022-01-04 22:41:55 +03:00
|
|
|
"express": "^4.17.2",
|
2021-08-02 22:01:38 +03:00
|
|
|
"express-timeout-handler": "^2.2.2",
|
2021-05-19 20:32:47 +03:00
|
|
|
"flat": "^5.0.2",
|
2021-09-14 02:31:43 +03:00
|
|
|
"github-slugger": "^1.4.0",
|
2021-05-19 20:32:47 +03:00
|
|
|
"got": "^11.8.2",
|
|
|
|
"gray-matter": "^4.0.3",
|
2021-08-02 22:01:38 +03:00
|
|
|
"hast-util-from-parse5": "^7.1.0",
|
2021-07-29 17:24:26 +03:00
|
|
|
"hast-util-parse-selector": "^3.1.0",
|
2021-09-14 02:31:43 +03:00
|
|
|
"hast-util-select": "^5.0.1",
|
2021-08-19 22:57:39 +03:00
|
|
|
"hast-util-to-string": "^2.0.0",
|
|
|
|
"hastscript": "^7.0.2",
|
2022-01-27 18:12:15 +03:00
|
|
|
"helmet": "^4.6.0",
|
2022-03-07 21:18:49 +03:00
|
|
|
"highlight.js": "11.4.0",
|
2022-03-05 00:24:46 +03:00
|
|
|
"highlightjs-curl": "^1.3.0",
|
2021-01-29 01:06:19 +03:00
|
|
|
"highlightjs-graphql": "^1.0.2",
|
2021-11-01 20:05:00 +03:00
|
|
|
"hot-shots": "^9.0.0",
|
2021-09-14 02:31:43 +03:00
|
|
|
"html-entities": "^2.3.2",
|
2020-09-27 15:10:11 +03:00
|
|
|
"imurmurhash": "^0.1.4",
|
2022-04-11 19:12:59 +03:00
|
|
|
"javascript-stringify": "^2.1.0",
|
2021-09-14 02:31:43 +03:00
|
|
|
"js-cookie": "^3.0.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-07-14 23:49:18 +03:00
|
|
|
"lodash-es": "^4.17.21",
|
2021-01-28 22:38:22 +03:00
|
|
|
"lunr": "^2.3.9",
|
2021-08-19 22:57:39 +03:00
|
|
|
"lunr-languages": "^1.9.0",
|
2021-12-03 17:44:32 +03:00
|
|
|
"mdast-util-from-markdown": "^1.2.0",
|
2021-07-29 17:24:26 +03:00
|
|
|
"mdast-util-to-string": "^3.1.0",
|
2021-05-19 20:32:47 +03:00
|
|
|
"morgan": "^1.10.0",
|
2022-05-12 19:15:17 +03:00
|
|
|
"msgpack5rpc": "^1.1.0",
|
2022-01-11 23:37:24 +03:00
|
|
|
"next": "^11.1.3",
|
2022-05-12 19:34:25 +03:00
|
|
|
"overload-protection": "^1.2.3",
|
2022-05-26 19:49:58 +03:00
|
|
|
"parse5": "7.0.0",
|
2020-09-29 18:51:48 +03:00
|
|
|
"port-used": "^2.0.8",
|
2022-05-25 14:23:43 +03:00
|
|
|
"quick-lru": "6.1.1",
|
2021-05-19 20:32:47 +03:00
|
|
|
"react": "^17.0.2",
|
|
|
|
"react-dom": "^17.0.2",
|
2022-02-03 02:49:46 +03:00
|
|
|
"react-markdown": "^8.0.0",
|
2022-03-28 20:45:33 +03:00
|
|
|
"react-syntax-highlighter": "^15.5.0",
|
2022-01-26 19:36:25 +03:00
|
|
|
"rehype-autolink-headings": "^6.1.1",
|
2022-01-29 05:50:44 +03:00
|
|
|
"rehype-highlight": "^5.0.2",
|
2022-01-04 22:37:02 +03:00
|
|
|
"rehype-raw": "^6.1.1",
|
2022-01-08 02:57:22 +03:00
|
|
|
"rehype-slug": "^5.0.1",
|
2021-09-14 02:31:43 +03:00
|
|
|
"rehype-stringify": "^9.0.2",
|
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",
|
2021-11-04 19:17:48 +03:00
|
|
|
"remark-gfm": "^3.0.1",
|
2022-01-26 20:58:20 +03:00
|
|
|
"remark-parse": "^10.0.1",
|
2021-07-29 17:24:26 +03:00
|
|
|
"remark-parse-no-trim": "^8.0.4",
|
2022-02-03 02:13:05 +03:00
|
|
|
"remark-rehype": "^10.1.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",
|
2021-06-11 21:21:09 +03:00
|
|
|
"scroll-anchoring": "^0.1.0",
|
2021-05-19 20:32:47 +03:00
|
|
|
"semver": "^7.3.5",
|
2021-08-02 22:01:38 +03:00
|
|
|
"slash": "^4.0.0",
|
2020-12-03 01:10:47 +03:00
|
|
|
"strip-html-comments": "^1.0.0",
|
2021-10-20 01:08:41 +03:00
|
|
|
"styled-components": "^5.3.3",
|
2022-05-21 00:11:41 +03:00
|
|
|
"swr": "1.3.0",
|
2021-08-26 21:19:40 +03:00
|
|
|
"ts-dedent": "^2.2.0",
|
2021-08-19 22:57:39 +03:00
|
|
|
"unified": "^10.1.0",
|
2021-10-11 07:34:46 +03:00
|
|
|
"unist-util-visit": "^4.1.0",
|
2022-04-11 19:12:59 +03:00
|
|
|
"url-template": "^3.0.0",
|
2021-05-19 20:32:47 +03:00
|
|
|
"uuid": "^8.3.2",
|
2021-08-02 22:01:38 +03:00
|
|
|
"walk-sync": "^3.0.0"
|
2020-09-27 15:10:11 +03:00
|
|
|
},
|
|
|
|
"devDependencies": {
|
2021-10-19 20:34:47 +03:00
|
|
|
"@actions/core": "^1.6.0",
|
2021-05-19 20:32:47 +03:00
|
|
|
"@actions/github": "^5.0.0",
|
2021-11-23 20:41:51 +03:00
|
|
|
"@alex_neo/jest-expect-message": "^1.0.5",
|
2022-01-26 22:10:39 +03:00
|
|
|
"@babel/core": "^7.16.12",
|
2022-02-02 10:34:12 +03:00
|
|
|
"@babel/eslint-parser": "^7.16.5",
|
2021-07-20 19:32:35 +03:00
|
|
|
"@babel/plugin-syntax-top-level-await": "^7.14.5",
|
2022-01-25 21:46:42 +03:00
|
|
|
"@babel/plugin-transform-runtime": "^7.16.10",
|
2022-02-02 08:02:53 +03:00
|
|
|
"@babel/preset-env": "^7.16.11",
|
2022-02-23 02:08:35 +03:00
|
|
|
"@graphql-inspector/core": "^3.1.1",
|
2021-10-29 19:40:26 +03:00
|
|
|
"@graphql-tools/load": "^7.4.1",
|
2022-05-19 17:00:15 +03:00
|
|
|
"@jest/globals": "^28.1.0",
|
2021-12-15 20:35:34 +03:00
|
|
|
"@octokit/graphql": "4.8.0",
|
2021-10-11 01:00:03 +03:00
|
|
|
"@octokit/rest": "^18.12.0",
|
2021-06-09 23:44:32 +03:00
|
|
|
"@types/github-slugger": "^1.3.0",
|
2021-06-14 21:07:39 +03:00
|
|
|
"@types/imurmurhash": "^0.1.1",
|
2021-12-02 05:21:53 +03:00
|
|
|
"@types/js-cookie": "^3.0.1",
|
2022-01-04 20:57:49 +03:00
|
|
|
"@types/lodash": "^4.14.178",
|
2022-01-04 19:06:37 +03:00
|
|
|
"@types/react": "^17.0.38",
|
2022-04-11 19:12:59 +03:00
|
|
|
"@types/react-dom": "^18.0.0",
|
2022-05-16 22:49:56 +03:00
|
|
|
"@types/react-syntax-highlighter": "^15.5.1",
|
2022-01-26 20:30:53 +03:00
|
|
|
"@types/uuid": "^8.3.4",
|
2022-05-11 17:38:14 +03:00
|
|
|
"@typescript-eslint/eslint-plugin": "5.23.0",
|
|
|
|
"@typescript-eslint/parser": "5.23.0",
|
2021-11-01 20:05:00 +03:00
|
|
|
"babel-loader": "^8.2.3",
|
2021-12-02 03:20:51 +03:00
|
|
|
"babel-plugin-styled-components": "^2.0.2",
|
2021-05-25 01:40:50 +03:00
|
|
|
"babel-preset-env": "^1.7.0",
|
2021-12-02 16:49:13 +03:00
|
|
|
"chalk": "^5.0.0",
|
2021-11-23 06:30:57 +03:00
|
|
|
"change-case": "^4.1.2",
|
2021-11-01 20:05:00 +03:00
|
|
|
"commander": "^8.3.0",
|
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",
|
2020-10-19 16:24:09 +03:00
|
|
|
"dedent": "^0.7.0",
|
2021-05-19 20:32:47 +03:00
|
|
|
"domwaiter": "^1.3.0",
|
2022-03-18 18:39:10 +03:00
|
|
|
"eslint": "8.11.0",
|
2021-06-09 06:44:43 +03:00
|
|
|
"eslint-config-prettier": "^8.3.0",
|
2022-05-20 01:00:42 +03:00
|
|
|
"eslint-config-standard": "^17.0.0",
|
2022-01-26 20:24:27 +03:00
|
|
|
"eslint-plugin-import": "^2.25.4",
|
2021-11-17 19:57:51 +03:00
|
|
|
"eslint-plugin-jsx-a11y": "^6.5.1",
|
2020-12-03 01:10:47 +03:00
|
|
|
"eslint-plugin-node": "^11.1.0",
|
2022-01-04 21:05:53 +03:00
|
|
|
"eslint-plugin-promise": "^6.0.0",
|
2020-09-27 15:10:11 +03:00
|
|
|
"event-to-promise": "^0.8.0",
|
2021-11-04 16:59:17 +03:00
|
|
|
"git-diff": "^2.0.6",
|
2022-04-15 19:31:01 +03:00
|
|
|
"glob": "^8.0.1",
|
2022-02-02 10:14:36 +03:00
|
|
|
"graphql": "^16.3.0",
|
2020-12-03 01:10:47 +03:00
|
|
|
"http-status-code": "^2.1.0",
|
2021-11-01 20:05:00 +03:00
|
|
|
"husky": "^7.0.4",
|
2020-09-27 15:10:11 +03:00
|
|
|
"japanese-characters": "^1.1.0",
|
2022-01-26 22:15:22 +03:00
|
|
|
"jest": "^27.4.7",
|
2022-03-19 00:46:07 +03:00
|
|
|
"jest-environment-puppeteer": "5.0.4",
|
2022-02-25 19:49:27 +03:00
|
|
|
"jest-fail-on-console": "^2.2.3",
|
2021-05-19 20:32:47 +03:00
|
|
|
"jest-github-actions-reporter": "^1.0.3",
|
2020-09-27 15:10:11 +03:00
|
|
|
"jest-slow-test-reporter": "^1.0.0",
|
2022-05-19 16:36:53 +03:00
|
|
|
"kill-port": "2.0.0",
|
2022-01-08 02:24:06 +03:00
|
|
|
"linkinator": "^3.0.3",
|
2022-02-03 02:54:29 +03:00
|
|
|
"lint-staged": "^12.3.3",
|
2020-09-27 15:10:11 +03:00
|
|
|
"make-promises-safe": "^5.1.0",
|
2022-02-23 02:17:24 +03:00
|
|
|
"minimatch": "^5.0.0",
|
2021-05-25 23:44:19 +03:00
|
|
|
"mkdirp": "^1.0.4",
|
2021-05-19 20:32:47 +03:00
|
|
|
"mockdate": "^3.0.5",
|
2022-01-24 23:47:16 +03:00
|
|
|
"nock": "^13.2.2",
|
2022-05-20 00:50:03 +03:00
|
|
|
"nodemon": "2.0.16",
|
2022-03-07 20:45:16 +03:00
|
|
|
"npm-merge-driver-install": "^3.0.0",
|
2022-02-02 09:28:57 +03:00
|
|
|
"postcss": "^8.4.6",
|
2022-02-02 10:50:02 +03:00
|
|
|
"prettier": "^2.5.1",
|
2021-05-19 20:32:47 +03:00
|
|
|
"replace": "^1.2.1",
|
2021-05-25 23:44:19 +03:00
|
|
|
"rimraf": "^3.0.2",
|
2022-02-03 02:00:14 +03:00
|
|
|
"robots-parser": "^3.0.0",
|
2022-01-26 22:05:46 +03:00
|
|
|
"sass": "^1.49.0",
|
2021-09-14 02:31:43 +03:00
|
|
|
"start-server-and-test": "^1.14.0",
|
|
|
|
"strip-ansi": "^7.0.1",
|
2022-02-04 02:52:00 +03:00
|
|
|
"supertest": "^6.2.2",
|
2022-06-03 18:17:12 +03:00
|
|
|
"tough-cookie": "4.0.0",
|
2022-04-11 19:12:59 +03:00
|
|
|
"typescript": "^4.5.5"
|
2021-05-25 01:40:50 +03:00
|
|
|
},
|
2021-07-14 23:49:18 +03:00
|
|
|
"engines": {
|
2022-04-12 02:54:06 +03:00
|
|
|
"node": ">=16.x"
|
2021-07-14 23:49:18 +03:00
|
|
|
},
|
|
|
|
"exports": "./server.mjs",
|
|
|
|
"license": "(MIT AND CC-BY-4.0)",
|
|
|
|
"name": "docs.github.com",
|
2021-05-25 01:40:50 +03:00
|
|
|
"optionalDependencies": {
|
2022-01-31 21:30:38 +03:00
|
|
|
"bottleneck": "^2.19.5",
|
2021-08-25 23:45:51 +03:00
|
|
|
"esm": "^3.2.25",
|
2022-01-26 22:50:01 +03:00
|
|
|
"image-size": "^1.0.0",
|
2021-08-02 22:01:38 +03:00
|
|
|
"jest-puppeteer": "^5.0.4",
|
2021-05-25 01:40:50 +03:00
|
|
|
"jimp": "^0.16.1",
|
2021-08-02 22:01:38 +03:00
|
|
|
"pa11y-ci": "^2.4.2",
|
2021-05-25 01:40:50 +03:00
|
|
|
"puppeteer": "^9.1.1",
|
2022-05-12 17:51:40 +03:00
|
|
|
"website-scraper": "^5.0.0"
|
2020-09-27 15:10:11 +03:00
|
|
|
},
|
2021-07-14 23:49:18 +03:00
|
|
|
"private": true,
|
|
|
|
"repository": "https://github.com/github/docs",
|
2020-09-27 15:10:11 +03:00
|
|
|
"scripts": {
|
2022-03-19 00:46:07 +03:00
|
|
|
"browser-test": "cross-env BROWSER=1 NODE_OPTIONS=--experimental-vm-modules jest tests/browser/browser.js",
|
2021-08-23 22:07:54 +03:00
|
|
|
"build": "next build",
|
2021-07-14 23:49:18 +03:00
|
|
|
"debug": "cross-env NODE_ENV=development ENABLED_LANGUAGES='en,ja' nodemon --inspect server.mjs",
|
|
|
|
"dev": "npm start",
|
2021-07-15 00:35:01 +03:00
|
|
|
"lint": "eslint '**/*.{js,mjs,ts,tsx}'",
|
2021-11-23 21:46:04 +03:00
|
|
|
"lint-translation": "cross-env NODE_OPTIONS=--experimental-vm-modules TEST_TRANSLATION=true jest tests/linting/lint-files.js",
|
2021-07-14 23:49:18 +03:00
|
|
|
"pa11y-ci": "pa11y-ci",
|
|
|
|
"pa11y-test": "start-server-and-test browser-test-server 4001 pa11y-ci",
|
2021-07-15 19:41:25 +03:00
|
|
|
"prepare": "husky install",
|
|
|
|
"prettier": "prettier -w \"**/*.{ts,tsx,js,mjs,scss,yml,yaml}\"",
|
2021-12-08 19:11:52 +03:00
|
|
|
"prettier-check": "prettier -c \"**/*.{ts,tsx,js,mjs,scss,yml,yaml}\"",
|
2021-07-14 23:49:18 +03:00
|
|
|
"prevent-pushes-to-main": "node script/prevent-pushes-to-main.js",
|
|
|
|
"rest-dev": "script/rest/update-files.js && npm run dev",
|
2022-05-31 22:09:29 +03:00
|
|
|
"show-action-deps": "echo 'Action Dependencies:' && rg '^[\\s|-]*(uses:.*)$' .github -I -N --no-heading -r '$1$2' | sort | uniq | cut -c 7-",
|
2021-10-20 22:22:16 +03:00
|
|
|
"start": "cross-env NODE_ENV=development ENABLED_LANGUAGES='en,ja' nodemon server.mjs",
|
2021-07-14 23:49:18 +03:00
|
|
|
"start-all-languages": "cross-env NODE_ENV=development nodemon server.mjs",
|
2021-11-10 22:11:28 +03:00
|
|
|
"sync-search": "cross-env NODE_OPTIONS='--max_old_space_size=8192' start-server-and-test sync-search-server 4002 sync-search-indices",
|
2021-07-14 23:49:18 +03:00
|
|
|
"sync-search-ghes-release": "cross-env GHES_RELEASE=1 start-server-and-test sync-search-server 4002 sync-search-indices",
|
2021-01-20 18:37:42 +03:00
|
|
|
"sync-search-indices": "script/sync-search-indices.js",
|
2022-02-04 00:44:03 +03:00
|
|
|
"sync-search-server": "cross-env NODE_ENV=production PORT=4002 node server.mjs",
|
2021-11-05 00:27:22 +03:00
|
|
|
"translation-check": "start-server-and-test translation-check-server 4002 translation-check-test",
|
|
|
|
"translation-check-server": "cross-env NODE_ENV=test PORT=4002 node server.mjs",
|
|
|
|
"translation-check-test": "script/i18n/test-html-pages.js",
|
2022-03-11 00:25:53 +03:00
|
|
|
"test": "cross-env NODE_OPTIONS='--max_old_space_size=4096 --experimental-vm-modules' jest --logHeapUsage",
|
2021-11-10 22:00:34 +03:00
|
|
|
"test-watch": "cross-env NODE_OPTIONS=--experimental-vm-modules jest --watch --notify --notifyMode=change --coverage",
|
|
|
|
"tsc": "tsc --noEmit"
|
2021-07-15 19:41:25 +03:00
|
|
|
},
|
|
|
|
"lint-staged": {
|
|
|
|
"*.{js,mjs,ts,tsx}": "eslint --cache --fix",
|
|
|
|
"*.{js,mjs,scss,ts,tsx,yml,yaml}": "prettier --write"
|
2021-07-14 23:49:18 +03:00
|
|
|
}
|
2020-12-09 20:40:58 +03:00
|
|
|
}
|