docusaurus/package.json
Yangshun Tay 7931be9c71
Update CI for v1 (#968)
* Update CI for new repository structure

* Rename tests

* Fix workflow

* Add Prettier
2018-09-19 12:09:06 +08:00

24 lines
649 B
JSON

{
"keywords": ["documentation", "websites", "open source", "docusaurus"],
"repository": {
"type": "git",
"url": "https://github.com/facebook/Docusaurus.git"
},
"scripts": {
"precommit": "lint-staged",
"prettier": "prettier --config .prettierrc --write \"**/*.js\"",
"prettier:diff": "prettier --config .prettierrc --list-different \"**/*.js\"",
"start": "cd v1/website && yarn start"
},
"devDependencies": {
"husky": "^0.14.3",
"lint-staged": "^7.2.0",
"prettier": "^1.13.7"
},
"lint-staged": {
"linters": {
"{v1,v2}/**/*.js": ["yarn lint --fix", "yarn prettier", "git add"]
}
}
}