Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
.DS_Store
node_modules
/dist
/_site
/tests/**/coverage/

# local env files
Expand Down Expand Up @@ -37,4 +38,7 @@ src/config/ConfigDev.ts
# 测试文件
template-vite-*
template-webpack-*
template-farm-*
template-farm-*

# npm/pnpm pack 产物
*.tgz
1 change: 1 addition & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
npx lint-staged
4 changes: 1 addition & 3 deletions .prettierrc.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module.exports = {
export default {
// 一行最多 120 字符
printWidth: 150,
// 使用 2 个空格缩进
Expand All @@ -17,8 +17,6 @@ module.exports = {
trailingComma: 'none',
// 大括号内的首尾需要空格
bracketSpacing: true,
// jsx 标签的反尖括号需要换行
jsxBracketSameLine: false,
// 箭头函数,只有一个参数的时候,也需要括号
arrowParens: 'always',
// 每个文件格式化的范围是文件的全部内容
Expand Down
72 changes: 26 additions & 46 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,61 +4,46 @@
"description": "CLI tool for TDesign Starter project",
"packageManager": "pnpm@10.30.3",
"type": "module",
"main": "./src/main.ts",
"lib": "./bin/index.js",
"bin": {
"td-starter": "./bin/index.js"
"td-starter": "./bin/index.mjs"
},
"typings": "./src/types/index.d.ts",
"scripts": {
"watch": "rollup -w -c",
"dev": "node ./bin/index.js",
"prebuild": "rimraf bin/",
"build": "rollup -c ",
"lint": "eslint 'src/**/*.{js,ts}'",
"watch": "tsdown -w",
"dev": "node ./bin/index.mjs",
"build": "tsdown",
"lint": "eslint src --ext .js,.ts",
"site": "echo 'no need to build site'",
"site:preview": "npm run build && tsx scripts/deploy.ts",
"test": "echo \"No tests yet\" && exit 0"
"test": "echo \"No tests yet\" && exit 0",
"prepare": "husky"
},
"repository": {
"type": "git",
"url": "https://github.com/tencent/tdesign-starter-cli.git"
},
"license": "MIT",
"devDependencies": {
"@babel/cli": "7.24.1",
"@babel/core": "7.24.4",
"@babel/eslint-plugin": "^7.23.5",
"@babel/plugin-proposal-export-default-from": "7.24.1",
"@babel/plugin-transform-runtime": "7.24.3",
"@babel/preset-env": "7.24.4",
"@babel/plugin-transform-typescript": "^7.24.4",
"@babel/preset-typescript": "^7.24.1",
"@rollup/plugin-babel": "^6.0.4",
"@rollup/plugin-json": "6.1.0",
"@rollup/plugin-node-resolve": "15.2.3",
"@rollup/plugin-terser": "^0.4.4",
"@rollup/plugin-typescript": "^11.1.6",
"@types/babel__core": "^7.20.5",
"@types/fs-extra": "11.0.4",
"@types/inquirer": "9.0.7",
"@types/node": "^22.1.0",
"@types/shelljs": "^0.8.15",
"@typescript-eslint/eslint-plugin": "7.7.0",
"@typescript-eslint/parser": "7.7.0",
"babel-loader": "9.1.3",
"eslint": "^8.56.0",
"husky": "9.0.11",
"lint-staged": "15.2.2",
"prettier": "^3.2.5",
"rollup": "^4.29.1",
"rollup-plugin-copy": "3.5.0",
"tsdown": "^0.21.7",
"typescript": "~5.7.0",
"tsx": "^4.21.0"
},
"dependencies": {
"@babel/plugin-transform-typescript": "^7.24.4",
"@babel/runtime": "7.24.4",
"@types/chalk": "2.2.0",
"@types/commander": "2.12.2",
"@types/fs-extra": "11.0.4",
"@types/inquirer": "9.0.7",
"@types/node": "20.12.7",
"@types/rimraf": "4.0.5",
"@babel/core": "7.24.4",
"axios": "~1.7.4",
"chalk": "5.3.0",
"clear": "0.1.0",
Expand All @@ -67,23 +52,11 @@
"download-git-repo": "3.0.2",
"figlet": "1.7.0",
"fs-extra": "11.2.0",
"glob": "^10.3.12",
"husky": "9.0.11",
"glob": "^13.0.6",
"inquirer": "9.2.19",
"is-ci": "3.0.1",
"lint-staged": "15.2.2",
"lodash": "4.17.21",
"minimist": "1.2.8",
"ora": "8.0.1",
"rimraf": "5.0.5",
"shelljs": "^0.8.5",
"tslib": "2.6.2",
"typescript": "5.4.5"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
"shelljs": "^0.8.5"
},
"lint-staged": {
"*.{js,ts,json}": [
Expand All @@ -97,9 +70,16 @@
"types/*",
"package.json",
"docs/*",
"template/*"
"templates/*"
],
"engines": {
"node": ">=16.0.0"
"node": ">=22.18.0"
},
"exports": {
".": "./bin/index.mjs",
"./package.json": "./package.json"
},
"publishConfig": {
"access": "public"
}
}
86 changes: 0 additions & 86 deletions rollup.config.js

This file was deleted.

Loading
Loading