nex_design_system/config/project-profile.example.yaml

83 lines
2.3 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

# NEX 0.1.5 默认项目配置
# 原则:新项目直接采用明确的默认技术栈;已有项目自动识别并保留现状。
# 通常无需填写。需要更换技术方案时,只修改 stack 中对应字段即可。
nex:
version: "0.1.5"
compliance: required
profile_mode: default_stack_with_project_adaptation
project:
name: auto
lifecycle: auto # auto | new | existing;空仓库按 new,已有代码按 existing
type: fullstack # fullstack | frontend-only | backend-only
language: zh-CN
# 新项目默认技术栈(明确给定,不再要求 Agent 自行猜选型)
# lifecycle=new 时作为脚手架和实现目标;lifecycle=existing 时仅作参考,不得据此迁移现有技术栈。
stack:
preset: nex-standard-fullstack
version_policy: latest-stable-compatible
lockfile: required
frontend:
framework: React
language: TypeScript
build_tool: Vite
package_manager: npm
ui_library: Ant Design
styling: Tailwind CSS v4 + CSS Variables
state_management: Zustand
routing: React Router
http_client: Axios
backend:
language: Python
framework: FastAPI
validation: Pydantic
orm: SQLAlchemy
migrations: Alembic
database:
development: SQLite
production: PostgreSQL
api:
style: REST
contract: OpenAPI
storage:
local_assets: ./data
# 跨项目工程要求
requirements:
use_shared_components: true
use_design_tokens: true
maintain_existing_interactions: true
preserve_verified_patterns: true
preserve_existing_stack: true
avoid_duplicate_design_system_layers: true
audit_before_broad_refactor: true
require_approval_for_broad_changes: true
# 新项目按默认工具链初始化;已有项目只发现现有命令,不得为匹配此处而强行替换工具。
tooling:
frontend:
lint: ESLint
format: Prettier
unit_test: Vitest
e2e_test: Playwright
backend:
test: Pytest
quality:
auto_discover_commands: true
responsive_review: true
keyboard_review: true
accessibility_naming_review: true
responsive_table_data_reconciliation: true
require_non_drag_alternative_when_applicable: true
evidence_levels: [E0, E1, E2, E3]
manual_at_for_complex_interactions: true
performance_optimization_requires_measurement: true