docs/package.json

226 строки
8.3 KiB
JSON
Исходник Обычный вид История

{
"name": "docs.github.com",
"private": true,
"repository": "https://github.com/github/docs",
"license": "(MIT AND CC-BY-4.0)",
"author": {
"name": "GitHub",
"email": "opensource+docs@github.com",
"url": "https://github.com/github/docs"
},
"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}'",
"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",
"*.{js,mjs,scss,ts,tsx,yml,yaml}": "prettier --write"
},
"dependencies": {
"@elastic/elasticsearch": "7.11.0",
"@github/failbot": "0.8.3",
"@primer/behaviors": "^1.3.3",
"@primer/css": "^21.0.1",
"@primer/octicons": "^19.1.0",
"@primer/octicons-react": "^19.1.0",
"@primer/react": "^35.25.1",
"accept-language-parser": "^1.5.0",
"ajv": "^8.11.0",
"ajv-errors": "^3.0.0",
"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",
"cheerio-to-text": "0.2.3",
"classnames": "^2.3.1",
"connect-datadog": "0.0.9",
"cookie-parser": "^1.4.6",
"cors": "^2.8.5",
"dayjs": "^1.11.3",
"dotenv": "^16.0.1",
"express": "^4.18.1",
"express-rate-limit": "6.7.0",
"express-timeout-handler": "^2.2.2",
"fastest-levenshtein": "1.0.16",
2023-05-10 14:49:06 +03:00
"file-type": "18.3.0",
"flat": "^5.0.2",
"github-slugger": "^2.0.0",
"glob": "10.0.0",
"got": "^13.0.0",
"gray-matter": "^4.0.3",
"hast-util-from-parse5": "^7.1.0",
"hast-util-to-string": "^2.0.0",
"hastscript": "^7.0.2",
"helmet": "^7.0.0",
2023-01-11 20:28:55 +03:00
"highlight.js": "11.7.0",
"highlightjs-curl": "^1.3.0",
"hot-shots": "^10.0.0",
"html-entities": "^2.3.3",
"http-proxy-middleware": "2.0.6",
"imurmurhash": "^0.1.4",
2023-03-08 18:41:49 +03:00
"is-svg": "5.0.0",
"javascript-stringify": "^2.1.0",
"js-cookie": "^3.0.1",
"js-yaml": "^4.1.0",
"liquidjs": "^10.7.0",
"lodash": "^4.17.21",
"lodash-es": "^4.17.21",
2023-04-25 21:48:21 +03:00
"lowdb": "6.0.0",
"mdast-util-from-markdown": "^1.2.0",
"mdast-util-to-hast": "^12.3.0",
"mdast-util-to-markdown": "1.5.0",
"mdast-util-to-string": "^3.1.0",
"morgan": "^1.10.0",
"msgpack5rpc": "^1.1.0",
2022-08-26 18:28:19 +03:00
"next": "12.2.4",
2023-01-04 00:07:25 +03:00
"parse5": "7.1.2",
"port-used": "^2.0.8",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"react-markdown": "^8.0.3",
"react-syntax-highlighter": "^15.5.0",
"rehype-highlight": "^6.0.0",
"rehype-raw": "^6.1.1",
"rehype-slug": "^5.0.1",
"rehype-stringify": "^9.0.3",
"remark-gemoji-to-emoji": "^1.1.0",
"remark-gfm": "^3.0.1",
"remark-parse": "^10.0.1",
"remark-parse-no-trim": "^8.0.4",
"remark-rehype": "^10.1.0",
"rss-parser": "^3.13.0",
"scroll-anchoring": "^0.1.0",
"semver": "^7.3.7",
2023-04-06 21:28:10 +03:00
"sharp": "0.32.0",
"slash": "^5.0.0",
"strip-html-comments": "^1.0.0",
"styled-components": "^5.3.5",
"swr": "^2.0.0",
"unified": "^10.1.2",
"unist-util-visit": "^4.1.0",
"url-template": "^3.0.0",
"walk-sync": "^3.0.0"
},
"devDependencies": {
2023-01-30 22:12:15 +03:00
"@actions/core": "^1.10.0",
"@actions/github": "^5.0.3",
2023-01-03 21:48:19 +03:00
"@babel/core": "7.20.7",
"@babel/eslint-parser": "^7.18.2",
"@babel/plugin-syntax-top-level-await": "^7.14.5",
"@babel/plugin-transform-runtime": "^7.18.5",
"@babel/preset-env": "^7.18.2",
"@graphql-inspector/core": "^4.0.3",
"@graphql-tools/load": "^8.0.0",
2023-03-16 00:56:18 +03:00
"@jest/globals": "29.5.0",
"@octokit/graphql": "5.0.4",
"@octokit/rest": "^19.0.4",
"@playwright/test": "1.35.0",
"@types/imurmurhash": "^0.1.1",
"@types/js-cookie": "^3.0.2",
"@types/lodash": "^4.14.182",
"@types/react": "17.0.38",
"@types/react-dom": "^18.0.5",
"@types/react-syntax-highlighter": "^15.5.2",
2023-04-17 19:51:12 +03:00
"@typescript-eslint/eslint-plugin": "5.58.0",
"@typescript-eslint/parser": "5.58.0",
"babel-loader": "^9.0.1",
"babel-plugin-styled-components": "^2.0.7",
Heroku dev deps (#19431) * fix: req.csrfToken doesn't always exist (e.g. 500 page) * feat: update dockerfile and add nextjs to build * fix: run linter * move @babel deps -> dev deps * move webpack looking things from deps -> dev deps * move pa11y-ci to optional dep * explicitly include optional deps for pa11y * allow heroku dev deps to be installed * fix: update postcss module * fix: update dockerfile build * tmp: disable renderReact * see if another deploy is slower/faster * move a few more packages to devDeps * upgrade to package-lock v2 * use dayjs instead of date-fns * move cross-env to devDeps * remove unused 'del' package * commit husky precommit hooks * add hrtime to clone-for-build.js * Revert "add hrtime to clone-for-build.js" This reverts commit 70ee647bacce833f4ed2f621f62c63c1d85e5413. * update babel/eslint * fix: remove unused plugin * try a .slugignore * fix: heroku-postbuild to use npm run build * fix: i cannot spell dereferenced * add .next/cache to heroku cacheDirectories * test cached build * remove aws-sdk, see what breaks * move jest-puppeteer to optional deps * fix: update browser-test.yml to use newer node version * move jimp to optional dependencies * move puppeteer to optional dependencies * fix: ci optional include * fix: bad copy pasta * remove previous react experiment * update tests/README.md with note about optional deps * bump node test version back to 14 * convert package-lock back to v1 * fix: use node 15.x to leverage npm optional deps * fix: optional dep install * test: see what happens with heroku/nodejs-typescript buildpack * back to heroku/nodejs buildpack * move jest to optional * revert jest move * remove .slugignore * cleanup dockerfile, move xlsx-population to optional, add comment about optional deps * Update Dockerfile Co-authored-by: James M. Greene <JamesMGreene@github.com> Co-authored-by: James M. Greene <JamesMGreene@github.com>
2021-05-25 01:40:50 +03:00
"babel-preset-env": "^1.7.0",
"chalk": "^5.0.1",
"change-case": "^4.1.2",
"commander": "^10.0.0",
Heroku dev deps (#19431) * fix: req.csrfToken doesn't always exist (e.g. 500 page) * feat: update dockerfile and add nextjs to build * fix: run linter * move @babel deps -> dev deps * move webpack looking things from deps -> dev deps * move pa11y-ci to optional dep * explicitly include optional deps for pa11y * allow heroku dev deps to be installed * fix: update postcss module * fix: update dockerfile build * tmp: disable renderReact * see if another deploy is slower/faster * move a few more packages to devDeps * upgrade to package-lock v2 * use dayjs instead of date-fns * move cross-env to devDeps * remove unused 'del' package * commit husky precommit hooks * add hrtime to clone-for-build.js * Revert "add hrtime to clone-for-build.js" This reverts commit 70ee647bacce833f4ed2f621f62c63c1d85e5413. * update babel/eslint * fix: remove unused plugin * try a .slugignore * fix: heroku-postbuild to use npm run build * fix: i cannot spell dereferenced * add .next/cache to heroku cacheDirectories * test cached build * remove aws-sdk, see what breaks * move jest-puppeteer to optional deps * fix: update browser-test.yml to use newer node version * move jimp to optional dependencies * move puppeteer to optional dependencies * fix: ci optional include * fix: bad copy pasta * remove previous react experiment * update tests/README.md with note about optional deps * bump node test version back to 14 * convert package-lock back to v1 * fix: use node 15.x to leverage npm optional deps * fix: optional dep install * test: see what happens with heroku/nodejs-typescript buildpack * back to heroku/nodejs buildpack * move jest to optional * revert jest move * remove .slugignore * cleanup dockerfile, move xlsx-population to optional, add comment about optional deps * Update Dockerfile Co-authored-by: James M. Greene <JamesMGreene@github.com> Co-authored-by: James M. Greene <JamesMGreene@github.com>
2021-05-25 01:40:50 +03:00
"cross-env": "^7.0.3",
"csp-parse": "0.0.2",
2020-10-19 16:24:09 +03:00
"dedent": "^0.7.0",
2023-04-17 19:51:12 +03:00
"eslint": "8.38.0",
"eslint-config-prettier": "^8.5.0",
"eslint-config-standard": "^17.0.0",
"eslint-import-resolver-typescript": "^3.5.5",
"eslint-plugin-import": "^2.27.5",
"eslint-plugin-jsx-a11y": "^6.5.1",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^6.0.0",
"event-to-promise": "^0.8.0",
"graphql": "^16.5.0",
"http-status-code": "^2.1.0",
"husky": "^8.0.1",
2023-03-16 00:56:18 +03:00
"jest": "29.5.0",
"jest-expect-message": "1.1.3",
"jest-fail-on-console": "^3.0.1",
"jest-github-actions-reporter": "^1.0.3",
"jest-slow-test-reporter": "^1.0.0",
"json-schema-merge-allof": "^0.8.1",
2023-01-09 19:29:57 +03:00
"kill-port": "2.0.1",
"lint-staged": "^13.0.1",
"make-promises-safe": "^5.1.0",
"markdownlint": "^0.28.2",
"markdownlint-rule-helpers": "^0.19.0",
"mdast-util-gfm-table": "^1.0.7",
"micromark-extension-gfm-table": "^1.0.5",
"mkdirp": "^3.0.0",
"mockdate": "^3.0.5",
"nock": "^13.2.7",
"nodemon": "2.0.22",
"npm-merge-driver-install": "^3.0.0",
"nth-check": "2.1.1",
"postcss": "^8.4.14",
"prettier": "^2.7.0",
"rimraf": "^5.0.0",
"robots-parser": "^3.0.0",
"sass": "^1.52.3",
"start-server-and-test": "^2.0.0",
"typescript": "^5.0.2",
"unist-util-remove": "^3.1.1",
"unist-util-visit-parents": "5.1.3",
2023-05-01 18:57:38 +03:00
"website-scraper": "^5.3.1"
Heroku dev deps (#19431) * fix: req.csrfToken doesn't always exist (e.g. 500 page) * feat: update dockerfile and add nextjs to build * fix: run linter * move @babel deps -> dev deps * move webpack looking things from deps -> dev deps * move pa11y-ci to optional dep * explicitly include optional deps for pa11y * allow heroku dev deps to be installed * fix: update postcss module * fix: update dockerfile build * tmp: disable renderReact * see if another deploy is slower/faster * move a few more packages to devDeps * upgrade to package-lock v2 * use dayjs instead of date-fns * move cross-env to devDeps * remove unused 'del' package * commit husky precommit hooks * add hrtime to clone-for-build.js * Revert "add hrtime to clone-for-build.js" This reverts commit 70ee647bacce833f4ed2f621f62c63c1d85e5413. * update babel/eslint * fix: remove unused plugin * try a .slugignore * fix: heroku-postbuild to use npm run build * fix: i cannot spell dereferenced * add .next/cache to heroku cacheDirectories * test cached build * remove aws-sdk, see what breaks * move jest-puppeteer to optional deps * fix: update browser-test.yml to use newer node version * move jimp to optional dependencies * move puppeteer to optional dependencies * fix: ci optional include * fix: bad copy pasta * remove previous react experiment * update tests/README.md with note about optional deps * bump node test version back to 14 * convert package-lock back to v1 * fix: use node 15.x to leverage npm optional deps * fix: optional dep install * test: see what happens with heroku/nodejs-typescript buildpack * back to heroku/nodejs buildpack * move jest to optional * revert jest move * remove .slugignore * cleanup dockerfile, move xlsx-population to optional, add comment about optional deps * Update Dockerfile Co-authored-by: James M. Greene <JamesMGreene@github.com> Co-authored-by: James M. Greene <JamesMGreene@github.com>
2021-05-25 01:40:50 +03:00
},
"optionalDependencies": {
Refactor Staging deployment workflow to support open source PRs (#20459) * Add a Staging build workflow * Remove all commented out code from build workflow It will be handled in https://github.com/github/docs-engineering/issues/726 * Use pinned version of upload-artifact action * Tweaks to build * Minor deployment script refactoring * Update the Staging deployment workflow * Missed refactoring tweak * Add relevant comments * Update Heroku app naming convention for Actions deploy to include 'gha-' prefix * Update Heroku app ConfigVars and SourceBlob for optional prebuilt app * Remove obsolete 'dist/' dir from PR build artifact See https://github.com/github/docs-internal/pull/20405 * Ensure a new enough version of npm is used * Switch to creating a tarball for upload * Remove obsolete 'layouts' dir from file list * Ditch the verbosity for 'tar'... too many files * Add tarball support to deploy * Add esm workaround to deploy script See https://github.com/actions/github-script/issues/168 * Temporarily ignore staging deploy workflow from workflow linter * Update deployment to use a Heroku Build Source instead of a GitHub Actions Artifact * Update undeploy workflow to use ESM workaround See https://github.com/actions/github-script/issues/168 * Add 'esm' package to optionalDependencies to better support workaround See https://github.com/actions/github-script/issues/168 * Add Slack notifications for workflow failures * Wrap AppSetup polling in try-catch * Improve dyno monitoring * Rename 'script/deploy' to have a .js extension #esm * Update script references to include the extension * Use non-deprecated Sources API for Heroku * Use normal quotes * Stub in a step to mark deployment inactive after timing out * Apply suggestions from code review Co-authored-by: Rachael Sewell <rachmari@github.com> Co-authored-by: Rachael Sewell <rachmari@github.com>
2021-08-25 23:45:51 +03:00
"esm": "^3.2.25",
2023-05-01 18:57:38 +03:00
"website-scraper": "^5.3.1"
},
"engines": {
"node": "^16 || ^18"
},
"cacheDirectories": [
"node_modules",
".next/cache"
]
}