{
"name": "app",
"version": "0.1.0",
"private": true,
"keywords": "",
"author": "",
"contributors": [],
"homepage": "",
"repository": "",
"bugs": "",
"dependencies": {},
"devDependencies": {},
"peerDependencies": {},
"optionalDependencies": {},
"bundledDependencies": [],
"engines": {},
"scripts": {},
"config": {},
"main": "./src/index.js",
"browser": "./src/index.js"
"module": "",
"bin": {},
"files": [],
"man": [],
"directories": {},
"private": true,
"preferGlobal": true,
"os": [],
"cpu": [],
"license": "MIT",
"typings": "types/index.d.ts",
"eslintConfig": {},
"babel": "",
"unpkg": "dist/vue.js, // 让 npm 上所有的文件都开启 cdn 服务,该CND服务由unpkg提供
"lint-staged": {}, // 配置后每次修改一个文件即可给所有文件执行一次lint检查
"gitHooks": { "pre-commit": "lint-staged" }, // 在提交(commit)之前执行ESlint检查
"browserslist": {}, // 告知支持哪些浏览器及版
参考文章:juejin.cn/post/702353…