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": {
|
|
|
|
"@babel/core": "^7.8.3",
|
|
|
|
"@babel/plugin-transform-runtime": "^7.11.0",
|
|
|
|
"@babel/preset-env": "^7.8.4",
|
|
|
|
"@babel/runtime": "^7.11.2",
|
|
|
|
"@github-docs/data-directory": "^1.2.0",
|
|
|
|
"@github-docs/frontmatter": "^1.3.1",
|
2020-10-26 22:04:57 +03:00
|
|
|
"@github-docs/render-content": "^5.2.0",
|
2020-11-04 02:54:57 +03:00
|
|
|
"@github/rest-api-operations": "^3.3.1",
|
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",
|
|
|
|
"browser-date-formatter": "^3.0.3",
|
|
|
|
"change-case": "^3.1.0",
|
|
|
|
"cheerio": "^1.0.0-rc.3",
|
2020-10-16 17:55:35 +03:00
|
|
|
"clipboard": "^2.0.6",
|
2020-09-27 15:10:11 +03:00
|
|
|
"compression": "^1.7.4",
|
|
|
|
"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",
|
|
|
|
"css-loader": "^4.0.0",
|
|
|
|
"csurf": "^1.11.0",
|
|
|
|
"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",
|
|
|
|
"gray-matter": "^4.0.1",
|
|
|
|
"helmet": "^3.21.2",
|
|
|
|
"html-entities": "^1.2.1",
|
|
|
|
"html-truncate": "^1.2.2",
|
|
|
|
"imurmurhash": "^0.1.4",
|
2020-09-30 19:31:04 +03:00
|
|
|
"instantsearch.js": "^4.8.2",
|
2020-09-27 15:10:11 +03:00
|
|
|
"is-url": "^1.2.4",
|
|
|
|
"js-cookie": "^2.2.1",
|
|
|
|
"js-yaml": "^3.14.0",
|
|
|
|
"lil-env-thing": "^1.0.0",
|
2020-10-26 22:04:57 +03:00
|
|
|
"liquid": "^5.1.0",
|
2020-09-27 15:10:11 +03:00
|
|
|
"lodash": "^4.17.19",
|
|
|
|
"mini-css-extract-plugin": "^0.9.0",
|
|
|
|
"mkdirp": "^1.0.3",
|
|
|
|
"morgan": "^1.9.1",
|
|
|
|
"node-fetch": "^2.6.1",
|
|
|
|
"platform-utils": "^1.2.0",
|
2020-09-29 18:51:48 +03:00
|
|
|
"port-used": "^2.0.8",
|
2020-09-27 15:10:11 +03:00
|
|
|
"querystring": "^0.2.0",
|
|
|
|
"readline-sync": "^1.4.10",
|
2020-11-03 00:54:55 +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",
|
|
|
|
"style-loader": "^1.2.1",
|
|
|
|
"uuid": "^8.3.0",
|
|
|
|
"walk-sync": "^1.1.4",
|
|
|
|
"webpack": "^4.44.0",
|
|
|
|
"webpack-cli": "^3.3.12"
|
|
|
|
},
|
|
|
|
"devDependencies": {
|
|
|
|
"ajv": "^6.11.0",
|
|
|
|
"async": "^3.2.0",
|
|
|
|
"await-sleep": "0.0.1",
|
|
|
|
"aws-sdk": "^2.610.0",
|
2020-10-21 19:42:02 +03:00
|
|
|
"babel-eslint": "^10.1.0",
|
2020-09-27 15:10:11 +03:00
|
|
|
"broken-link-checker": "^0.7.8",
|
|
|
|
"chalk": "^4.0.0",
|
2020-11-03 00:12:44 +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-21 19:42:02 +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",
|
|
|
|
"event-to-promise": "^0.8.0",
|
|
|
|
"graphql": "^14.5.8",
|
|
|
|
"heroku-client": "^3.1.0",
|
|
|
|
"husky": "^4.2.1",
|
|
|
|
"image-size": "^0.7.4",
|
|
|
|
"japanese-characters": "^1.1.0",
|
|
|
|
"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-10-21 19:42:02 +03:00
|
|
|
"nock": "^13.0.4",
|
2020-09-27 15:10:11 +03:00
|
|
|
"nodemon": "^2.0.4",
|
2020-11-03 00:56:02 +03:00
|
|
|
"npm-merge-driver-install": "^2.0.0",
|
2020-09-27 15:10:11 +03:00
|
|
|
"object-hash": "^2.0.1",
|
2020-11-03 00:54:55 +03:00
|
|
|
"pa11y-ci": "^2.4.0",
|
2020-09-27 15:10:11 +03:00
|
|
|
"puppeteer": "^2.1.1",
|
|
|
|
"replace": "^1.2.0",
|
|
|
|
"revalidator": "^0.3.1",
|
|
|
|
"robots-parser": "^2.1.1",
|
|
|
|
"standard": "^14.3.1",
|
|
|
|
"start-server-and-test": "^1.11.3",
|
|
|
|
"supertest": "^4.0.2",
|
|
|
|
"webpack-dev-middleware": "^3.7.2",
|
2020-10-21 19:42:02 +03:00
|
|
|
"website-scraper": "^4.2.0"
|
2020-09-27 15:10:11 +03:00
|
|
|
},
|
|
|
|
"scripts": {
|
|
|
|
"start": "cross-env NODE_ENV=development ENABLED_LANGUAGES='en,ja' nodemon server.js",
|
|
|
|
"dev": "npm start",
|
|
|
|
"build": "cross-env NODE_ENV=production npx webpack --mode production",
|
|
|
|
"start-all-languages": "cross-env NODE_ENV=development nodemon server.js",
|
|
|
|
"lint": "standard --fix",
|
|
|
|
"test": "jest && standard && npm run check-deps",
|
|
|
|
"prebrowser-test": "npm run build",
|
|
|
|
"browser-test": "start-server-and-test browser-test-server 4001 browser-test-tests",
|
|
|
|
"browser-test-server": "cross-env NODE_ENV=production ENABLED_LANGUAGES='en,ja' PORT=4001 node server.js",
|
|
|
|
"browser-test-tests": "BROWSER=1 jest tests/browser/browser.js",
|
|
|
|
"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",
|
|
|
|
"sync-search-indices": "script/sync-algolia-search-indices.js",
|
|
|
|
"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",
|
|
|
|
"pa11y-test": "start-server-and-test browser-test-server 4001 pa11y-ci"
|
|
|
|
},
|
|
|
|
"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",
|
|
|
|
"standard": {
|
2020-10-21 19:42:02 +03:00
|
|
|
"parser": "babel-eslint",
|
2020-09-27 15:10:11 +03:00
|
|
|
"env": [
|
|
|
|
"browser",
|
|
|
|
"jest"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"husky": {
|
|
|
|
"hooks": {
|
|
|
|
"pre-commit": "node script/prevent-translation-commits.js",
|
|
|
|
"pre-push": "npm run prevent-pushes-to-main"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|