AGENTS.md
AGENTS.mdAGENTS.mdroot
Quality
34/100
Scores the file, not the repository.Length
115 words
6 headings · 0 code blocksRepository
2
— · pushed 2 days agoLast changed
3 days ago
First indexed 3 days ago.1# SmartUI miniapp 组件库仓库说明23项目下有 project.tuya.json 文件,包含了基本信息,其中:4- miniprogramRoot 字段表示 example 打包产物目录,不能为空56## 安装78- yarn install910## 项目结构1112- 此项目为用 小程序 开发, 语法类似微信小程序,语言选用 Typescript、less;测试用例采用 jest + miniprogram 方式去测试小程序代码1314总体项目目录:15- packages 目录下为所有组件的代码以及组件目录下的demo目录为demo的代码16- example 为组件库的demo 目录,在打包时我们会将 packages 目录下的组件 demo打包到 example 的dist 目录下用于在运行编辑器内预览实际运行的效果,但是我们实际在开发时只需要改动 packages 目录下的内容即可1718单个组件目录结构:19- demo 组件的demo 代码位置20- test 测试用例代码位置 其中 demo.spec.ts 文件为 demo 代码的快照用于测试demo生成的一致性;部分组件会有index.spec.ts 文件是因为部分组件光使用测试快照的方式代码覆盖不全,需要单独书写测试用例去填补测试用例不足21- index.json 基础配置文件,组件需要引入其他组件时 需要在 usingComponents 字段内配置22- index.less 样式文件,会自动加载23- index.ts 主要逻辑文件24- index.wxml dom文件25- index.wxs dom文件引入的计算逻辑文件,内部只能书写es5代码,但是计算时的性能会比放在 index.ts 文件内好26- README.en.md 英文版本的README27- README.md 中文版本的README2829## 多语言3031example/i18n/strings.json 其是一个JSON 对象,en 代表英文,zh 代表中文;32在我们demo 书写时都需要使用例如:title="{{I18n.t('basicUsage')}}" 这样的代码,通过I18n方法去调用strings文件内的key 生成文案,这样可以在不同的语言环境下生成不同的多语言文案33README文件内在将demo的代码书写时不需要使用 I18n 方法,直接根据README中英文类别直接写对应strings.json 对应语种文案即可343536## 启动开发3738- yarn dev3940## 测试4142- yarn test 测试整个项目43- yarn test:cover 测试整个项目并计算测试覆盖率
Also in Tuya-Community/miniapp-smart-ui
Diff this repo’s formatsOne repository carrying more than one format is the comparison this product exists for: does anyone actually write different content in each file, or is one a copy of the other?
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| Tuya-Community/miniapp-smart-ui.cursor/rules/wxs-es5.mdc · 2 | Cursor rules | no sections | 39/100 | 3 days ago | |
| Tuya-Community/miniapp-smart-ui.cursor/rules/component-structure.mdc · 2 | Cursor rules | no sections | 38/100 | 3 days ago | |
| Tuya-Community/miniapp-smart-ui.cursor/rules/demo-and-i18n.mdc · 2 | Cursor rules | testdocs | 50/100 | 3 days ago | |
| Tuya-Community/miniapp-smart-ui.cursor/rules/miniapp-test.mdc · 2 | Cursor rules | test | 63/100 | 3 days ago |
Similar configs
Same format, overlapping stack, ranked by quality.
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| n8n-io/n8npackages/@n8n/agents/AGENTS.md · 199k | AGENTS.md | buildteststylearch+3 | 100/100 | 3 days ago | |
| TryGhost/Ghoste2e/AGENTS.md · 55k | AGENTS.md | setupteststylearch+2 | 100/100 | 3 days ago | |
| mui/material-uiAGENTS.md · 99k | AGENTS.md | setupbuildtestlint-format+9 | 100/100 | 3 days ago | |
| duckduckgo/content-scope-scriptsspecial-pages/AGENTS.md · 70 | AGENTS.md | buildteststylearch+3 | 100/100 | 3 days ago | |
| wpscanteam/wpscanAGENTS.md · 9.7k | AGENTS.md | setupbuildteststyle+6 | 100/100 | 2 days ago | |
| aaif-goose/gooseAGENTS.md · 52k | AGENTS.md | setupbuildtestlint-format+6 | 100/100 | 3 days ago | |
| trick77/agents-md-syncAGENTS.md · 2 | AGENTS.md | setupbuildteststyle+5 | 100/100 | 3 days ago | |
| code-yeongyu/oh-my-openagentpackages/web/AGENTS.md · 67k | AGENTS.md | setupbuildtestlint-format+6 | 100/100 | 2 days ago |
