2017-07-07 13:28:29 -04:00
{
2019-03-23 03:21:36 -04:00
"private" : true ,
"workspaces" : [
"packages/*" ,
"website" ,
2019-05-25 11:43:43 -04:00
"website-1.x" ,
2020-07-24 09:07:24 -04:00
"website-1.x-migrated" ,
2019-07-13 14:06:23 -04:00
"packages/docusaurus-init/templates/*"
2019-03-23 03:21:36 -04:00
] ,
2017-10-25 17:04:24 -04:00
"scripts" : {
2020-07-01 12:30:44 -04:00
"start" : "yarn build:packages && yarn start:v2" ,
2019-05-18 14:37:35 -04:00
"start:v1" : "yarn workspace docusaurus-1-website start" ,
"start:v2" : "yarn workspace docusaurus-2-website start" ,
2020-06-16 08:40:46 -04:00
"start:v2:watch" : "nodemon --watch \"./packages/*/lib/**/*.*\" --exec \"yarn start:v2\"" ,
2020-07-23 05:51:28 -04:00
"start:v2:baseUrl" : "yarn workspace docusaurus-2-website start:baseUrl" ,
2020-08-17 14:18:37 -04:00
"start:v2:bootstrap" : "yarn workspace docusaurus-2-website start:bootstrap" ,
2020-09-01 13:38:11 -04:00
"start:v2:blogOnly" : "yarn workspace docusaurus-2-website start:blogOnly" ,
2020-07-01 12:30:44 -04:00
"build" : "yarn build:packages && yarn build:v2" ,
"build:packages" : "lerna run build --no-private" ,
2019-05-18 14:37:35 -04:00
"build:v1" : "yarn workspace docusaurus-1-website build" ,
"build:v2" : "yarn workspace docusaurus-2-website build" ,
2020-07-23 05:51:28 -04:00
"build:v2:baseUrl" : "yarn workspace docusaurus-2-website build:baseUrl" ,
2020-09-01 13:38:11 -04:00
"build:v2:blogOnly" : "yarn workspace docusaurus-2-website build:blogOnly" ,
2020-06-16 08:40:46 -04:00
"serve:v1" : "serve website-1.x/build/docusaurus" ,
2020-10-05 09:20:03 -04:00
"serve:v2" : "yarn workspace docusaurus-2-website serve" ,
2020-07-22 13:55:40 -04:00
"serve:v2:baseUrl" : "serve website" ,
2020-07-08 06:32:41 -04:00
"serve:v2:ssl" : "yarn serve:v2:ssl:gencert && yarn serve:v2:ssl:message && yarn serve:v2:ssl:serve" ,
"serve:v2:ssl:gencert" : "openssl req -x509 -nodes -days 365 -newkey rsa:4096 -subj \"/C=US/ST=Docusaurus/L=Anywhere/O=Dis/CN=localhost\" -keyout ./website/.docusaurus/selfsigned.key -out ./website/.docusaurus/selfsigned.crt" ,
"serve:v2:ssl:message" : "echo '\n\n\nServing Docusaurus with HTTPS on localhost requires to disable the Chrome security: chrome://flags/#allow-insecure-localhost\n\n\n'" ,
"serve:v2:ssl:serve" : "serve website/build --ssl-cert ./website/.docusaurus/selfsigned.crt --ssl-key ./website/.docusaurus/selfsigned.key" ,
2019-11-08 11:58:56 -05:00
"changelog" : "lerna-changelog" ,
2020-07-01 12:30:44 -04:00
"postinstall" : "yarn build:packages" ,
2019-05-20 12:59:04 -04:00
"prettier" : "prettier --config .prettierrc --write \"**/*.{js,ts}\"" ,
"prettier:diff" : "prettier --config .prettierrc --list-different \"**/*.{js,ts}\"" ,
2019-12-08 00:56:30 -05:00
"prettier-docs" : "prettier --config .prettierrc --write \"**/*.md\"" ,
2020-06-18 05:37:48 -04:00
"lint" : "yarn lint:js && yarn lint:style" ,
"lint:js" : "eslint --cache \"**/*.{js,jsx,ts,tsx}\"" ,
"lint:style" : "stylelint \"**/*.css\"" ,
2019-03-23 03:21:36 -04:00
"lerna" : "lerna" ,
2019-05-18 14:37:35 -04:00
"test" : "jest" ,
2020-04-02 03:11:19 -04:00
"test:build:v2" : "./admin/scripts/test-release.sh" ,
2020-06-16 08:40:46 -04:00
"watch" : "yarn lerna run --parallel --no-private watch" ,
2020-11-12 13:37:22 -05:00
"clear" : "yarn workspace docusaurus-2-website clear && yarn lerna exec --ignore docusaurus yarn rimraf lib" ,
2020-07-24 09:07:24 -04:00
"test:v1Migration:migrate" : "rimraf website-1.x-migrated && docusaurus-migrate migrate ./website-1.x ./website-1.x-migrated && sed -i -- 's/docusaurus-1-website/docusaurus-1-website-migrated/g;' website-1.x-migrated/package.json" ,
"test:v1Migration:start" : "yarn workspace docusaurus-1-website-migrated start" ,
"test:v1Migration:build" : "yarn workspace docusaurus-1-website-migrated build" ,
2020-10-02 08:58:06 -04:00
"test:baseUrl" : "yarn build:v2:baseUrl && yarn serve:v2:baseUrl" ,
"netlify:deployPreview:v1" : "yarn netlify:deployPreview:v1:setDeployPreviewVersions && yarn netlify:deployPreview:v1:build && yarn netlify:deployPreview:v1:moveBuild" ,
"netlify:deployPreview:v1:setDeployPreviewVersions" : "yarn node -e 'require(\"./website-1.x/netlifyUtils\").setDeployPreviewVersions()'" ,
"netlify:deployPreview:v1:build" : "BASE_URL=/v1/ yarn build:v1" ,
"netlify:deployPreview:v1:moveBuild" : "mv website-1.x/build/docusaurus website/netlifyDeployPreview/v1" ,
"netlify:deployPreview:v1-migrated" : "yarn test:v1Migration:migrate && yarn netlify:deployPreview:v1-migrated:setBaseUrl && yarn netlify:deployPreview:v1-migrated:build" ,
"netlify:deployPreview:v1-migrated:setBaseUrl" : "sed -i -e 's,\"baseUrl\": \"/\",\"baseUrl\": \"/v1-migrated/\",g' ./website-1.x-migrated/docusaurus.config.js" ,
"netlify:deployPreview:v1-migrated:build" : "yarn workspace docusaurus-1-website-migrated build --out-dir=../website/netlifyDeployPreview/v1-migrated"
2017-07-07 13:28:29 -04:00
} ,
2017-12-12 15:47:52 -05:00
"devDependencies" : {
2020-11-12 06:30:14 -05:00
"@babel/cli" : "^7.12.1" ,
"@babel/core" : "^7.12.3" ,
"@babel/plugin-proposal-nullish-coalescing-operator" : "^7.12.1" ,
"@babel/plugin-proposal-optional-chaining" : "^7.12.1" ,
"@babel/preset-typescript" : "^7.12.1" ,
2019-11-24 11:06:25 -05:00
"@types/express" : "^4.17.2" ,
2019-11-13 11:04:13 -05:00
"@types/fs-extra" : "^8.0.1" ,
"@types/inquirer" : "^6.5.0" ,
2020-04-05 07:07:44 -04:00
"@types/jest" : "^25.2.1" ,
2019-10-07 07:28:33 -04:00
"@types/loader-utils" : "^1.1.3" ,
2020-04-05 06:32:28 -04:00
"@types/lodash.camelcase" : "^4.3.6" ,
2020-04-03 13:24:30 -04:00
"@types/lodash.flatmap" : "^4.5.6" ,
"@types/lodash.groupby" : "^4.6.6" ,
2020-04-05 06:17:06 -04:00
"@types/lodash.has" : "^4.5.6" ,
"@types/lodash.isplainobject" : "^4.0.6" ,
"@types/lodash.isstring" : "^4.0.6" ,
2019-07-13 14:06:23 -04:00
"@types/lodash.kebabcase" : "^4.1.6" ,
2020-04-03 13:24:30 -04:00
"@types/lodash.pick" : "^4.4.6" ,
"@types/lodash.pickby" : "^4.6.6" ,
2020-07-21 05:16:08 -04:00
"@types/lodash.sortby" : "^4.6.6" ,
2020-04-05 07:07:44 -04:00
"@types/node" : "^13.11.0" ,
2020-06-25 10:07:30 -04:00
"@types/prismjs" : "^1.16.1" ,
2020-10-14 10:25:38 -04:00
"@types/react" : "^16.9.52" ,
2019-05-21 02:58:14 -04:00
"@types/react-dev-utils" : "^9.0.1" ,
2020-06-21 03:09:00 -04:00
"@types/react-helmet" : "^6.0.0" ,
"@types/react-loadable" : "^5.5.3" ,
"@types/react-router-config" : "^5.0.1" ,
2020-04-05 07:07:44 -04:00
"@types/semver" : "^7.1.0" ,
2019-11-22 05:55:22 -05:00
"@types/shelljs" : "^0.8.6" ,
2019-11-24 11:06:25 -05:00
"@types/webpack" : "^4.41.0" ,
2019-11-29 23:52:26 -05:00
"@types/webpack-dev-server" : "^3.9.0" ,
2019-05-20 12:59:04 -04:00
"@types/webpack-merge" : "^4.1.5" ,
2020-06-21 03:09:00 -04:00
"@typescript-eslint/eslint-plugin" : "^3.3.0" ,
"@typescript-eslint/parser" : "^3.3.0" ,
2019-11-11 05:44:26 -05:00
"babel-eslint" : "^10.0.3" ,
2020-06-16 08:40:46 -04:00
"concurrently" : "^5.2.0" ,
2019-11-11 05:44:26 -05:00
"enzyme" : "^3.10.0" ,
"enzyme-adapter-react-16" : "^1.15.1" ,
2020-06-18 05:37:48 -04:00
"eslint" : "^7.2.0" ,
2019-11-11 05:44:26 -05:00
"eslint-config-airbnb" : "^18.0.1" ,
2020-06-18 05:37:48 -04:00
"eslint-config-prettier" : "^6.11.0" ,
2019-03-24 03:50:26 -04:00
"eslint-plugin-header" : "^3.0.0" ,
2020-06-18 05:37:48 -04:00
"eslint-plugin-import" : "^2.21.2" ,
2019-11-11 05:44:26 -05:00
"eslint-plugin-jsx-a11y" : "^6.2.3" ,
2020-06-18 05:37:48 -04:00
"eslint-plugin-react" : "^7.20.0" ,
"eslint-plugin-react-hooks" : "^4.0.4" ,
2020-10-21 09:05:01 -04:00
"glob" : "^7.1.6" ,
2020-04-05 07:07:44 -04:00
"husky" : "^4.2.3" ,
"jest" : "^25.2.7" ,
2019-11-22 05:55:22 -05:00
"lerna" : "^3.19.0" ,
2020-04-05 07:07:44 -04:00
"lerna-changelog" : "^1.0.1" ,
"lint-staged" : "^10.1.2" ,
2020-07-22 13:55:40 -04:00
"netlify-cli" : "^2.58.0" ,
2020-06-16 08:40:46 -04:00
"nodemon" : "^2.0.4" ,
2020-04-05 07:07:44 -04:00
"prettier" : "^2.0.2" ,
2019-03-23 03:21:36 -04:00
"react" : "^16.8.4" ,
"react-dom" : "^16.8.4" ,
2020-06-16 08:40:46 -04:00
"rimraf" : "^3.0.2" ,
"serve" : "^11.3.2" ,
2020-04-02 07:05:03 -04:00
"stylelint" : "^13.2.1" ,
2020-06-21 03:09:00 -04:00
"typescript" : "^3.9.5"
2018-08-03 21:25:57 -04:00
} ,
2020-03-08 15:57:02 -04:00
"peerDependencies" : {
"stylelint-copyright" : "^2.0.0"
} ,
2018-09-17 12:58:07 -04:00
"lint-staged" : {
2020-06-18 05:37:48 -04:00
"*.{js,jsx,ts,tsx}" : [
2020-08-11 10:51:32 -04:00
"eslint --fix" ,
"prettier --write"
2019-12-08 00:56:30 -05:00
] ,
2020-08-11 10:51:32 -04:00
"*.{md,mdx}" : [
"prettier --write"
2019-11-22 05:55:22 -05:00
]
2019-02-11 21:34:31 -05:00
} ,
"husky" : {
"hooks" : {
"pre-commit" : "lint-staged"
}
2020-01-12 00:24:11 -05:00
} ,
"engines" : {
2020-05-27 11:18:48 -04:00
"node" : ">=10.15.1"
2017-07-07 13:28:29 -04:00
}
}