nex_design_system/config/project-profile.example.yaml

87 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.6 默认项目配置
# 新项目采用明确默认技术栈;已有项目自动识别并保留现状。
# 通常无需填写。需要更换技术方案时,只修改 stack 中对应字段即可。
nex:
version: "0.1.6"
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
# 新项目默认技术栈(明确给定);已有项目不得因默认值不同而迁移。
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
performance_optimization_requires_measurement: true
accessibility:
engineering_target: WCAG_2_2_AA
routine_evidence_levels: [E0, E1, E2]
advanced_evidence_level: E3
real_screen_reader_testing: risk_based
screen_reader_platform_matrix: auto_by_project_support_scope
auto_start_screen_reader: false
explicit_user_approval_before_start: true
unavailable_environment_status: MANUAL_QA_REQUIRED