{
  "common": {
    "echo": "node -p process.versions",
    "lintjs": "eslint --color \"**/*.{js,jsx,ts,tsx,vue}\"",
    "formatjs": "prettier-eslint \"**/*.{js,jsx,ts,tsx,vue}\" --write",
    "lintcss": "stylelint \"**/*.{css,vue}\"",
    "formatcss": "stylelint \"**/*.{css,vue}\" --fix",
    "cleanCache": "rimraf ./node_modules/.cache && jest --clearCache",
    "type-check": "tsc --noEmit",
    "types": "tsc --declaration --emitDeclarationOnly --declarationDir lib",
    "test": "jest",
    "test:watch": "jest -w"
  },
  "web": {
    "clean": "rimraf dist www dist_html _dist _package _webpack_* coverage",
    "anyproxy": "node ./mock/anyproxy",
    "dev": "npm run clean && node ./script/serve.js",
    "dev:split": "npm run clean && node ./script/serve.js --split",
    "see": "npm run clean && cross-env NODE_ENV=development node ./script/build.js --nodevtool --nohmr --split",
    "see:watch": "npm run see -- --watch",
    "build": "npm run clean && node ./script/build.js",
    "inspect": "npm run see -- --inspect",
    "analyze": "npm run build -- --analyze",
    "profile": "npm run build -- --profile"
  },
  "weblib": {
    "clean": "rimraf es lib dist temp && mkdir temp",
    "css": "echo 233",
    "cp": "cpy \"**/*.{css,pcss,png,svg}\" \"../lib/\" --cwd=src --parents",
    "babel": "run-s babel:*",
    "babel:es": "babel src --out-dir es --extensions .js,.jsx,.ts,.tsx",
    "babel:lib": "CLI_BABEL_TRANSPILE_MODULES=true babel src --out-dir lib --extensions .js,.jsx,.ts,.tsx",
    "dev": "npm run clean && run-p \"types -- -w\" \"type-check -- -w\" \"css -- -w\" \"babel:* -- -w\" \"bundle:dev\"",
    "build": "run-s clean lintjs lintcss type-check types test cp css babel bundle",
    "prepublish": "npm run build"
  },
  "weblib-vue": {
    "raw": "cpy --cwd=src --parents \"**/*.{css,pcss,png,svg,vue}\"",
    "babel:raw-lib": "npm run raw -- \"../lib/\"",
    "babel:raw-es": "npm run raw -- \"../es/\""
  },
  "weblib-postcss": {
    "postcss-each": "postcss \"src/**/index.css\" --base src --ext css",
    "postcss:lib": "npm run postcss-each -- --dir lib",
    "postcss:es": "npm run postcss-each -- --dir es",
    "postcss:base": "postcss src/style/index.css -o dist/entryName.css",
    "postcss:base-min": "postcss src/style/index.css -o dist/entryName.min.css --min",
    "dev": "npm run clean && run-p \"types -- -w\" \"type-check -- -w\" \"postcss:* -- -w\" \"babel:* -- -w\" \"bundle:dev\""
  },
  "weblib-rollup": {
    "bundle": "rollup -c",
    "bundle:dev": "cross-env NODE_ENV=development rollup -c -w"
  },
  "weblib-webpack": {
    "see": "npm run clean && cross-env NODE_ENV=development node ./script/build.js --nodevtool --nohmr --split",
    "inspect": "npm run see -- --inspect",
    "analyze": "npm run build -- --analyze",
    "profile": "npm run build -- --profile",
    "bundle": "CLI_BABEL_TRANSPILE_MODULES=true node ./script/build.js",
    "bundle:dev": "cross-env NODE_ENV=development npm run bundle -- -w"
  },
  "nodelib": {
    "clean": "rimraf dist lib types",
    "types": "tsc --declaration --emitDeclarationOnly --declarationDir types && tsc --declaration --emitDeclarationOnly --declarationDir lib",
    "babel": "babel src --out-dir lib --extensions .js,.jsx,.ts,.tsx --ignore \"src/**/*.spec.ts\",\"src/**/*.test.ts\",\"src/**/*.spec.js\",\"src/**/*.test.js\"",
    "dev": "npm run clean && npm run babel -- -w",
    "build": "npm run clean && npm run babel && npm run type-check && npm run types",
    "prepublish": "npm run build"
  },
  "node": {
    "clean": "rimraf dist"
  }
}
