2020-09-27 15:10:11 +03:00
|
|
|
{
|
2023-06-06 00:44:20 +03:00
|
|
|
"name": "docs.github.com",
|
|
|
|
"private": true,
|
|
|
|
"repository": "https://github.com/github/docs",
|
|
|
|
"license": "(MIT AND CC-BY-4.0)",
|
2020-10-01 22:38:10 +03:00
|
|
|
"author": {
|
|
|
|
"name": "GitHub",
|
2023-06-06 00:44:20 +03:00
|
|
|
"email": "opensource+docs@github.com",
|
2020-10-01 22:38:10 +03:00
|
|
|
"url": "https://github.com/github/docs"
|
|
|
|
},
|
2023-06-06 00:44:20 +03:00
|
|
|
"type": "module",
|
|
|
|
"imports": {
|
|
|
|
"#src/*": {
|
|
|
|
"default": "./src/*"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"exports": "./server.js",
|
|
|
|
"scripts": {
|
|
|
|
"build": "next build",
|
|
|
|
"debug": "cross-env NODE_ENV=development ENABLED_LANGUAGES=en nodemon --inspect server.js",
|
|
|
|
"dev": "cross-env npm start",
|
|
|
|
"fixture-dev": "cross-env ROOT=tests/fixtures npm start",
|
|
|
|
"fixture-test": "cross-env ROOT=tests/fixtures npm test -- tests/rendering-fixtures",
|
|
|
|
"index-test-fixtures": "node src/search/scripts/index-elasticsearch.js -l en -l ja -V ghae -V dotcom --index-prefix tests -- src/search/tests/fixtures/search-indexes",
|
|
|
|
"lint": "eslint '**/*.{js,mjs,ts,tsx}'",
|
2023-09-22 05:08:27 +03:00
|
|
|
"lint-content": "src/content-linter/scripts/lint-content.js",
|
2023-06-06 00:44:20 +03:00
|
|
|
"lint-translation": "cross-env NODE_OPTIONS=--experimental-vm-modules jest src/content-linter/tests/lint-files.js",
|
|
|
|
"openapi-docs": "src/rest/docs.js",
|
|
|
|
"playwright-test": "playwright test --project=\"Google Chrome\"",
|
|
|
|
"prepare": "husky install",
|
|
|
|
"prettier": "prettier -w \"**/*.{ts,tsx,js,mjs,scss,yml,yaml}\"",
|
|
|
|
"prettier-check": "prettier -c \"**/*.{ts,tsx,js,mjs,scss,yml,yaml}\"",
|
|
|
|
"prevent-pushes-to-main": "node script/prevent-pushes-to-main.js",
|
|
|
|
"rest-dev": "src/rest/scripts/update-files.js",
|
|
|
|
"show-action-deps": "echo 'Action Dependencies:' && rg '^[\\s|-]*(uses:.*)$' .github -I -N --no-heading -r '$1$2' | sort | uniq | cut -c 7-",
|
|
|
|
"prestart": "node script/cmp-files.js package-lock.json .installed.package-lock.json || npm install && cp package-lock.json .installed.package-lock.json",
|
|
|
|
"start": "cross-env NODE_ENV=development ENABLED_LANGUAGES=en nodemon server.js",
|
|
|
|
"start-all-languages": "cross-env NODE_ENV=development nodemon server.js",
|
|
|
|
"start-for-playwright": "cross-env ROOT=tests/fixtures TRANSLATIONS_FIXTURE_ROOT=tests/fixtures/translations ENABLED_LANGUAGES=en,ja NODE_ENV=test node server.js",
|
|
|
|
"sync-rest": "src/rest/scripts/update-files.js",
|
|
|
|
"sync-search": "cross-env NODE_OPTIONS='--max_old_space_size=8192' start-server-and-test sync-search-server 4002 sync-search-indices",
|
|
|
|
"sync-search-ghes-release": "cross-env GHES_RELEASE=1 start-server-and-test sync-search-server 4002 sync-search-indices",
|
|
|
|
"sync-search-indices": "src/search/scripts/sync-search-indices.js",
|
|
|
|
"sync-search-server": "cross-env NODE_ENV=production PORT=4002 MINIMAL_RENDER=true CHANGELOG_DISABLED=true node server.js",
|
|
|
|
"sync-webhooks": "src/rest/scripts/update-files.js -o webhooks",
|
|
|
|
"test": "cross-env NODE_OPTIONS='--max_old_space_size=4096 --experimental-vm-modules' jest --logHeapUsage",
|
|
|
|
"test-watch": "cross-env NODE_OPTIONS=--experimental-vm-modules jest --watch --notify --notifyMode=change --coverage",
|
|
|
|
"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.js",
|
|
|
|
"translation-check-test": "script/i18n/test-html-pages.js",
|
|
|
|
"tsc": "tsc --noEmit"
|
|
|
|
},
|
|
|
|
"lint-staged": {
|
|
|
|
"*.{js,mjs,ts,tsx}": "eslint --cache --fix",
|
2023-07-25 22:00:50 +03:00
|
|
|
"*.{js,mjs,scss,ts,tsx,yml,yaml}": "prettier --write",
|
2023-09-21 21:20:37 +03:00
|
|
|
"{content,data}/**/*.md": "npm run lint-content -- --local-errors-only --paths"
|
2023-06-06 00:44:20 +03:00
|
|
|
},
|
2020-09-27 15:10:11 +03:00
|
|
|
"dependencies": {
|
2022-09-06 14:50:40 +03:00
|
|
|
"@elastic/elasticsearch": "7.11.0",
|
2023-03-29 21:44:02 +03:00
|
|
|
"@github/failbot": "0.8.3",
|
2023-08-16 20:32:56 +03:00
|
|
|
"@primer/behaviors": "^1.3.5",
|
|
|
|
"@primer/css": "^21.0.7",
|
|
|
|
"@primer/octicons": "^19.5.0",
|
|
|
|
"@primer/octicons-react": "^19.5.0",
|
2023-09-07 00:29:26 +03:00
|
|
|
"@primer/react": "35.29.0",
|
2021-06-02 01:45:02 +03:00
|
|
|
"accept-language-parser": "^1.5.0",
|
2022-06-15 21:10:09 +03:00
|
|
|
"ajv": "^8.11.0",
|
2023-03-03 21:20:50 +03:00
|
|
|
"ajv-errors": "^3.0.0",
|
2021-09-14 02:31:43 +03:00
|
|
|
"ajv-formats": "^2.1.1",
|
2022-09-27 21:38:12 +03:00
|
|
|
"bottleneck": "2.19.5",
|
2023-05-12 02:36:51 +03:00
|
|
|
"boxen": "7.1.0",
|
2022-06-17 19:34:56 +03:00
|
|
|
"cheerio": "^1.0.0-rc.11",
|
2023-03-29 21:44:02 +03:00
|
|
|
"cheerio-to-text": "0.2.3",
|
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",
|
2022-06-15 21:10:09 +03:00
|
|
|
"dayjs": "^1.11.3",
|
|
|
|
"dotenv": "^16.0.1",
|
|
|
|
"express": "^4.18.1",
|
2023-09-13 19:53:17 +03:00
|
|
|
"express-rate-limit": "7.0.0",
|
2021-08-02 22:01:38 +03:00
|
|
|
"express-timeout-handler": "^2.2.2",
|
2023-02-07 20:22:44 +03:00
|
|
|
"fastest-levenshtein": "1.0.16",
|
2023-05-10 14:49:06 +03:00
|
|
|
"file-type": "18.3.0",
|
2023-09-20 17:07:45 +03:00
|
|
|
"flat": "^6.0.1",
|
2022-11-03 23:44:02 +03:00
|
|
|
"github-slugger": "^2.0.0",
|
2023-04-12 22:13:56 +03:00
|
|
|
"glob": "10.0.0",
|
2023-05-31 14:37:49 +03:00
|
|
|
"got": "^13.0.0",
|
2021-05-19 20:32:47 +03:00
|
|
|
"gray-matter": "^4.0.3",
|
2023-08-09 18:23:03 +03:00
|
|
|
"hast-util-from-parse5": "^8.0.1",
|
2021-08-19 22:57:39 +03:00
|
|
|
"hast-util-to-string": "^2.0.0",
|
2023-08-02 18:16:08 +03:00
|
|
|
"hastscript": "^8.0.0",
|
2023-05-11 15:03:36 +03:00
|
|
|
"helmet": "^7.0.0",
|
2023-01-11 20:28:55 +03:00
|
|
|
"highlight.js": "11.7.0",
|
2022-03-05 00:24:46 +03:00
|
|
|
"highlightjs-curl": "^1.3.0",
|
2023-02-08 21:58:17 +03:00
|
|
|
"hot-shots": "^10.0.0",
|
2022-06-15 21:10:09 +03:00
|
|
|
"html-entities": "^2.3.3",
|
2022-09-30 00:50:38 +03:00
|
|
|
"http-proxy-middleware": "2.0.6",
|
2020-09-27 15:10:11 +03:00
|
|
|
"imurmurhash": "^0.1.4",
|
2023-03-08 18:41:49 +03:00
|
|
|
"is-svg": "5.0.0",
|
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",
|
2023-03-29 21:50:19 +03:00
|
|
|
"liquidjs": "^10.7.0",
|
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",
|
2023-04-25 21:48:21 +03:00
|
|
|
"lowdb": "6.0.0",
|
2023-09-22 14:58:32 +03:00
|
|
|
"lowlight": "3.0.0",
|
2023-07-10 22:33:06 +03:00
|
|
|
"mdast-util-from-markdown": "^2.0.0",
|
2023-08-09 18:15:18 +03:00
|
|
|
"mdast-util-to-hast": "^13.0.1",
|
2023-07-10 23:12:46 +03:00
|
|
|
"mdast-util-to-markdown": "2.0.0",
|
2023-07-10 22:59:32 +03:00
|
|
|
"mdast-util-to-string": "^4.0.0",
|
2021-05-19 20:32:47 +03:00
|
|
|
"morgan": "^1.10.0",
|
2023-08-09 17:30:26 +03:00
|
|
|
"next": "13.4.12",
|
2023-08-02 18:28:54 +03:00
|
|
|
"ora": "^7.0.1",
|
2023-01-04 00:07:25 +03:00
|
|
|
"parse5": "7.1.2",
|
2020-09-29 18:51:48 +03:00
|
|
|
"port-used": "^2.0.8",
|
2023-08-09 17:30:26 +03:00
|
|
|
"react": "18.2.0",
|
|
|
|
"react-dom": "18.2.0",
|
2023-09-22 14:58:32 +03:00
|
|
|
"rehype-highlight": "^7.0.0",
|
|
|
|
"rehype-raw": "^7.0.0",
|
|
|
|
"rehype-slug": "^6.0.0",
|
|
|
|
"rehype-stringify": "^10.0.0",
|
2021-01-29 01:06:19 +03:00
|
|
|
"remark-gemoji-to-emoji": "^1.1.0",
|
2023-09-22 14:58:32 +03:00
|
|
|
"remark-gfm": "^4.0.0",
|
|
|
|
"remark-parse": "^11.0.0",
|
|
|
|
"remark-rehype": "^11.0.0",
|
2023-04-12 17:27:11 +03:00
|
|
|
"rss-parser": "^3.13.0",
|
2021-06-11 21:21:09 +03:00
|
|
|
"scroll-anchoring": "^0.1.0",
|
2023-08-25 18:28:43 +03:00
|
|
|
"semver": "^7.5.4",
|
2023-07-10 22:35:02 +03:00
|
|
|
"sharp": "0.32.1",
|
2022-09-28 18:37:05 +03:00
|
|
|
"slash": "^5.0.0",
|
2020-12-03 01:10:47 +03:00
|
|
|
"strip-html-comments": "^1.0.0",
|
2022-06-15 21:10:09 +03:00
|
|
|
"styled-components": "^5.3.5",
|
2023-09-25 19:59:22 +03:00
|
|
|
"swr": "^2.2.2",
|
2023-09-21 21:07:33 +03:00
|
|
|
"unified": "^11.0.3",
|
2023-07-10 22:45:33 +03:00
|
|
|
"unist-util-visit": "^5.0.0",
|
2022-04-11 19:12:59 +03:00
|
|
|
"url-template": "^3.0.0",
|
2021-08-02 22:01:38 +03:00
|
|
|
"walk-sync": "^3.0.0"
|
2020-09-27 15:10:11 +03:00
|
|
|
},
|
|
|
|
"devDependencies": {
|
2023-01-30 22:12:15 +03:00
|
|
|
"@actions/core": "^1.10.0",
|
2022-06-15 21:10:09 +03:00
|
|
|
"@actions/github": "^5.0.3",
|
2023-09-19 21:40:53 +03:00
|
|
|
"@axe-core/playwright": "^4.7.3",
|
2023-09-26 02:38:31 +03:00
|
|
|
"@github/markdownlint-github": "^0.4.1",
|
2023-06-29 20:10:55 +03:00
|
|
|
"@graphql-inspector/core": "^5.0.0",
|
2023-05-25 03:05:16 +03:00
|
|
|
"@graphql-tools/load": "^8.0.0",
|
2023-09-14 18:15:15 +03:00
|
|
|
"@jest/globals": "29.7.0",
|
2023-09-27 23:01:49 +03:00
|
|
|
"@octokit/rest": "^20.0.2",
|
2023-09-23 00:16:28 +03:00
|
|
|
"@playwright/test": "1.38.1",
|
2021-06-14 21:07:39 +03:00
|
|
|
"@types/imurmurhash": "^0.1.1",
|
2023-08-25 18:28:43 +03:00
|
|
|
"@types/js-cookie": "^3.0.3",
|
2023-09-14 18:15:15 +03:00
|
|
|
"@types/lodash": "^4.14.198",
|
2023-08-25 18:28:43 +03:00
|
|
|
"@types/react": "18.2.21",
|
|
|
|
"@types/react-dom": "^18.2.7",
|
2023-09-14 18:15:15 +03:00
|
|
|
"@typescript-eslint/eslint-plugin": "6.7.0",
|
|
|
|
"@typescript-eslint/parser": "6.7.0",
|
2022-06-15 21:10:09 +03:00
|
|
|
"chalk": "^5.0.1",
|
2021-11-23 06:30:57 +03:00
|
|
|
"change-case": "^4.1.2",
|
2023-06-22 23:20:03 +03:00
|
|
|
"commander": "^11.0.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",
|
2023-07-10 22:29:56 +03:00
|
|
|
"dedent": "^1.0.1",
|
2023-09-14 18:15:15 +03:00
|
|
|
"eslint": "8.49.0",
|
2023-08-09 23:44:24 +03:00
|
|
|
"eslint-config-prettier": "9.0.0",
|
2023-08-14 21:50:37 +03:00
|
|
|
"eslint-config-standard": "17.1.0",
|
2023-08-25 18:28:43 +03:00
|
|
|
"eslint-import-resolver-typescript": "^3.6.0",
|
|
|
|
"eslint-plugin-import": "2.28.1",
|
|
|
|
"eslint-plugin-jsx-a11y": "^6.7.1",
|
2023-09-14 18:15:15 +03:00
|
|
|
"eslint-plugin-n": "16.1.0",
|
2023-08-23 20:05:22 +03:00
|
|
|
"eslint-plugin-primer-react": "^4.0.1",
|
2023-08-14 21:50:37 +03:00
|
|
|
"eslint-plugin-promise": "6.1.1",
|
2020-09-27 15:10:11 +03:00
|
|
|
"event-to-promise": "^0.8.0",
|
2022-06-15 21:10:09 +03:00
|
|
|
"graphql": "^16.5.0",
|
2020-12-03 01:10:47 +03:00
|
|
|
"http-status-code": "^2.1.0",
|
2023-08-25 18:28:43 +03:00
|
|
|
"husky": "^8.0.3",
|
2023-09-14 18:15:15 +03:00
|
|
|
"jest": "29.7.0",
|
2022-11-30 19:26:58 +03:00
|
|
|
"jest-expect-message": "1.1.3",
|
2023-08-25 18:28:43 +03:00
|
|
|
"jest-fail-on-console": "^3.1.1",
|
2020-09-27 15:10:11 +03:00
|
|
|
"jest-slow-test-reporter": "^1.0.0",
|
2023-06-14 01:27:45 +03:00
|
|
|
"json-schema-merge-allof": "^0.8.1",
|
2023-01-09 19:29:57 +03:00
|
|
|
"kill-port": "2.0.1",
|
2023-08-25 18:28:43 +03:00
|
|
|
"lint-staged": "^14.0.1",
|
2023-06-02 23:10:15 +03:00
|
|
|
"markdownlint": "^0.28.2",
|
|
|
|
"markdownlint-rule-helpers": "^0.19.0",
|
2023-08-30 00:09:30 +03:00
|
|
|
"markdownlint-rule-search-replace": "^1.2.0",
|
2023-07-10 22:46:00 +03:00
|
|
|
"mdast-util-gfm-table": "^2.0.0",
|
2023-06-28 19:20:26 +03:00
|
|
|
"micromark-extension-gfm-table": "^2.0.0",
|
2023-04-12 22:34:37 +03:00
|
|
|
"mkdirp": "^3.0.0",
|
2021-05-19 20:32:47 +03:00
|
|
|
"mockdate": "^3.0.5",
|
2023-08-25 18:28:43 +03:00
|
|
|
"nock": "^13.3.3",
|
2023-07-10 22:55:04 +03:00
|
|
|
"nodemon": "3.0.1",
|
2022-03-07 20:45:16 +03:00
|
|
|
"npm-merge-driver-install": "^3.0.0",
|
2022-06-29 14:55:03 +03:00
|
|
|
"nth-check": "2.1.1",
|
2023-09-14 18:15:15 +03:00
|
|
|
"prettier": "^3.0.3",
|
2023-04-12 23:19:14 +03:00
|
|
|
"rimraf": "^5.0.0",
|
2022-02-03 02:00:14 +03:00
|
|
|
"robots-parser": "^3.0.0",
|
2022-06-15 21:10:09 +03:00
|
|
|
"sass": "^1.52.3",
|
2023-06-16 22:23:05 +03:00
|
|
|
"sentence-case": "^3.0.4",
|
2023-03-01 20:04:52 +03:00
|
|
|
"start-server-and-test": "^2.0.0",
|
2023-08-09 17:30:26 +03:00
|
|
|
"ts-jest": "29.1.1",
|
2023-08-25 18:28:43 +03:00
|
|
|
"typescript": "^5.2.2",
|
2023-07-10 22:40:15 +03:00
|
|
|
"unist-util-remove": "^4.0.0",
|
2023-07-10 22:55:06 +03:00
|
|
|
"unist-util-visit-parents": "6.0.1",
|
2023-05-01 18:57:38 +03:00
|
|
|
"website-scraper": "^5.3.1"
|
2021-05-25 01:40:50 +03:00
|
|
|
},
|
|
|
|
"optionalDependencies": {
|
2023-06-28 19:08:40 +03:00
|
|
|
"esm": "^3.2.25"
|
2020-09-27 15:10:11 +03:00
|
|
|
},
|
2023-06-06 00:44:20 +03:00
|
|
|
"engines": {
|
2023-09-20 00:33:34 +03:00
|
|
|
"node": "^18 || ^20"
|
2022-07-26 20:53:23 +03:00
|
|
|
},
|
2023-06-06 00:44:20 +03:00
|
|
|
"cacheDirectories": [
|
|
|
|
"node_modules",
|
|
|
|
".next/cache"
|
|
|
|
]
|
2020-12-09 20:40:58 +03:00
|
|
|
}
|