| { |
| "name": "apache-singa-docs-site", |
| "private": true, |
| "license": "Apache-2.0", |
| "version": "2.0.0", |
| "author": "apache-singa", |
| "description": "docs and site code for Apache SINGA", |
| "main": "n/a", |
| "repository": "https://github.com/apache/singa-doc", |
| "homepage": "https://singa.apache.org/", |
| "engines": { |
| "node": ">10.0.0", |
| "yarn": "^1.17.3" |
| }, |
| "workspaces": [ |
| "website" |
| ], |
| "devDependencies": { |
| "babel-eslint": "^10.0.1", |
| "eslint": "^6.8.0", |
| "eslint-config-babel": "^9.0.0", |
| "eslint-config-prettier": "^6.9.0", |
| "eslint-plugin-flowtype": "^4.6.0", |
| "eslint-plugin-markdown": "^1.0.0-beta.3", |
| "eslint-plugin-prettier": "^3.1.2", |
| "eslint-plugin-react": "^7.18.0", |
| "husky": "^4.0.10", |
| "lint-staged": "^9.5.0", |
| "prettier": "^1.19.1", |
| "remark-cli": "^7.0.1", |
| "remark-lint-list-item-indent": "^1.0.0", |
| "remark-lint-no-blockquote-without-caret": "^2.0.0", |
| "remark-lint-no-duplicate-headings-in-section": "^1.0.0", |
| "remark-lint-no-empty-url": "^1.0.0", |
| "remark-lint-no-literal-urls": "^1.0.0", |
| "remark-preset-lint-recommended": "^3.0.3", |
| "rimraf": "^3.0.0" |
| }, |
| "remarkConfig": { |
| "plugins": { |
| "preset-lint-recommended": true, |
| "lint-list-item-indent": false, |
| "lint-no-blockquote-without-caret": false, |
| "lint-no-inline-padding": false, |
| "lint-no-literal-urls": false, |
| "lint-no-duplicate-headings-in-section": true, |
| "lint-no-empty-url": true, |
| "lint-list-item-bullet-indent": false |
| } |
| }, |
| "scripts": { |
| "reset:clean": "rimraf ./node_modules/ website/node_modules/ website/build/", |
| "reset:filewatcher": "echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p", |
| "start:website": "yarn workspace apache-singa-docs-site-website-subdir start", |
| "build:website": "yarn workspace apache-singa-docs-site-website-subdir build", |
| "prettier:js": "prettier --write \"**/*.{js,ts}\"", |
| "prettier:md": "prettier --write {.,docs,docs/releases,website,website/blog}/*.md", |
| "lint:website": "eslint website", |
| "lint:docs": "remark docs", |
| "lint-staged": "lint-staged" |
| }, |
| "lint-staged": { |
| "*.{js,jsx}": [ |
| "yarn run lint:website", |
| "yarn run prettier:js", |
| "git add" |
| ], |
| "*.md": [ |
| "yarn run lint:docs", |
| "yarn run prettier:md", |
| "git add" |
| ] |
| }, |
| "husky": { |
| "hooks": { |
| "pre-commit": "lint-staged" |
| } |
| } |
| } |