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)",
|
2020-09-27 15:10:11 +03:00
|
|
|
"dependencies": {
|
2020-12-03 01:13:08 +03:00
|
|
|
"@babel/core": "^7.12.9",
|
|
|
|
"@babel/plugin-proposal-class-properties": "^7.12.1",
|
|
|
|
"@babel/plugin-syntax-class-properties": "^7.12.1",
|
|
|
|
"@babel/plugin-transform-modules-amd": "^7.12.1",
|
|
|
|
"@babel/plugin-transform-modules-commonjs": "^7.12.1",
|
|
|
|
"@babel/plugin-transform-react-jsx": "^7.12.7",
|
2020-09-27 15:10:11 +03:00
|
|
|
"@babel/plugin-transform-runtime": "^7.11.0",
|
2020-12-03 01:13:08 +03:00
|
|
|
"@babel/preset-env": "^7.12.7",
|
|
|
|
"@babel/preset-react": "^7.12.7",
|
2020-09-27 15:10:11 +03:00
|
|
|
"@babel/runtime": "^7.11.2",
|
2021-02-10 23:28:41 +03:00
|
|
|
"@github-docs/frontmatter": "^1.3.1",
|
2020-12-03 01:10:47 +03:00
|
|
|
"@graphql-inspector/core": "^2.3.0",
|
|
|
|
"@graphql-tools/load": "^6.2.5",
|
2020-09-27 15:10:11 +03:00
|
|
|
"@octokit/rest": "^16.38.1",
|
|
|
|
"@primer/css": "^15.1.0",
|
2020-10-02 02:43:01 +03:00
|
|
|
"@primer/octicons": "^11.0.0",
|
2020-09-27 15:10:11 +03:00
|
|
|
"algoliasearch": "^3.35.1",
|
|
|
|
"babel-loader": "^8.1.0",
|
2020-12-03 01:13:08 +03:00
|
|
|
"babel-preset-env": "^1.7.0",
|
2020-09-27 15:10:11 +03:00
|
|
|
"browser-date-formatter": "^3.0.3",
|
|
|
|
"change-case": "^3.1.0",
|
|
|
|
"cheerio": "^1.0.0-rc.3",
|
|
|
|
"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",
|
|
|
|
"copy-webpack-plugin": "^6.0.3",
|
|
|
|
"cors": "^2.8.5",
|
|
|
|
"cross-env": "^7.0.2",
|
2020-12-03 01:13:08 +03:00
|
|
|
"css-loader": "^4.3.0",
|
2020-09-27 15:10:11 +03:00
|
|
|
"csurf": "^1.11.0",
|
2020-12-03 01:13:08 +03:00
|
|
|
"directory-tree": "^2.2.5",
|
2020-09-27 15:10:11 +03:00
|
|
|
"dotenv": "^8.2.0",
|
|
|
|
"express": "^4.17.1",
|
|
|
|
"express-rate-limit": "^5.1.3",
|
|
|
|
"flat": "^5.0.0",
|
|
|
|
"github-slugger": "^1.2.1",
|
|
|
|
"got": "^9.6.0",
|
2021-02-10 23:28:41 +03:00
|
|
|
"gray-matter": "^4.0.1",
|
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",
|
2020-09-27 15:10:11 +03:00
|
|
|
"helmet": "^3.21.2",
|
2021-01-29 01:06:19 +03:00
|
|
|
"highlightjs-graphql": "^1.0.2",
|
2020-12-03 01:10:47 +03:00
|
|
|
"hot-shots": "^8.2.0",
|
2020-09-27 15:10:11 +03:00
|
|
|
"html-entities": "^1.2.1",
|
|
|
|
"imurmurhash": "^0.1.4",
|
2021-01-07 00:30:51 +03:00
|
|
|
"ioredis": "^4.19.4",
|
|
|
|
"ioredis-mock": "^5.2.0",
|
2020-09-27 15:10:11 +03:00
|
|
|
"is-url": "^1.2.4",
|
|
|
|
"js-cookie": "^2.2.1",
|
|
|
|
"js-yaml": "^3.14.0",
|
2021-01-12 18:02:59 +03:00
|
|
|
"linkinator": "^2.13.1",
|
2021-02-08 20:58:51 +03:00
|
|
|
"liquidjs": "^9.22.1",
|
2021-02-10 23:28:41 +03:00
|
|
|
"lodash": "^4.17.19",
|
2021-01-28 22:38:22 +03:00
|
|
|
"lunr": "^2.3.9",
|
|
|
|
"lunr-languages": "^1.4.0",
|
2021-01-26 20:45:23 +03:00
|
|
|
"mdast-util-from-markdown": "^0.8.4",
|
2020-09-27 15:10:11 +03:00
|
|
|
"mini-css-extract-plugin": "^0.9.0",
|
|
|
|
"mkdirp": "^1.0.3",
|
|
|
|
"morgan": "^1.9.1",
|
|
|
|
"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",
|
2020-12-03 01:10:47 +03:00
|
|
|
"rate-limit-redis": "^2.0.0",
|
2020-12-03 01:13:08 +03:00
|
|
|
"react": "^17.0.1",
|
|
|
|
"react-dom": "^17.0.1",
|
2020-09-27 15:10:11 +03:00
|
|
|
"readline-sync": "^1.4.10",
|
2021-01-29 01:06:19 +03:00
|
|
|
"rehype-autolink-headings": "^2.0.5",
|
|
|
|
"rehype-highlight": "^3.1.0",
|
|
|
|
"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",
|
2020-12-03 01:10:47 +03:00
|
|
|
"resolve-url-loader": "^3.1.2",
|
2020-09-27 15:10:11 +03:00
|
|
|
"rimraf": "^3.0.0",
|
|
|
|
"sass": "^1.26.3",
|
|
|
|
"sass-loader": "^9.0.2",
|
|
|
|
"search-with-your-keyboard": "1.1.0",
|
|
|
|
"semver": "^5.7.1",
|
|
|
|
"slash": "^3.0.0",
|
2020-12-03 01:10:47 +03:00
|
|
|
"strip-html-comments": "^1.0.0",
|
2020-09-27 15:10:11 +03:00
|
|
|
"style-loader": "^1.2.1",
|
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",
|
2020-09-27 15:10:11 +03:00
|
|
|
"uuid": "^8.3.0",
|
|
|
|
"walk-sync": "^1.1.4",
|
|
|
|
"webpack": "^4.44.0",
|
|
|
|
"webpack-cli": "^3.3.12"
|
|
|
|
},
|
|
|
|
"devDependencies": {
|
2020-12-03 01:10:47 +03:00
|
|
|
"@actions/core": "^1.2.6",
|
2020-09-27 15:10:11 +03:00
|
|
|
"ajv": "^6.11.0",
|
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",
|
|
|
|
"aws-sdk": "^2.610.0",
|
2020-12-03 01:10:47 +03:00
|
|
|
"babel-eslint": "^10.1.0",
|
2020-09-27 15:10:11 +03:00
|
|
|
"chalk": "^4.0.0",
|
2020-12-03 01:10:47 +03:00
|
|
|
"commander": "^6.2.0",
|
2020-09-27 15:10:11 +03:00
|
|
|
"count-array-values": "^1.2.1",
|
|
|
|
"csp-parse": "0.0.2",
|
|
|
|
"csv-parse": "^4.8.8",
|
|
|
|
"csv-parser": "^2.3.3",
|
2020-10-19 16:24:09 +03:00
|
|
|
"dedent": "^0.7.0",
|
2020-09-27 15:10:11 +03:00
|
|
|
"del": "^4.1.1",
|
|
|
|
"dependency-check": "^4.1.0",
|
|
|
|
"domwaiter": "^1.1.0",
|
2020-12-03 01:10:47 +03:00
|
|
|
"eslint": "^7.13.0",
|
|
|
|
"eslint-config-standard": "^16.0.1",
|
|
|
|
"eslint-plugin-import": "^2.22.1",
|
|
|
|
"eslint-plugin-node": "^11.1.0",
|
|
|
|
"eslint-plugin-promise": "^4.2.1",
|
2020-09-27 15:10:11 +03:00
|
|
|
"event-to-promise": "^0.8.0",
|
2020-12-03 01:10:47 +03:00
|
|
|
"friendly-errors-webpack-plugin": "^1.7.0",
|
2020-09-27 15:10:11 +03:00
|
|
|
"graphql": "^14.5.8",
|
|
|
|
"heroku-client": "^3.1.0",
|
2020-12-03 01:10:47 +03:00
|
|
|
"http-status-code": "^2.1.0",
|
2020-09-27 15:10:11 +03:00
|
|
|
"husky": "^4.2.1",
|
|
|
|
"image-size": "^0.7.4",
|
|
|
|
"japanese-characters": "^1.1.0",
|
2020-12-03 01:10:47 +03:00
|
|
|
"javascript-stringify": "^2.0.1",
|
2020-09-27 15:10:11 +03:00
|
|
|
"jest": "^26.0.1",
|
|
|
|
"jest-expect-message": "^1.0.2",
|
|
|
|
"jest-github-actions-reporter": "^1.0.2",
|
|
|
|
"jest-puppeteer": "^4.4.0",
|
|
|
|
"jest-silent-reporter": "^0.2.1",
|
|
|
|
"jest-slow-test-reporter": "^1.0.0",
|
|
|
|
"make-promises-safe": "^5.1.0",
|
|
|
|
"mime": "^2.4.4",
|
|
|
|
"mock-express-response": "^0.2.2",
|
2020-12-03 01:10:47 +03:00
|
|
|
"mockdate": "^3.0.2",
|
2020-10-19 16:24:09 +03:00
|
|
|
"nock": "^13.0.4",
|
2020-09-27 15:10:11 +03:00
|
|
|
"nodemon": "^2.0.4",
|
2020-12-03 01:10:47 +03:00
|
|
|
"npm-merge-driver-install": "^2.0.0",
|
|
|
|
"object-hash": "^2.0.1",
|
|
|
|
"pa11y-ci": "^2.4.0",
|
|
|
|
"prettier": "^2.1.2",
|
|
|
|
"puppeteer": "^5.5.0",
|
2020-09-27 15:10:11 +03:00
|
|
|
"replace": "^1.2.0",
|
|
|
|
"revalidator": "^0.3.1",
|
|
|
|
"robots-parser": "^2.1.1",
|
2021-02-07 02:57:14 +03:00
|
|
|
"start-server-and-test": "^1.12.0",
|
2020-09-27 15:10:11 +03:00
|
|
|
"supertest": "^4.0.2",
|
2020-12-03 01:10:47 +03:00
|
|
|
"url-template": "^2.0.8",
|
2020-09-27 15:10:11 +03:00
|
|
|
"webpack-dev-middleware": "^3.7.2",
|
2020-10-19 16:24:09 +03:00
|
|
|
"website-scraper": "^4.2.0"
|
2020-09-27 15:10:11 +03:00
|
|
|
},
|
|
|
|
"scripts": {
|
2021-01-30 00:42:35 +03:00
|
|
|
"start": "cross-env NODE_ENV=development ENABLED_LANGUAGES='en,cn' 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",
|
2020-09-27 15:10:11 +03:00
|
|
|
"build": "cross-env NODE_ENV=production npx webpack --mode production",
|
|
|
|
"start-all-languages": "cross-env NODE_ENV=development nodemon server.js",
|
2020-12-03 01:10:47 +03:00
|
|
|
"lint": "eslint --fix . && prettier -w \"**/*.{yml,yaml}\"",
|
2021-02-01 19:59:33 +03:00
|
|
|
"lint-translation": "TEST_TRANSLATION=true jest content/lint-files",
|
2020-12-03 01:10:47 +03:00
|
|
|
"test": "jest && eslint . && prettier -c \"**/*.{yml,yaml}\" && npm run check-deps",
|
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",
|
|
|
|
"check-deps": "node script/check-deps.js",
|
|
|
|
"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": {
|
2020-10-06 03:02:55 +03:00
|
|
|
"node": "12 - 14"
|
2020-09-27 15:10:11 +03:00
|
|
|
},
|
|
|
|
"repository": "https://github.com/github/docs",
|
|
|
|
"husky": {
|
|
|
|
"hooks": {
|
|
|
|
"pre-commit": "node script/prevent-translation-commits.js",
|
|
|
|
"pre-push": "npm run prevent-pushes-to-main"
|
|
|
|
}
|
|
|
|
}
|
2020-12-09 20:40:58 +03:00
|
|
|
}
|