关于vue的cli里面package.json文件?

求大神指教一下这里面的东西都是啥?特别是scripts里面的,我发现我家里电脑的scripts里面的东西跟公司里scripts里面的东西是不一样的?

{
  "name": "zhiliao.0",
  "version": "1.0.0",
  "description": "A Vue.js project",
  "author": "momo <552488648@qq.com>",
  "private": true,
  "scripts": {
    "dev": "node build/dev-server.js",
    "build": "npm run build-prod",
    "start": "cross-env node build/webpack.dll.js && cross-env TYPE=local node build/dev-server.js",
    "start-dev": "node build/webpack.dll.js && cross-env TYPE=dev node build/dev-server.js",
    "start-test": "node build/webpack.dll.js && cross-env TYPE=test node build/dev-server.js",
    "start-prod": "node build/webpack.dll.js && cross-env TYPE=prod node build/dev-server.js",
    "build-local": "cross-env TYPE=local model=dev node build/webpack.dll.js && cross-env TYPE=local node build/build.js",
    "build-dev": "cross-env TYPE=dev model=build node build/webpack.dll.js && cross-env TYPE=dev node build/build.js",
    "build-test": "cross-env TYPE=test model=build node build/webpack.dll.js && cross-env TYPE=test node build/build.js",
    "build-prod": "cross-env TYPE=prod model=build node build/webpack.dll.js && cross-env TYPE=prod node build/build.js"
  },
  "dependencies": {
    "axios": "^0.15.3",
    "blueimp-md5": "^2.7.0",
    "es6-promise": "^4.1.0",
    "mint-ui": "^2.2.1",
    "qs": "^6.4.0",
    "vue": "^2.2.2",
    "vue-baidu-map": "^0.10.5",
    "vue-router": "^2.2.0",
    "vuex": "^2.2.1",
    "weixin-js-sdk": "^1.2.0"
  },
  "devDependencies": {
    "add-asset-html-webpack-plugin": "^2.1.2",
    "autoprefixer": "^6.7.2",
    "babel-core": "^6.22.1",
    "babel-eslint": "^8.0.3",
    "babel-loader": "^6.2.10",
    "babel-plugin-syntax-jsx": "^6.18.0",
    "babel-plugin-transform-runtime": "^6.22.0",
    "babel-plugin-transform-vue-jsx": "^3.5.0",
    "babel-preset-env": "^1.2.1",
    "babel-preset-es2015": "^6.24.1",
    "babel-preset-stage-2": "^6.22.0",
    "babel-register": "^6.22.0",
    "babel-runtime": "^6.26.0",
    "chalk": "^1.1.3",
    "connect-history-api-fallback": "^1.3.0",
    "copy-webpack-plugin": "^4.0.1",
    "cross-env": "^5.1.1",
    "css-loader": "^0.26.4",
    "eslint": "4.4.1",
    "eslint-config-standard": "10.2.1",
    "eslint-friendly-formatter": "3.0.0",
    "eslint-loader": "1.9.0",
    "eslint-plugin-html": "3.1.1",
    "eslint-plugin-import": "2.7.0",
    "eslint-plugin-node": "5.1.1",
    "eslint-plugin-promise": "3.5.0",
    "eslint-plugin-standard": "3.0.1",
    "eventsource-polyfill": "^0.9.6",
    "express": "^4.14.1",
    "extract-text-webpack-plugin": "^2.0.0",
    "file-loader": "^0.10.0",
    "form-data": "^0.2.0",
    "friendly-errors-webpack-plugin": "^1.1.3",
    "function-bind": "^1.1.0",
    "happypack": "^4.0.0",
    "html-webpack-plugin": "^2.28.0",
    "http-proxy-middleware": "^0.17.3",
    "iconv-lite": "^0.4.7",
    "mime": "~1.3.4",
    "node-sass": "^4.9.3",
    "opn": "^4.0.2",
    "optimize-css-assets-webpack-plugin": "^1.3.0",
    "ora": "^1.3.0",
    "portfinder": "^1.0.13",
    "request": "~2.72.0",
    "rimraf": "^2.6.0",
    "sass-loader": "^6.0.6",
    "semver": "^5.3.0",
    "shelljs": "^0.8.1",
    "url-loader": "^0.5.7",
    "urlencode": "^1.1.0",
    "verification-code": "^1.0.0",
    "vue-loader": "^11.1.4",
    "vue-style-loader": "^2.0.5",
    "vue-template-compiler": "^2.2.4",
    "webpack": "^2.2.1",
    "webpack-bundle-analyzer": "^2.2.1",
    "webpack-dev-middleware": "^1.10.0",
    "webpack-hot-middleware": "^2.16.1",
    "webpack-merge": "^2.6.1",
    "webpack-parallel-uglify-plugin": "^1.0.2",
    "workbox-webpack-plugin": "^2.1.2",
    "ws": "^0.4.32"
  },
  "engines": {
    "node": ">= 4.0.0",
    "npm": ">= 3.0.0"
  },
  "publishConfig": {
    "registry": "http://registry.npm.alibaba-inc.com"
  },
  "browserslist": [
    "> 1%",
    "last 2 versions",
    "not ie <= 8"
  ]
}

1个回答

windows和mac的sacript不同,应为启动方式不同

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问