json React:示例package.json
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了json React:示例package.json相关的知识,希望对你有一定的参考价值。
{
"name": "APP_NAME",
"version": "0.1.0",
"private": true,
"dependencies": {
"husky": "^1.2.1",
"lint-staged": "^8.1.0",
"node-sass": "^4.11.0",
"npm-run-all": "^4.1.5",
"prettier": "^1.15.3",
"react": "^16.7.0",
"react-dom": "^16.7.0",
"react-router-dom": "^4.3.1",
"react-scripts": "2.1.2"
},
"scripts": {
"css-build": "node-sass --source-map-embed true --include-path src src/stylesheets/ -o src/procss/",
"css-watch": "npm run css-build && node-sass --source-map-embed true -w src/stylesheets/ --include-path src src/stylesheets/ -o src/procss/",
"start": "npm-run-all -p css-watch start-js",
"build": "npm run css-build && react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject",
"start-js": "react-scripts start"
},
"eslintConfig": {
"extends": "react-app"
},
"browserslist": [
">0.2%",
"not dead",
"not ie <= 11",
"not op_mini all"
],
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"src/**/*.{js,jsx,ts,tsx,json,css,scss,md}": [
"prettier --single-quote --write",
"git add"
]
}
}
以上是关于json React:示例package.json的主要内容,如果未能解决你的问题,请参考以下文章
如何自动升级 package.json 或 react 库?
json package.json React&Redux deps
React package.json详解
通过阅读 package.json 升级 React 版本及其依赖项
react nodejs项目中的多个package.json文件
如何给现有工程初始化一个react-native环境的package.json