package.json 1.23 KB
{
  "name": "yoho-miniapp-eshop",
  "version": "1.0.0",
  "description": "yoho-miniapp-eshop",
  "main": "app.js",
  "scripts": {
    "static": "node ./bin/cli static -o ./app",
    "upload": "node ./bin/cli upload -p ./app",
    "lint-css": "stylelint -s scss --cache --custom-formatter ./node_modules/stylelint-formatter-table ./**/*.wxss",
    "lint-js": "eslint --fix --format table --ext .js,.wxs --cache .",
    "lint-all": "echo \"JS: \";npm run -s lint-js;echo \"CSS: \";npm run -s lint-css",
    "precommit": "lint-staged"
  },
  "lint-staged": {
    "*.{js,wxs}": [
      "eslint --fix",
      "git add"
    ],
    "*.{wxss,scss,css}": [
      "stylelint --fix",
      "git add"
    ]
  },
  "repository": {
    "type": "git",
    "url": "git@git.yoho.cn:fe/yoho-miniapp-eshop.git"
  },
  "keywords": [
    "yoho"
  ],
  "author": "yoho <fe@yoho.cn> (http://yoho.cn/)",
  "license": "UNLICENSED",
  "devDependencies": {
    "eslint": "^4.16.0",
    "eslint-config-yoho": "^1.0.9",
    "husky": "^0.14.3",
    "inquirer": "^6.0.0",
    "lint-staged": "^7.2.0",
    "lodash": "^4.17.10",
    "shelljs": "^0.8.2",
    "stylelint": "^8.4.0",
    "stylelint-config-yoho": "^1.2.12",
    "stylelint-formatter-table": "^1.0.4",
    "yargs": "^11.0.0"
  }
}