mirror of
https://github.com/facebook/docusaurus.git
synced 2025-12-26 01:33:02 +00:00
* chore(v2): add flow setup * nits * fix * add flow-typed * ignore compiled library * fix error * fix typing * fix module name mapper * setup for @docusaurus/core * dont try remove type without @flow * fix can't find @docusaurus/utils * fix test * remove obscure relative paths * more refactoring * add typing for server/load/theme.js * no need to ship .flow source
65 lines
1.7 KiB
JSON
65 lines
1.7 KiB
JSON
{
|
|
"private": true,
|
|
"workspaces": [
|
|
"packages/*",
|
|
"website",
|
|
"website-1.x"
|
|
],
|
|
"scripts": {
|
|
"build": "lerna run --parallel build --no-private",
|
|
"build:clean": "lerna run --parallel build:clean --no-private",
|
|
"build:watch": "lerna run --parallel build:watch --no-private",
|
|
"flow": "flow",
|
|
"flow-typed": "flow-typed",
|
|
"install": "yarn run build",
|
|
"prettier": "prettier --config .prettierrc --write \"**/*.js\"",
|
|
"prettier:diff": "prettier --config .prettierrc --list-different \"**/*.js\"",
|
|
"lint": "eslint --cache \"**/*.js\"",
|
|
"lerna": "lerna",
|
|
"test": "jest"
|
|
},
|
|
"devDependencies": {
|
|
"@babel/core": "^7.4.4",
|
|
"@babel/preset-flow": "^7.0.0",
|
|
"babel-eslint": "8",
|
|
"enzyme": "^3.9.0",
|
|
"enzyme-adapter-react-16": "^1.12.1",
|
|
"eslint": "4.x",
|
|
"eslint-config-airbnb": "17.1.0",
|
|
"eslint-config-prettier": "^2.9.0",
|
|
"eslint-plugin-header": "^3.0.0",
|
|
"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",
|
|
"filepath": "^1.1.0",
|
|
"flow-bin": "^0.98.1",
|
|
"flow-remove-types": "^1.2.3",
|
|
"flow-typed": "^2.5.1",
|
|
"front-matter": "^2.3.0",
|
|
"glob-promise": "^3.3.0",
|
|
"husky": "^1.3.1",
|
|
"jest": "^24.6.0",
|
|
"lerna": "^3.13.1",
|
|
"lint-staged": "^7.2.0",
|
|
"prettier": "^1.13.7",
|
|
"react": "^16.8.4",
|
|
"react-dom": "^16.8.4",
|
|
"rimraf": "^2.6.3"
|
|
},
|
|
"lint-staged": {
|
|
"linters": {
|
|
"*.js": [
|
|
"yarn lint --fix",
|
|
"yarn prettier",
|
|
"git add"
|
|
]
|
|
}
|
|
},
|
|
"husky": {
|
|
"hooks": {
|
|
"pre-commit": "lint-staged"
|
|
}
|
|
}
|
|
}
|