@kmfb/create-node-ts-app
Version:
create-node-ts-app
76 lines (75 loc) • 2.07 kB
JSON
{
"name": "@kmfb/create-node-ts-app",
"version": "1.0.3",
"description": "create-node-ts-app",
"main": "./lib/index.js",
"keywords": [
"typescript",
"cli",
"typescript 脚手架",
"ts 脚手架",
"ts-cli",
"脚手架",
"node",
"create-node-ts-app"
],
"files": [
"package.json",
"README.md",
"lib"
],
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"dev:comment": "启动开发环境",
"dev": "ts-node-dev --respawn --transpile-only src/index.ts",
"eslint:comment": "使用 ESLint 检查并自动修复 src 目录下所有扩展名为 .ts 的文件",
"eslint": "eslint --fix src --ext .ts --max-warnings=0",
"prettier:comment": "自动格式化 src 目录下的所有 .ts 文件",
"prettier": "prettier --write \"src/**/*.ts\"",
"commit:comment": "引导设置规范化的提交信息",
"commit": "cz",
"prepare": "husky install",
"build:comment": "构建",
"build": "npm run eslint && npm run prettier && rm -rf lib && tsc --build"
},
"author": "kmfb",
"license": "ISC",
"devDependencies": {
"@commitlint/cli": "^16.0.1",
"@commitlint/config-conventional": "^16.0.0",
"@types/node": "^17.0.6",
"@typescript-eslint/eslint-plugin": "^5.8.1",
"@typescript-eslint/parser": "^5.9.0",
"cz-conventional-changelog": "^3.3.0",
"eslint": "^8.6.0",
"husky": "^7.0.4",
"lint-staged": "^12.1.5",
"prettier": "^2.5.1",
"ts-node-dev": "^1.1.8",
"typescript": "^4.5.4"
},
"config": {
"commitizen": {
"path": "./node_modules/cz-conventional-changelog"
}
},
"lint-staged": {
"*.js": "eslint --cache --fix",
"*.{js,css,md}": "prettier --write"
},
"husky": {
"hooks": {
"prepare-commit-msg": "exec < /dev/tty && git cz --hook || true"
}
},
"dependencies": {
"chalk": "^4.1.2",
"clear-console": "^1.1.0",
"commander": "^8.3.0",
"inquirer": "^8.2.0",
"shelljs": "^0.8.4"
},
"bin": {
"create-node-ts-app": "./bin/run.js"
}
}