plankit-cli 1.2.0 → 1.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +181 -30
- package/package.json +1 -1
- package/src/cli.js +20 -4
- package/src/commandBundles.js +2 -3
- package/templates/angular-commands/codex/angular-clone-pattern.md +23 -0
- package/templates/angular-commands/codex/angular-component-from.md +26 -0
- package/templates/angular-commands/codex/angular-design-match.md +20 -0
- package/templates/angular-commands/codex/angular-extract-component.md +21 -0
- package/templates/angular-commands/codex/angular-extract-store.md +19 -0
- package/templates/angular-commands/codex/angular-feature.md +24 -0
- package/templates/angular-commands/codex/angular-fixtures.md +23 -0
- package/templates/angular-commands/codex/angular-form-from-model.md +22 -0
- package/templates/angular-commands/codex/angular-generate-tests.md +20 -0
- package/templates/angular-commands/codex/angular-modernize.md +20 -0
- package/templates/angular-commands/codex/angular-page-from-api.md +23 -0
- package/templates/angular-commands/codex/angular-project-discovery.md +39 -0
- package/templates/angular-commands/codex/angular-responsive.md +21 -0
- package/templates/angular-commands/codex/angular-signalize.md +20 -0
- package/templates/angular-commands/codex/angular-split-component.md +21 -0
- package/templates/angular-commands/codex/angular-table-from-model.md +22 -0
- package/templates/angular-commands/codex/angular-wire-api.md +24 -0
- package/templates/angular-commands/cursor/angular-clone-pattern.md +24 -0
- package/templates/angular-commands/cursor/angular-component-from.md +27 -0
- package/templates/angular-commands/cursor/angular-design-match.md +21 -0
- package/templates/angular-commands/cursor/angular-extract-component.md +22 -0
- package/templates/angular-commands/cursor/angular-extract-store.md +20 -0
- package/templates/angular-commands/cursor/angular-feature.md +25 -0
- package/templates/angular-commands/cursor/angular-fixtures.md +24 -0
- package/templates/angular-commands/cursor/angular-form-from-model.md +23 -0
- package/templates/angular-commands/cursor/angular-generate-tests.md +21 -0
- package/templates/angular-commands/cursor/angular-modernize.md +21 -0
- package/templates/angular-commands/cursor/angular-page-from-api.md +24 -0
- package/templates/angular-commands/cursor/angular-project-discovery.md +39 -0
- package/templates/angular-commands/cursor/angular-responsive.md +22 -0
- package/templates/angular-commands/cursor/angular-signalize.md +21 -0
- package/templates/angular-commands/cursor/angular-split-component.md +22 -0
- package/templates/angular-commands/cursor/angular-table-from-model.md +23 -0
- package/templates/angular-commands/cursor/angular-wire-api.md +25 -0
- package/templates/angular-commands/opencode/angular-clone-pattern.md +21 -0
- package/templates/angular-commands/opencode/angular-component-from.md +24 -0
- package/templates/angular-commands/opencode/angular-design-match.md +18 -0
- package/templates/angular-commands/opencode/angular-extract-component.md +19 -0
- package/templates/angular-commands/opencode/angular-extract-store.md +17 -0
- package/templates/angular-commands/opencode/angular-feature.md +22 -0
- package/templates/angular-commands/opencode/angular-fixtures.md +21 -0
- package/templates/angular-commands/opencode/angular-form-from-model.md +20 -0
- package/templates/angular-commands/opencode/angular-generate-tests.md +18 -0
- package/templates/angular-commands/opencode/angular-modernize.md +18 -0
- package/templates/angular-commands/opencode/angular-page-from-api.md +21 -0
- package/templates/angular-commands/opencode/angular-project-discovery.md +39 -0
- package/templates/angular-commands/opencode/angular-responsive.md +19 -0
- package/templates/angular-commands/opencode/angular-signalize.md +18 -0
- package/templates/angular-commands/opencode/angular-split-component.md +19 -0
- package/templates/angular-commands/opencode/angular-table-from-model.md +20 -0
- package/templates/angular-commands/opencode/angular-wire-api.md +22 -0
- package/templates/angular-skills/gemini/angular-clone-pattern/SKILL.md +24 -0
- package/templates/angular-skills/gemini/angular-component-from/SKILL.md +27 -0
- package/templates/angular-skills/gemini/angular-design-match/SKILL.md +21 -0
- package/templates/angular-skills/gemini/angular-extract-component/SKILL.md +22 -0
- package/templates/angular-skills/gemini/angular-extract-store/SKILL.md +20 -0
- package/templates/angular-skills/gemini/angular-feature/SKILL.md +25 -0
- package/templates/angular-skills/gemini/angular-fixtures/SKILL.md +24 -0
- package/templates/angular-skills/gemini/angular-form-from-model/SKILL.md +23 -0
- package/templates/angular-skills/gemini/angular-generate-tests/SKILL.md +21 -0
- package/templates/angular-skills/gemini/angular-modernize/SKILL.md +21 -0
- package/templates/angular-skills/gemini/angular-page-from-api/SKILL.md +24 -0
- package/templates/angular-skills/gemini/angular-project-discovery/SKILL.md +41 -0
- package/templates/angular-skills/gemini/angular-responsive/SKILL.md +22 -0
- package/templates/angular-skills/gemini/angular-signalize/SKILL.md +21 -0
- package/templates/angular-skills/gemini/angular-split-component/SKILL.md +22 -0
- package/templates/angular-skills/gemini/angular-table-from-model/SKILL.md +23 -0
- package/templates/angular-skills/gemini/angular-wire-api/SKILL.md +25 -0
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: angular-wire-api
|
|
3
|
+
description: Replace static UI data with real API calls, choosing the dominant data-access pattern.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# /wire-api
|
|
7
|
+
|
|
8
|
+
Wire a component to real data using the repository's dominant approach.
|
|
9
|
+
|
|
10
|
+
## Workflow
|
|
11
|
+
1. Derive UI requirements (collection, search, pagination, delete, refresh).
|
|
12
|
+
2. Map service APIs onto those needs.
|
|
13
|
+
3. Inspect existing patterns first: async pipe, toSignal, resource, feature store, NgRx, SignalStore, custom store.
|
|
14
|
+
4. Choose the DOMINANT project pattern.
|
|
15
|
+
5. Handle all states: initial, loading, loaded, empty, error, refreshing, mutation pending, mutation error.
|
|
16
|
+
|
|
17
|
+
## Guardrail
|
|
18
|
+
Do not wire unsupported actions. If the UI has Edit but the API has no update, report unresolved functionality instead of wiring.
|
|
19
|
+
|
|
20
|
+
## Options
|
|
21
|
+
- --preserve-mocks keep mocks for Storybook/dev-mode
|
|
22
|
+
|
|
23
|
+
# angular-wire-api
|
|
24
|
+
|
|
25
|
+
Project Discovery must run first. Execute the workflow with the target arguments from the request.
|