RuleStack

Configs

Stacks

Compare

Diff

RuleStack

Configs

Stacks

Compare

Diff

Read API

RuleStack

Configs

Stacks

Compare

Diff

Read API

Configs/AGENTS.md/Tuya-Community/miniapp-smart-ui

AGENTS.md

AGENTS.md
AGENTS.mdroot

Quality

34/100

Scores the file, not the repository.

Length

115 words

6 headings · 0 code blocks

Repository

2

— · pushed 2 days ago

Last changed

3 days ago

First indexed 3 days ago.
Tuya-Community/miniapp-smart-ui/AGENTS.mdRawGitHub
1# SmartUI miniapp 组件库仓库说明
2 
3项目下有 project.tuya.json 文件,包含了基本信息,其中:
4- miniprogramRoot 字段表示 example 打包产物目录,不能为空
5 
6## 安装
7 
8- yarn install
9 
10## 项目结构
11 
12- 此项目为用 小程序 开发, 语法类似微信小程序,语言选用 Typescript、less;测试用例采用 jest + miniprogram 方式去测试小程序代码
13 
14总体项目目录:
15- packages 目录下为所有组件的代码以及组件目录下的demo目录为demo的代码
16- example 为组件库的demo 目录,在打包时我们会将 packages 目录下的组件 demo打包到 example 的dist 目录下用于在运行编辑器内预览实际运行的效果,但是我们实际在开发时只需要改动 packages 目录下的内容即可
17 
18单个组件目录结构:
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 英文版本的README
27- README.md 中文版本的README
28 
29## 多语言
30 
31example/i18n/strings.json 其是一个JSON 对象,en 代表英文,zh 代表中文;
32在我们demo 书写时都需要使用例如:title="{{I18n.t('basicUsage')}}" 这样的代码,通过I18n方法去调用strings文件内的key 生成文案,这样可以在不同的语言环境下生成不同的多语言文案
33README文件内在将demo的代码书写时不需要使用 I18n 方法,直接根据README中英文类别直接写对应strings.json 对应语种文案即可
34 
35 
36## 启动开发
37 
38- yarn dev
39 
40## 测试
41 
42- yarn test 测试整个项目
43- yarn test:cover 测试整个项目并计算测试覆盖率

Sections

  • SmartUI miniapp 组件库仓库说明
  • 安装
  • 项目结构
  • 多语言
  • 启动开发
  • 测试

What it covers

setuptest

Stack — with the evidence

typescript

(1.00)

jest

(1.00)

vue

(0.70)

javascript

(0.60)

eslint

(0.60)

github-actions

(0.60)

Format

AGENTS.md

A plain-markdown README for coding agents, deliberately unopinionated: no frontmatter, no globs, no vendor keys. That minimalism is why it became the one file a dozen different agents will read, and why it carries the least per-file targeting power of any format here.

What the corpus says about it

Repository

Owner
Tuya-Community
Language
—
License
—
Archived
no

All configs in this repo

Also in Tuya-Community/miniapp-smart-ui

Diff this repo’s formats

One 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?

The other instruction files in this repository
RepositoryFormatStackCoversScoreChanged
Tuya-Community/miniapp-smart-ui.cursor/rules/wxs-es5.mdc · 2Cursor rulestypescriptjest+4no sections39/1003 days ago
Tuya-Community/miniapp-smart-ui.cursor/rules/component-structure.mdc · 2Cursor rulestypescriptjest+4no sections38/1003 days ago
Tuya-Community/miniapp-smart-ui.cursor/rules/demo-and-i18n.mdc · 2Cursor rulestypescriptjest+4testdocs50/1003 days ago
Tuya-Community/miniapp-smart-ui.cursor/rules/miniapp-test.mdc · 2Cursor rulestypescriptjest+4test63/1003 days ago
Diff against .cursor/rules/wxs-es5.mdc Diff against .cursor/rules/component-structure.mdc Diff against .cursor/rules/demo-and-i18n.mdc Diff against .cursor/rules/miniapp-test.mdc

Similar configs

Same format, overlapping stack, ranked by quality.

Same format, overlapping stack, ranked by quality
RepositoryFormatStackCoversScoreChanged
n8n-io/n8npackages/@n8n/agents/AGENTS.md · 199kAGENTS.mdtypescriptlangchain+16buildteststylearch+3100/1003 days ago
TryGhost/Ghoste2e/AGENTS.md · 55kAGENTS.mdtypescriptjavascript+12setupteststylearch+2100/1003 days ago
mui/material-uiAGENTS.md · 99kAGENTS.mdtypescriptjavascript+13setupbuildtestlint-format+9100/1003 days ago
duckduckgo/content-scope-scriptsspecial-pages/AGENTS.md · 70AGENTS.mdtypescriptjavascript+5buildteststylearch+3100/1003 days ago
wpscanteam/wpscanAGENTS.md · 9.7kAGENTS.mdrubyvue+3setupbuildteststyle+6100/1002 days ago
aaif-goose/gooseAGENTS.md · 52kAGENTS.mdrusttypescript+2setupbuildtestlint-format+6100/1003 days ago
trick77/agents-md-syncAGENTS.md · 2AGENTS.mdtypescriptnode+4setupbuildteststyle+5100/1003 days ago
code-yeongyu/oh-my-openagentpackages/web/AGENTS.md · 67kAGENTS.mdtypescriptbun+10setupbuildtestlint-format+6100/1002 days ago
RuleStack

Built by

Kynth Studio

Directory

Configs
Stacks
Compare formats
Diff two configs
Best AGENTS.md examples

Formats

AGENTS.md
CLAUDE.md
Cursor rules
Copilot instructions

Reference

Read API
Corpus health
Privacy Policy
Terms

RuleStack

RuleStack

Built by

Kynth Studio

Directory

Configs
Stacks
Compare formats
Diff two configs
Best AGENTS.md examples

Formats

AGENTS.md
CLAUDE.md
Cursor rules
Copilot instructions

Reference

Read API
Corpus health
Privacy Policy
Terms

RuleStack

RuleStack

Built by

Kynth Studio

Directory

Configs
Stacks
Compare formats
Diff two configs
Best AGENTS.md examples

Formats

AGENTS.md
CLAUDE.md
Cursor rules
Copilot instructions

Reference

Read API
Corpus health
Privacy Policy
Terms

RuleStack