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",
|
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": {
|
2019-05-18 14:37:35 -04:00
|
|
|
"start": "yarn tsc && yarn start:v2",
|
|
|
|
|
"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\"",
|
2019-05-18 14:37:35 -04:00
|
|
|
"build": "yarn tsc && yarn build:v2",
|
|
|
|
|
"build:v1": "yarn workspace docusaurus-1-website build",
|
|
|
|
|
"build:v2": "yarn workspace docusaurus-2-website build",
|
2020-06-16 08:40:46 -04:00
|
|
|
"serve": "yarn serve:v2",
|
|
|
|
|
"serve:v1": "serve website-1.x/build/docusaurus",
|
|
|
|
|
"serve:v2": "serve website/build",
|
2019-11-08 11:58:56 -05:00
|
|
|
"changelog": "lerna-changelog",
|
2019-05-18 14:37:35 -04:00
|
|
|
"postinstall": "yarn tsc",
|
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
|
|
|
"tsc": "lerna run tsc --no-private",
|
|
|
|
|
"watch": "yarn lerna run --parallel --no-private watch",
|
|
|
|
|
"clear": "yarn rimraf website/.docusaurus && rimraf -rf website/node_modules/.cache && yarn lerna exec 'yarn rimraf lib' --ignore docusaurus"
|
2017-07-07 13:28:29 -04:00
|
|
|
},
|
2017-12-12 15:47:52 -05:00
|
|
|
"devDependencies": {
|
2020-04-02 07:05:03 -04:00
|
|
|
"@babel/core": "^7.9.0",
|
2020-06-25 10:07:30 -04:00
|
|
|
"@babel/cli": "^7.9.0",
|
2020-04-02 07:05:03 -04:00
|
|
|
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.8.3",
|
|
|
|
|
"@babel/plugin-proposal-optional-chaining": "^7.9.0",
|
|
|
|
|
"@babel/preset-typescript": "^7.9.0",
|
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-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-06-21 03:09:00 -04:00
|
|
|
"@types/react": "^16.9.38",
|
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-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-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}": [
|
|
|
|
|
"yarn eslint --fix",
|
2020-04-05 14:55:36 -04:00
|
|
|
"yarn prettier"
|
2019-12-08 00:56:30 -05:00
|
|
|
],
|
|
|
|
|
"*.md": [
|
2020-04-05 14:55:36 -04:00
|
|
|
"yarn prettier-docs"
|
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
|
|
|
}
|
|
|
|
|
}
|