2017-07-07 13:28:29 -04:00
|
|
|
{
|
2018-09-17 03:34:55 -04:00
|
|
|
"keywords": ["documentation", "websites", "open source", "docusaurus"],
|
2017-12-13 23:40:16 -05:00
|
|
|
"repository": {
|
|
|
|
|
"type": "git",
|
|
|
|
|
"url": "https://github.com/facebook/Docusaurus.git"
|
|
|
|
|
},
|
2017-10-25 17:04:24 -04:00
|
|
|
"scripts": {
|
2018-09-21 12:42:06 -04:00
|
|
|
"lint:v1": "cd v1 && yarn lint",
|
|
|
|
|
"lint:v2": "cd v2 && yarn lint",
|
2018-09-19 00:09:06 -04:00
|
|
|
"precommit": "lint-staged",
|
2018-10-14 17:41:57 -04:00
|
|
|
"prettier:v1": "cd v1 && yarn prettier",
|
|
|
|
|
"prettier:v2": "cd v2 && yarn prettier",
|
|
|
|
|
"prettier": "yarn prettier:v1 && yarn prettier:v2",
|
2018-09-17 03:34:55 -04:00
|
|
|
"prettier:diff": "prettier --config .prettierrc --list-different \"**/*.js\"",
|
2018-09-17 12:58:07 -04:00
|
|
|
"start": "cd v1/website && yarn start"
|
2017-07-07 13:28:29 -04:00
|
|
|
},
|
2017-12-12 15:47:52 -05:00
|
|
|
"devDependencies": {
|
2018-07-01 00:27:31 -04:00
|
|
|
"husky": "^0.14.3",
|
|
|
|
|
"lint-staged": "^7.2.0",
|
2018-09-17 12:58:07 -04:00
|
|
|
"prettier": "^1.13.7"
|
2018-08-03 21:25:57 -04:00
|
|
|
},
|
2018-09-17 12:58:07 -04:00
|
|
|
"lint-staged": {
|
|
|
|
|
"linters": {
|
2018-10-14 17:41:57 -04:00
|
|
|
"v1/**/*.js": ["yarn lint:v1 --fix", "yarn prettier:v1", "git add"],
|
|
|
|
|
"v2/**/*.js": ["yarn lint:v2 --fix", "yarn prettier:v2", "git add"]
|
2018-09-17 12:58:07 -04:00
|
|
|
}
|
2017-07-07 13:28:29 -04:00
|
|
|
}
|
|
|
|
|
}
|