66 lines
1.8 KiB
YAML
66 lines
1.8 KiB
YAML
# NEX 0.1.7 默认项目配置
|
|
# 新项目使用明确默认栈;已有项目保留真实栈。
|
|
# 普通使用无需填写整张表,只需覆盖与项目意图不同的字段。
|
|
|
|
nex:
|
|
version: "0.1.7"
|
|
compliance: required
|
|
|
|
project:
|
|
name: auto
|
|
lifecycle: auto # auto | 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
|
|
|
|
# NEX 只定义设计和开发行为,不定义测试工具或质量闸门。
|
|
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
|
|
responsive_design: required
|
|
accessibility_design: required
|
|
performance_aware_design: required
|
|
audit_before_broad_refactor: true
|
|
require_approval_for_broad_changes: true
|
|
|
|
agent:
|
|
default_execution: lightweight
|
|
load_documents_by_task: true
|
|
create_reports_by_default: false
|
|
create_custom_check_scripts: false
|
|
add_test_frameworks: false
|
|
run_full_project_audit_for_routine_tasks: false
|