tencent / tdesign-starter-cli Goto Github PK
View Code? Open in Web Editor NEWCLI tool for TDesign Starter kit
License: MIT License
CLI tool for TDesign Starter kit
License: MIT License
v0.3.2
No response
✔ 构建环境正常!
? 请输入项目名称: aa
? 请输入项目描述: Base on tdesign-starter-cli
? 选择模板类型: 【Vue3】模板
? 生成代码版本: 通用模板版本
? 选择包含模块: 自定义选择
No response
TypeError: Cannot read properties of undefined (reading 'replace')
at e.generateSourceModulesData (C:\Users\LI\AppData\Roaming\npm\node_modules\tdesign-starter-cli\bin\index.js:2:11248)
at e.parseConfigSourceVue3 (C:\Users\LI\AppData\Roaming\npm\node_modules\tdesign-starter-cli\bin\index.js:2:26617)
at e. (C:\Users\LI\AppData\Roaming\npm\node_modules\tdesign-starter-cli\bin\index.js:2:24821)
at step (C:\Users\LI\AppData\Roaming\npm\node_modules\tdesign-starter-cli\node_modules\tslib\tslib.js:143:27)
at Object.next (C:\Users\LI\AppData\Roaming\npm\node_modules\tdesign-starter-cli\node_modules\tslib\tslib.js:124:57)
at fulfilled (C:\Users\LI\AppData\Roaming\npm\node_modules\tdesign-starter-cli\node_modules\tslib\tslib.js:114:62)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
No response
No response
win11
v18.14.0
No response
v0.2.4
No response
1,td-starter init
2,
?请输入项目名称: view
? 请输入项目描述: test
? 选择模板类型: 【Vue3】模板
构建成功
D:\work\packtool>td-starter init
|_ | | _ \ ___ ___ () __ _ _ __ / | | | __ _ _ __ | | ___ _ __
| | | | | | / _ \ / | | | / _ | | '_ \ \___ \ | __| / _
| | '| | | / _ \ | '|
| | | || | | / _ \ | | | (| | | | | | ) | | | | (| | | | | | | __/ | |
|| |____/ _| |/ || _, | || || |/ _| _,| || _| ___| ||
|___/
√ 构建环境正常!
? 请输入项目名称: view
? 请输入项目描述: Base on tdesign-starter-cli
? 选择模板类型: 【Vue3】模板
? 选择包含模块: 全部
👉 开始构建,请稍侯...
| 正在构建模板...
√ 构建成功!
write file error== Error: ENOENT: no such file or directory, open 'view\package.json'
at Object.openSync (node:fs:585:3)
at Object.readFileSync (node:fs:453:35)
at e.executeBuildSuccess (C:\Users\Administrator\AppData\Roaming\npm\node_modules\tdesign-starter-cli\bin\index.js:2:29053)
at e. (C:\Users\Administrator\AppData\Roaming\npm\node_modules\tdesign-starter-cli\bin\index.js:2:28474)
at step (C:\Users\Administrator\AppData\Roaming\npm\node_modules\tdesign-starter-cli\node_modules\tslib\tslib.js:143:27)
at Object.next (C:\Users\Administrator\AppData\Roaming\npm\node_modules\tdesign-starter-cli\node_modules\tslib\tslib.js:124:57)
at fulfilled (C:\Users\Administrator\AppData\Roaming\npm\node_modules\tdesign-starter-cli\node_modules\tslib\tslib.js:114:62)
at processTicksAndRejections (node:internal/process/task_queues:96:5) {
errno: -4058,
syscall: 'open',
code: 'ENOENT',
path: 'view\package.json'
}
👏 初始化项目完成!👏
命令提示:
$ cd ./view
$ npm install
$ npm run dev
No response
No response
Windows 11 21H2
v16.13.1
No response
v0.2.3
td-starter init => vue3
No response
No response
No response
No response
Chrome(102.0.5005.63)
win11
v16.14.0
No response
最新
No response
是否提供简洁的模板呢?
是否提供简洁的模板呢?
是否提供简洁的模板呢?
No response
No response
No response
No response
No response
最新版
No response
✔ 构建环境正常!
? 请输入项目名称: IMIS.SSO.UI
? 请输入项目描述: Base on tdesign-starter-cli
? 选择模板类型: PC【Vue3】模板
? 生成代码版本: 通用模板版本
? 选择包含模块: 自定义选择
? 选择您需要生成的模块内容
👉 开始构建,请稍侯...
✖ ❗错误:下载模板失败
❗错误信息: Error: end of central directory record signature not found
❗请尝试执行:git clone https://github.com/Tencent/tdesign-vue-next-starter.git 使用
executeDownload error == Error: end of central directory record signature not found
at D:\Program Files\nodejs\node_global\node_modules\tdesign-starter-cli\node_modules.store\[email protected]\node_modules\yauzl\index.js:187:14
at D:\Program Files\nodejs\node_global\node_modules\tdesign-starter-cli\node_modules.store\[email protected]\node_modules\yauzl\index.js:631:5
at Immediate. (D:\Program Files\nodejs\node_global\node_modules\tdesign-starter-cli\node_modules.store\[email protected]\node_modules\fd-slicer\index.js:202:5)
at process.processImmediate (node:internal/timers:476:21)
正常安装
安装失败
No response
No response
No response
No response
No response
❗错误:下载模板失败
❗错误信息: RequestError: getaddrinfo ENOTFOUND github.com.cnpmjs.org
❗请尝试执行:git clone https://github.com/Tencent/tdesign-vue-next-starter.git 使用
0.2.4
No response
No response
No response
No response
No response
No response
No response
No response
No response
0.3.1
git init
后,npm install
会报 'is-ci' 不是内部或外部命令,也不是可运行的程序
No response
No response
No response
No response
No response
No response
No response
v0.3.3
No response
No response
能够选择模板的版本,默认拉取最新版本
No response
No response
No response
No response
No response
No response
目前lite版本默认使用vite 希望新增webpack版本的支持 满足用户不同的需求
在templates中新增模板代码 支持webpack版本的模板生成
TDesign Starter ,希望建议下,出一个非ts的版本。ts版本感觉对于后端上手难度略高,不利于普遍使用。
0.2.2
td-starter init
初始化项目之后components.ts
中的图标使用有点问题,应该是"icon": ViewModuleIcon
,生成代码"icon": "ViewModuleIcon"
import { ViewModuleIcon, Edit1Icon, LayersIcon } from 'tdesign-icons-vue';
{
...
"meta": {
"title": "列表页",
"icon": ViewModuleIcon
},
}
import { ViewModuleIcon, Edit1Icon, LayersIcon } from 'tdesign-icons-vue';
{
...
"meta": {
"title": "列表页",
"icon": "ViewModuleIcon"
},
}
0.3.3
无需链接即可重现
td-starter init
? 请输入项目名称: test2
? 请输入项目描述: Base on tdesign-starter-cli
? 选择模板类型: (Use arrow keys)
❯ 【Vue2】模板
? 生成代码版本: (Use arrow keys)
❯ Lite版本 (只包含TDesign的基本使用和项目工程)
? 请选择构建工具 (Use arrow keys)
❯ vite
👉 开始构建,请稍侯...
⠋ 正在构建模板...👉 生成代码完毕...
✔ 构建成功!
👏 初始化项目完成!👏
.gitignore
文件cd test2 && ls -a
# . README.md index.html public vite.config.js
# .. assets package.json src
生成的lite模板含有.gitignore
文件
模板没有.gitignore
文件。.gitignore文件非常重要,没有此文件可能导致不注意时上传了node_modules或者其他文件。
No response
No response
No response
16.20.0
根据npm官网文档,.gitignore
文件会被忽略发布,需要特殊配置
原文信息:
Files included in package
To see what will be included in your package, run npm pack --dry-run. All files are included by default, with the following exceptions:
Certain files that are relevant to package installation and distribution are always included. For example, package.json, README.md, LICENSE, and so on.
If there is a "files" list in package.json, then only the files specified will be included. (If directories are specified, then they will be walked recursively and their contents included, subject to the same ignore rules.)
If there is a .gitignore or .npmignore file, then ignored files in that and all child directories will be excluded from the package. If both files exist, then the .gitignore is ignored, and only the .npmignore is used.
.npmignore files follow the same pattern rules as .gitignore files
If the file matches certain patterns, then it will never be included, unless explicitly added to the "files" list in package.json, or un-ignored with a ! rule in a .npmignore or .gitignore file.
Symbolic links are never included in npm packages.
See developers for full details on what's included in the published package, as well as details on how the package is built.
Is your feature request related to a problem? Please describe.
Like the command npm init -y
to initialize the project
Describe the solution you'd like
you can directly create the project with the command td-starter init -y
. The user does not have to enter too many configurations
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.