{
  "name": "@xiao-edu/cr",
  "version": "1.9.30",
  "description": "The command line tool for create files by tpl",
  "scripts": {
    "start": "npm run clean && npm run compile -- --watch",
    "show": "node task/show",
    "deploy": "node task/deploy",
    "open:cmder": "cmder || cr open D:/software/cmder/cmder -f -n",
    "open:local": "cr open .env.local",
    "open:root": "cr open .",
    "server:dev": "pm2-dev start ./build/server/app.js",
    "server:start": "node ./build/server/app.js",
    "debugger:server": "node --inspect-brk ./build/server/app.js",
    "debugger:cr": "node --inspect-brk bin/cr.js",
    "build": "npm run build:task-utils && npm run build:cr",
    "build:cr": "npm run clean && npm run compile",
    "build:task-utils": "rimraf task/utils && tsc -p tsconfig-task-utils.json",
    "bundlesize": "bundlesize",
    "merge-to-dev": "node task/merge-to-dev",
    "test:watch": "jest --watch",
    "test": "jest --detectOpenHandles",
    "test:cr": "rimraf test/temp && cr test/temp",
    "clean": "rimraf build",
    "compile": "tsc",
    "standard-version": "standard-version",
    "publish:npm": "node task/publish",
    "release:minor": "node task/publish minor",
    "postinstall": "node ./task/life-cycle/post-install || echo 'ignore post-install'",
    "eslint:fix": "eslint --fix src/**/*.{tsx,js,ts} --ignore-pattern **/*.d.ts",
    "prettier:write": "prettier --write src/**/*.{tsx,scss,ts,js,css}",
    "pre-commit": "lint-staged",
    "link": "npm link",
    "destroy": "npm unlink",
    "ci": "bash task/build-fe-server/build.sh"
  },
  "scripts-info": {
    "start": "启动typescript的watch编译模式，开发时必须启动",
    "deploy": "git commit并git push到远程仓库",
    "publish:npm": "发布新的npm包到公共npm仓库",
    "standard-version": "更好的npm version命令，同时可以自动生成更新日志到CHANGELOG.md",
    "release:minor": "发布次版本号的npm包，即包含新api引入，但没有破坏性更新",
    "bundlesize": "用于检查每次打好的包的体积，超过规定大小会提醒",
    "eslint:fix": "修复eslint发现的问题",
    "prettier:write": "规范化src所有文件的代码风格问题",
    "server:dev": "开发版启动任务服务器，会自动watch并打印日志",
    "server:start": "使用pm2 json配置文件来启动任务服务器，原命令：pm2 start ./build/server/pm2.json",
    "merge-to-dev": "合并当前分支已经提交到远程的代码到dev上，就会自动打包到测试",
    "destroy": "卸载所有命令行",
    "build:cr": "编译cr的命令行程序",
    "build:task-utils": "编译task/utils文件夹，从ts转为js，方便外部使用",
    "ci": "用于将 node 中间层服务部署到测试机上",
    "discard-script": {
      "desc": "暂时不使用的npm scripts",
      "prepublishOnly": "`node task/publish-guard`，publish到npm时的守卫，阻止直接运行npm publish",
      "prepare": "npm run build，会在npm install和npm publish时触发，可以运行打包任务",
      "pre-push": "npm run test",
      "security": "yarn audit --audit-level high"
    },
    "discard-pkg": {
      "desc": "已经废弃，不使用的包",
      "cash": "^0.8.0"
    }
  },
  "devDependencies": {
    "@babel/core": "^7.15.0",
    "@babel/generator": "^7.15.0",
    "@babel/parser": "^7.15.3",
    "@babel/traverse": "^7.15.0",
    "@babel/types": "^7.15.0",
    "@commitlint/cli": "^12.1.4",
    "@commitlint/config-conventional": "^12.1.4",
    "@types/configstore": "^5.0.1",
    "@types/cross-spawn": "^6.0.2",
    "@types/debug": "^4.1.7",
    "@types/envinfo": "^7.8.1",
    "@types/express": "^4.17.13",
    "@types/fs-extra": "^9.0.13",
    "@types/inquirer": "^7.3.3",
    "@types/jest": "^27.4.0",
    "@types/node": "^15.14.9",
    "@types/node-notifier": "^8.0.2",
    "@types/shelljs": "^0.8.11",
    "@types/unzipper": "^0.10.5",
    "@typescript-eslint/eslint-plugin": "^4.30.0",
    "@typescript-eslint/parser": "^4.30.0",
    "bundlesize": "^0.18.1",
    "eslint": "^7.32.0",
    "eslint-config-prettier": "^8.5.0",
    "eslint-config-standard": "^16.0.3",
    "eslint-plugin-import": "^2.26.0",
    "eslint-plugin-node": "^11.1.0",
    "eslint-plugin-prettier": "^3.4.1",
    "eslint-plugin-promise": "^5.2.0",
    "husky": "^4.3.8",
    "jest": "^27.5.1",
    "lint-staged": "^10.5.4",
    "morgan": "^1.10.0",
    "node-xlsx": "^0.21.0",
    "np": "^7.6.1",
    "rimraf": "^3.0.2",
    "standard-version": "^9.5.0",
    "ts-jest": "^27.1.3",
    "ts-node": "^9.1.1",
    "typescript": "^4.4.2"
  },
  "dependencies": {
    "address": "^1.2.0",
    "anywhere": "^1.6.0",
    "axios": "^0.27.2",
    "chalk": "^4.1.2",
    "clipboardy": "^2.3.0",
    "commander": "^7.2.0",
    "configstore": "^5.0.1",
    "cross-spawn": "^7.0.3",
    "debug": "^4.3.4",
    "dependency-tree": "^8.1.2",
    "dotenv": "^8.6.0",
    "dotenv-expand": "^5.1.0",
    "envinfo": "^7.8.1",
    "esc-exit": "^2.0.2",
    "execa": "^5.1.1",
    "express": "^4.18.1",
    "figlet": "^1.5.2",
    "file-type": "^16.5.3",
    "find-up": "^5.0.0",
    "fs-extra": "^9.1.0",
    "get-stdin": "^8.0.0",
    "globby": "^11.1.0",
    "inquirer": "^8.2.4",
    "javascript-stringify": "^2.1.0",
    "jsome": "^2.5.0",
    "localtunnel": "^2.0.2",
    "lodash": "^4.17.21",
    "log-symbols": "^4.1.0",
    "node-notifier": "^9.0.1",
    "open": "^7.4.2",
    "ora": "^5.4.1",
    "pid-from-port": "^1.1.3",
    "please-upgrade-node": "^3.2.0",
    "portfinder": "^1.0.28",
    "prettier": "^2.6.2",
    "qrcode": "^1.5.0",
    "shell-quote": "^1.7.3",
    "shelljs": "^0.8.5",
    "slash": "^3.0.0",
    "unzipper": "^0.10.11",
    "update-notifier": "^5.1.0",
    "wallpaper": "^5.0.1"
  },
  "husky": {
    "hooks": {
      "pre-commit": "lint-staged",
      "commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
    }
  },
  "lint-staged": {
    "src/**/*.{tsx,ts,js,jsx}": [
      "prettier --write",
      "eslint --fix --ignore-pattern **/*.d.ts"
    ],
    "**/*.{json,md}": [
      "prettier --write"
    ]
  },
  "main": "build/create-react/index.js",
  "typings": "build/create-react/index.d.ts",
  "bin": {
    "cr": "bin/cr.js"
  },
  "files": [
    "bin",
    "build/create-react",
    "task/life-cycle",
    "task/utils"
  ],
  "bundlesize": [
    {
      "path": "./build/**/*.js",
      "maxSize": "4 kB"
    }
  ],
  "keywords": [
    "cli",
    "create folder and file",
    "components",
    "template",
    "file operation",
    "tool",
    "shell",
    "task",
    "scripts",
    "terminal",
    "windows",
    "linux",
    "mac"
  ],
  "author": "Li Hao <cvb740@163.com>",
  "license": "MIT",
  "repository": {
    "type": "git",
    "url": "git+https://gitlab.com/lihao/global-cli.git"
  },
  "homepage": "https://gitlab.com/lihao/global-cli.git#readme",
  "bugs": {
    "url": "https://gitlab.com/lihao/global-cli/issues"
  },
  "preferGlobal": true,
  "publishConfig": {
    "access": "public",
    "registry": "https://registry.npmjs.org"
  },
  "engines": {
    "node": ">= 7.6.0",
    "npm": ">= 4.1.2"
  },
  "os": [
    "win32",
    "darwin",
    "linux"
  ]
}
