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",
|
|
|
|
|
"build": "yarn tsc && yarn build:v2",
|
|
|
|
|
"build:v1": "yarn workspace docusaurus-1-website build",
|
|
|
|
|
"build:v2": "yarn workspace docusaurus-2-website build",
|
|
|
|
|
"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-03-23 03:21:36 -04:00
|
|
|
"lint": "eslint --cache \"**/*.js\"",
|
|
|
|
|
"lerna": "lerna",
|
2019-05-18 14:37:35 -04:00
|
|
|
"test": "jest",
|
2019-05-20 12:59:04 -04:00
|
|
|
"tsc": "lerna run tsc --no-private"
|
2017-07-07 13:28:29 -04:00
|
|
|
},
|
2017-12-12 15:47:52 -05:00
|
|
|
"devDependencies": {
|
2019-10-21 01:25:30 -04:00
|
|
|
"@babel/core": "^7.6.4",
|
|
|
|
|
"@babel/preset-typescript": "^7.6.0",
|
2019-10-11 22:30:22 -04:00
|
|
|
"@types/cross-spawn": "^6.0.1",
|
2019-10-21 01:25:30 -04:00
|
|
|
"@types/express": "^4.17.1",
|
2019-07-17 11:59:13 -04:00
|
|
|
"@types/fs-extra": "8.0.0",
|
2019-07-13 14:06:23 -04:00
|
|
|
"@types/inquirer": "^6.0.3",
|
2019-07-17 11:59:13 -04:00
|
|
|
"@types/jest": "^24.0.15",
|
2019-10-07 07:28:33 -04:00
|
|
|
"@types/loader-utils": "^1.1.3",
|
2019-10-21 01:25:30 -04:00
|
|
|
"@types/lodash": "^4.14.144",
|
2019-07-13 14:06:23 -04:00
|
|
|
"@types/lodash.kebabcase": "^4.1.6",
|
2019-05-18 14:37:35 -04:00
|
|
|
"@types/node": "^12.0.2",
|
2019-05-22 06:32:52 -04:00
|
|
|
"@types/react": "^16.8.18",
|
2019-05-21 02:58:14 -04:00
|
|
|
"@types/react-dev-utils": "^9.0.1",
|
2019-07-13 14:06:23 -04:00
|
|
|
"@types/semver": "^6.0.1",
|
2019-05-20 12:59:04 -04:00
|
|
|
"@types/shelljs": "^0.8.5",
|
2019-07-21 13:11:39 -04:00
|
|
|
"@types/webpack": "^4.32.0",
|
2019-05-21 02:58:14 -04:00
|
|
|
"@types/webpack-dev-server": "^3.1.5",
|
2019-05-20 12:59:04 -04:00
|
|
|
"@types/webpack-merge": "^4.1.5",
|
2019-03-23 03:21:36 -04:00
|
|
|
"babel-eslint": "8",
|
2019-05-01 23:57:13 -04:00
|
|
|
"enzyme": "^3.9.0",
|
|
|
|
|
"enzyme-adapter-react-16": "^1.12.1",
|
2019-03-23 03:21:36 -04:00
|
|
|
"eslint": "4.x",
|
|
|
|
|
"eslint-config-airbnb": "17.1.0",
|
|
|
|
|
"eslint-config-prettier": "^2.9.0",
|
2019-03-24 03:50:26 -04:00
|
|
|
"eslint-plugin-header": "^3.0.0",
|
2019-03-23 03:21:36 -04:00
|
|
|
"eslint-plugin-import": "^2.14.0",
|
|
|
|
|
"eslint-plugin-jsx-a11y": "^6.0.3",
|
|
|
|
|
"eslint-plugin-react": "^7.11.1",
|
|
|
|
|
"eslint-plugin-react-hooks": "^0.0.0",
|
2019-03-24 03:50:26 -04:00
|
|
|
"filepath": "^1.1.0",
|
|
|
|
|
"front-matter": "^2.3.0",
|
|
|
|
|
"glob-promise": "^3.3.0",
|
|
|
|
|
"husky": "^1.3.1",
|
2019-10-16 11:56:09 -04:00
|
|
|
"jest": "^24.9.0",
|
2019-10-21 01:25:30 -04:00
|
|
|
"lerna": "^3.18.1",
|
2019-03-24 03:50:26 -04:00
|
|
|
"lint-staged": "^7.2.0",
|
2019-11-06 10:52:40 -05:00
|
|
|
"picomatch": "^2.1.0",
|
2019-10-16 11:56:09 -04:00
|
|
|
"prettier": "^1.18.2",
|
2019-03-23 03:21:36 -04:00
|
|
|
"react": "^16.8.4",
|
|
|
|
|
"react-dom": "^16.8.4",
|
2019-05-18 14:37:35 -04:00
|
|
|
"rimraf": "^2.6.3",
|
2019-10-16 11:56:09 -04:00
|
|
|
"typescript": "^3.6.4"
|
2018-08-03 21:25:57 -04:00
|
|
|
},
|
2018-09-17 12:58:07 -04:00
|
|
|
"lint-staged": {
|
|
|
|
|
"linters": {
|
2019-10-10 14:10:18 -04:00
|
|
|
"*.{js,jsx}": [
|
2019-03-24 03:50:26 -04:00
|
|
|
"yarn lint --fix",
|
|
|
|
|
"yarn prettier",
|
|
|
|
|
"git add"
|
2019-10-10 14:10:18 -04:00
|
|
|
],
|
|
|
|
|
"*.{ts,tsx}": [
|
|
|
|
|
"yarn prettier",
|
|
|
|
|
"git add"
|
2019-03-24 03:50:26 -04:00
|
|
|
]
|
2018-09-17 12:58:07 -04:00
|
|
|
}
|
2019-02-11 21:34:31 -05:00
|
|
|
},
|
|
|
|
|
"husky": {
|
|
|
|
|
"hooks": {
|
|
|
|
|
"pre-commit": "lint-staged"
|
|
|
|
|
}
|
2017-07-07 13:28:29 -04:00
|
|
|
}
|
|
|
|
|
}
|