chore: update README and CLI usage for cursor_gen, version bump to 1.0.1
- Changed CLI usage instructions from `dart run cursor_gen` to `cursor_gen` for global activation. - Updated project-brief.yaml example and README to reflect new command usage. - Added app_context section in project-brief.yaml for theme variants and RBAC roles. - Fixed bundled template resolution for local and global installs to prevent 'Template not found' errors. - Version bump to 1.0.1 with corresponding updates in CHANGELOG and pubspec.yaml.
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
# =============================================================================
|
||||
# project-brief.yaml — SINGLE REFERENCE EXAMPLE for cursor_gen
|
||||
# Copy to your Flutter repo root, edit values, then: dart run cursor_gen
|
||||
# Copy to your Flutter repo root, edit values, then: cursor_gen
|
||||
# Schema / IDE hints: flutter-cursor-templates/generator/brief-schema.json
|
||||
# =============================================================================
|
||||
#
|
||||
@@ -13,7 +13,7 @@
|
||||
# -----------------------------------------------------------------------------
|
||||
# Template pin (Pillar 1) — bump when you intentionally upgrade template output
|
||||
# -----------------------------------------------------------------------------
|
||||
cursor_templates_version: "1.0.0"
|
||||
cursor_templates_version: "1.0.1"
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
# project — identity and rough size (affects rule tone / scaffolding hints)
|
||||
@@ -92,6 +92,16 @@ references:
|
||||
- "https://github.com/example/acme-design-tokens"
|
||||
local_paths: []
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
# app_context — themes & RBAC (mirrored to .cursor/cursor-gen-metadata.json)
|
||||
# -----------------------------------------------------------------------------
|
||||
# theme_variants: subset of [ light, dark, high_contrast ]; omit section or use [] → loader defaults to [light, dark]
|
||||
# roles_enabled / role_names: use named roles when the app has RBAC
|
||||
# app_context:
|
||||
# theme_variants: ["light", "dark", "high_contrast"]
|
||||
# roles_enabled: true
|
||||
# role_names: ["customer", "merchant", "admin"]
|
||||
|
||||
features:
|
||||
# modules: high-level feature areas in YOUR lib/ (names are project-specific)
|
||||
modules: ["auth", "home", "catalog", "cart", "checkout", "profile", "orders"]
|
||||
|
||||
Reference in New Issue
Block a user