@astryxdesign/cli 0.7.3 → 0.7.4-canary.1a552f2
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 +63 -63
- package/api/component/_adapter.mjs +4 -3
- package/api/component/component.mjs +13 -6
- package/api/component/doc-links.test.mjs +33 -0
- package/api/discover/_adapter.mjs +22 -10
- package/api/discover/_catalog-view.d.mts +2 -0
- package/api/discover/_catalog-view.mjs +1 -0
- package/api/discover/_catalog-view.test.mjs +1 -0
- package/api/discover/detail/detail.mjs +1 -0
- package/api/discover/detail/detail.test.mjs +3 -0
- package/api/discover/detail/doc/doc.mjs +5 -1
- package/api/discover/detail/doc/doc.test.mjs +1 -0
- package/api/discover/detail/item/item.mjs +2 -0
- package/api/discover/detail/item/item.test.mjs +2 -0
- package/api/discover/discover.doc.mjs +4 -4
- package/api/discover/discover.type.d.mts +20 -0
- package/api/discover/discover.type.mjs +5 -0
- package/api/discover/list/list.test.mjs +2 -0
- package/api/discover/search/search.d.mts +3 -2
- package/api/discover/search/search.mjs +26 -7
- package/api/discover/search/search.test.mjs +67 -0
- package/api/docs/_adapter.d.mts +80 -0
- package/api/docs/_adapter.mjs +261 -11
- package/api/docs/detail/detail.mjs +8 -0
- package/api/docs/docOverlays.test.mjs +2 -1
- package/api/docs/docs.d.mts +16 -6
- package/api/docs/docs.doc.mjs +1 -1
- package/api/docs/docs.mjs +55 -6
- package/api/docs/docs.type.d.mts +28 -2
- package/api/docs/docs.type.mjs +13 -3
- package/api/docs/guide-route-targets.test.mjs +1002 -0
- package/api/docs/index/index.mjs +9 -0
- package/api/docs/integration-tree.test.mjs +22 -0
- package/api/docs/integrationDocs.test.mjs +85 -0
- package/api/docs/list/list.mjs +7 -1
- package/api/docs/node/node.mjs +9 -1
- package/api/docs/reference-blocks.test.mjs +1 -1
- package/api/doctor/_adapter.d.mts +40 -0
- package/api/doctor/_adapter.mjs +171 -1
- package/api/doctor/built-checks.d.mts +85 -0
- package/api/doctor/built-checks.mjs +837 -0
- package/api/doctor/built-checks.test.mjs +531 -0
- package/api/doctor/doctor.d.mts +6 -5
- package/api/doctor/doctor.doc.mjs +11 -1
- package/api/doctor/doctor.mjs +18 -3
- package/api/doctor/doctor.type.d.mts +6 -0
- package/api/doctor/doctor.type.mjs +3 -0
- package/api/hook/list/list.d.mts +1 -1
- package/api/integration/_adapter.d.mts +11 -2
- package/api/integration/_adapter.mjs +30 -4
- package/api/integration/authoring-checks.mjs +29 -2
- package/api/integration/authoring-checks.test.mjs +131 -1
- package/api/integration/check/check.d.mts +4 -1
- package/api/integration/check/check.mjs +34 -4
- package/api/integration/check/check.test.mjs +49 -0
- package/api/integration/integration-check.type.d.mts +8 -0
- package/api/integration/integration-check.type.mjs +4 -1
- package/api/integration/integrationCheck.doc.mjs +8 -1
- package/api/integration/integrationDocConflicts.doc.mjs +1 -1
- package/api/integration/pack-check.mjs +71 -2
- package/api/integration/pack-check.test.mjs +77 -0
- package/api/integration/validate-integration-case-disk.test.mjs +2 -0
- package/api/integration/validate-integration-gaps.test.mjs +7 -4
- package/api/integration/validate-integration.mjs +96 -14
- package/api/integration/validate-integration.type.d.mts +10 -4
- package/api/integration/validate-integration.type.mjs +10 -5
- package/api/integration/validateIntegration.doc.mjs +1 -1
- package/api/search/_candidate-score.d.mts +3 -2
- package/api/search/_candidate-score.mjs +66 -3
- package/api/search/_gather-docs.mjs +12 -2
- package/api/search/_priority.mjs +2 -1
- package/api/search/_score.d.mts +2 -1
- package/api/search/_score.mjs +2 -2
- package/api/search/search.doc.mjs +1 -1
- package/api/search/search.family-members.test.mjs +124 -0
- package/api/search/search.mjs +28 -0
- package/api/theme/palette/generate/generate.d.mts +8 -0
- package/api/theme/palette/generate/generate.mjs +38 -11
- package/api/theme/palette/generate/generate.test.mjs +83 -4
- package/api/theme/palette/generate/generator.d.mts +6 -0
- package/api/theme/palette/generate/generator.mjs +6 -0
- package/api/theme/theme.type.d.mts +12 -1
- package/api/theme/theme.type.mjs +7 -1
- package/api/theme/themeBuild.doc.mjs +1 -1
- package/api/theme/themeList.doc.mjs +1 -1
- package/api/theme/themePaletteGenerate.doc.mjs +1 -1
- package/api/theme/themeTargets.doc.mjs +1 -1
- package/assets/discover/official-packages.json +16 -0
- package/assets/docs/author-a-theme.doc.mjs +15 -15
- package/assets/docs/browser-support.doc.mjs +1 -1
- package/assets/docs/getting-started.doc.mjs +16 -16
- package/assets/docs/is-my-code-good.doc.mjs +6 -6
- package/assets/docs/styling-overview.doc.mjs +5 -5
- package/assets/docs/theme.doc.mjs +5 -5
- package/assets/docs/tree/add-a-component.doc.mjs +1 -1
- package/assets/docs/tree/add-a-theme.doc.mjs +2 -2
- package/assets/docs/tree/add-a-topic.doc.mjs +6 -6
- package/assets/docs/tree/agent-guidance.doc.mjs +5 -5
- package/assets/docs/tree/authoring.doc.mjs +2 -2
- package/assets/docs/tree/block-template.doc.mjs +1 -1
- package/assets/docs/tree/check-the-props.doc.mjs +3 -3
- package/assets/docs/tree/check-your-docs.doc.mjs +6 -6
- package/assets/docs/tree/checks.doc.mjs +11 -11
- package/assets/docs/tree/ci-and-containers.doc.mjs +1 -1
- package/assets/docs/tree/cli-command.doc.mjs +6 -6
- package/assets/docs/tree/codemods.doc.mjs +7 -7
- package/assets/docs/tree/component-family.doc.mjs +1 -1
- package/assets/docs/tree/component-imports.doc.mjs +2 -2
- package/assets/docs/tree/component-lookups.doc.mjs +6 -5
- package/assets/docs/tree/computer-agent-guide.doc.mjs +7 -7
- package/assets/docs/tree/computer-integrations.doc.mjs +5 -5
- package/assets/docs/tree/debug-and-gap-reports.doc.mjs +3 -3
- package/assets/docs/tree/define-the-theme.doc.mjs +1 -1
- package/assets/docs/tree/describe-the-component.doc.mjs +1 -1
- package/assets/docs/tree/doc-syntax.doc.mjs +219 -0
- package/assets/docs/tree/export-template-assets.doc.mjs +1 -1
- package/assets/docs/tree/extend-or-replace.doc.mjs +39 -7
- package/assets/docs/tree/font-setup.doc.mjs +1 -1
- package/assets/docs/tree/generate-a-palette.doc.mjs +1 -1
- package/assets/docs/tree/global-integrations.doc.mjs +11 -11
- package/assets/docs/tree/global.doc.mjs +2 -2
- package/assets/docs/tree/host-entry.doc.mjs +1 -1
- package/assets/docs/tree/install-once.doc.mjs +4 -4
- package/assets/docs/tree/layout.doc.mjs +1 -1
- package/assets/docs/tree/links.doc.mjs +2 -2
- package/assets/docs/tree/migration-setup.doc.mjs +15 -15
- package/assets/docs/tree/migration.doc.mjs +2 -1
- package/assets/docs/tree/other-libraries.doc.mjs +1 -1
- package/assets/docs/tree/page-template.doc.mjs +2 -2
- package/assets/docs/tree/problems.doc.mjs +8 -8
- package/assets/docs/tree/project-global-or-both.doc.mjs +2 -2
- package/assets/docs/tree/publishing.doc.mjs +7 -7
- package/assets/docs/tree/quick-start.doc.mjs +9 -9
- package/assets/docs/tree/reference.doc.mjs +2 -2
- package/assets/docs/tree/replace-a-core-component.doc.mjs +1 -1
- package/assets/docs/tree/replace-a-core-template.doc.mjs +4 -4
- package/assets/docs/tree/scaffold.doc.mjs +1 -1
- package/assets/docs/tree/sections-and-placement.doc.mjs +3 -3
- package/assets/docs/tree/see-it-in-an-app.doc.mjs +3 -3
- package/assets/docs/tree/short-and-findable.doc.mjs +3 -3
- package/assets/docs/tree/single-component.doc.mjs +4 -4
- package/assets/docs/tree/start-a-template.doc.mjs +5 -5
- package/assets/docs/tree/styling-advanced.doc.mjs +1 -1
- package/assets/docs/tree/styling-libraries.doc.mjs +2 -1
- package/assets/docs/tree/styling.doc.mjs +1 -1
- package/assets/docs/tree/tailwind.doc.mjs +1 -1
- package/assets/docs/tree/test-in-an-app.doc.mjs +5 -5
- package/assets/docs/tree/test-template-in-app.doc.mjs +6 -6
- package/assets/docs/tree/tokens-and-setup.doc.mjs +1 -1
- package/assets/docs/tree/troubleshooting.doc.mjs +24 -20
- package/assets/docs/tree/uninstall.doc.mjs +2 -2
- package/assets/docs/tree/updates.doc.mjs +1 -1
- package/assets/docs/tree/upgrading.doc.mjs +3 -3
- package/assets/docs/tree/use-a-theme-in-an-app.doc.mjs +1 -1
- package/assets/docs/tree/verify-packed-template.doc.mjs +3 -3
- package/assets/docs/tree/versioning.doc.mjs +4 -4
- package/assets/docs/tree/who-answers.doc.mjs +4 -4
- package/assets/docs/tree/write-the-template-file.doc.mjs +4 -4
- package/assets/docs/use-a-theme.doc.mjs +10 -10
- package/assets/docs/use-integrations.doc.mjs +1 -1
- package/assets/docs/working-with-ai.doc.mjs +15 -15
- package/assets/templates/blocks/components/BottomSheet/BottomSheetSwitcherReviewFlow.doc.mjs +1 -1
- package/assets/templates/blocks/components/BottomSheet/BottomSheetSwitcherShowcase.doc.mjs +1 -1
- package/assets/templates/themes/butter/butterPaletteRefs.generated.ts +54 -0
- package/assets/templates/themes/butter/butterPalettes.generated.receipt.json +1499 -0
- package/assets/templates/themes/butter/butterPalettes.generated.ts +550 -0
- package/assets/templates/themes/butter/butterTheme.ts +274 -234
- package/assets/templates/themes/butter/palette.config.json +484 -0
- package/assets/templates/themes/gothic/gothicPaletteRefs.generated.ts +41 -0
- package/assets/templates/themes/gothic/gothicPalettes.generated.receipt.json +979 -0
- package/assets/templates/themes/gothic/gothicPalettes.generated.ts +271 -0
- package/assets/templates/themes/gothic/gothicTheme.ts +130 -160
- package/assets/templates/themes/gothic/palette.config.json +371 -0
- package/assets/templates/themes/matcha/matchaPaletteRefs.generated.ts +51 -0
- package/assets/templates/themes/matcha/matchaPalettes.generated.receipt.json +1502 -0
- package/assets/templates/themes/matcha/matchaPalettes.generated.ts +501 -0
- package/assets/templates/themes/matcha/matchaPalettes.ts +21 -0
- package/assets/templates/themes/matcha/matchaTheme.ts +164 -103
- package/assets/templates/themes/matcha/palette.config.json +448 -0
- package/assets/templates/themes/stone/palette.config.json +262 -0
- package/assets/templates/themes/stone/stonePaletteRefs.generated.ts +51 -0
- package/assets/templates/themes/stone/stonePalettes.generated.receipt.json +840 -0
- package/assets/templates/themes/stone/stonePalettes.generated.ts +501 -0
- package/assets/templates/themes/stone/stoneTheme.ts +190 -207
- package/assets/templates/themes/y2k/palette.config.json +166 -0
- package/assets/templates/themes/y2k/y2kPaletteRefs.generated.ts +54 -0
- package/assets/templates/themes/y2k/y2kPalettes.generated.receipt.json +872 -0
- package/assets/templates/themes/y2k/y2kPalettes.generated.ts +550 -0
- package/assets/templates/themes/y2k/y2kPalettes.ts +257 -0
- package/assets/templates/themes/y2k/y2kTheme.ts +164 -391
- package/authoring/codemod/codemod.doc.mjs +1 -1
- package/authoring/config/config.doc.mjs +4 -4
- package/authoring/debug/parse.d.mts +1 -1
- package/authoring/discover/discover.doc.mjs +1 -1
- package/authoring/doctypes/_schema.d.mts +4 -0
- package/authoring/doctypes/_schema.mjs +4 -0
- package/authoring/doctypes/reference/type.ts +14 -2
- package/authoring/gap-report/gap-report.doc.mjs +1 -1
- package/authoring/integration/integration.doc.mjs +6 -6
- package/clients/cli/commands/discover.mjs +1 -1
- package/clients/cli/commands/discover.sources.test.mjs +6 -0
- package/clients/cli/commands/docs.doc.mjs +1 -1
- package/clients/cli/commands/docs.mjs +27 -2
- package/clients/cli/commands/docs.test.mjs +1 -1
- package/clients/cli/commands/doctor-integration-docs.doc.mjs +1 -1
- package/clients/cli/commands/doctor.doc.mjs +13 -1
- package/clients/cli/commands/doctor.mjs +25 -9
- package/clients/cli/commands/integration-check.doc.mjs +11 -0
- package/clients/cli/commands/integration-check.test.mjs +36 -3
- package/clients/cli/commands/integration-pack.doc.mjs +1 -1
- package/clients/cli/commands/integration-verify.doc.mjs +1 -1
- package/clients/cli/commands/integration.mjs +15 -3
- package/clients/cli/commands/theme-targets.doc.mjs +1 -1
- package/clients/cli/commands/upgrade.doc.mjs +2 -2
- package/clients/cli/lib/define-command.mjs +5 -3
- package/foundation/agent-docs/agent-docs.d.mts +14 -2
- package/foundation/agent-docs/agent-docs.mjs +65 -4
- package/foundation/agent-docs/agent-docs.test.mjs +107 -0
- package/foundation/discovery/docs-discovery.d.mts +93 -2
- package/foundation/discovery/docs-discovery.mjs +237 -8
- package/foundation/discovery/runner-allowlist.d.mts +2 -0
- package/foundation/discovery/runner-allowlist.mjs +4 -0
- package/foundation/discovery/runner-commands.d.mts +29 -13
- package/foundation/discovery/runner-commands.mjs +253 -17
- package/foundation/discovery/stray-pointers.mjs +11 -5
- package/foundation/discovery/stray-pointers.test.mjs +6 -0
- package/foundation/doc-compiler/compile.mjs +8 -1
- package/foundation/doc-compiler/doc-loads.test.mjs +3 -0
- package/foundation/doc-compiler/doc-syntax.d.mts +194 -0
- package/foundation/doc-compiler/doc-syntax.mjs +739 -0
- package/foundation/doc-compiler/doc-syntax.test.mjs +383 -0
- package/foundation/doc-compiler/links.d.mts +13 -16
- package/foundation/doc-compiler/links.mjs +40 -7
- package/foundation/doc-compiler/tree.d.mts +5 -0
- package/foundation/doc-compiler/tree.mjs +9 -0
- package/foundation/env/package-manager.d.mts +18 -0
- package/foundation/env/package-manager.mjs +40 -0
- package/foundation/integrations/cli-requirement.d.mts +29 -0
- package/foundation/integrations/cli-requirement.mjs +47 -0
- package/foundation/integrations/cli-requirement.test.mjs +23 -2
- package/foundation/response/error-codes.test.mjs +9 -0
- package/foundation/response/response-types.doc.mjs +11 -11
- package/foundation/response/response-types.doc.test.mjs +29 -0
- package/package.json +9 -9
|
@@ -31,7 +31,7 @@ export const docs = {
|
|
|
31
31
|
type: 'list',
|
|
32
32
|
style: 'unordered',
|
|
33
33
|
items: [
|
|
34
|
-
'Sharing a Core id without `replaces` does not replace Core. It makes the bare id ambiguous, so `
|
|
34
|
+
'Sharing a Core id without `replaces` does not replace Core. It makes the bare id ambiguous, so `{@command template <id>}` fails until the app adds `--package`, and `doctor integration templates` reports an accidental collision.',
|
|
35
35
|
'A replacement can keep the Core id or use its own. `replaces` is what makes it the default.',
|
|
36
36
|
],
|
|
37
37
|
},
|
|
@@ -113,10 +113,10 @@ export default {
|
|
|
113
113
|
type: 'code',
|
|
114
114
|
lang: 'bash',
|
|
115
115
|
code: `# Receives the active replacement
|
|
116
|
-
|
|
116
|
+
{@command template shell-side-nav src/app}
|
|
117
117
|
|
|
118
118
|
# Receives the original Core template
|
|
119
|
-
|
|
119
|
+
{@command template shell-side-nav --package @astryxdesign/core src/app}`,
|
|
120
120
|
},
|
|
121
121
|
{
|
|
122
122
|
type: 'prose',
|
|
@@ -140,7 +140,7 @@ astryx template shell-side-nav --package @astryxdesign/core src/app`,
|
|
|
140
140
|
{
|
|
141
141
|
type: 'code',
|
|
142
142
|
lang: 'bash',
|
|
143
|
-
code: '
|
|
143
|
+
code: '{@command doctor integration templates}',
|
|
144
144
|
},
|
|
145
145
|
{
|
|
146
146
|
type: 'table',
|
|
@@ -132,7 +132,7 @@ export const docs = {
|
|
|
132
132
|
},
|
|
133
133
|
{
|
|
134
134
|
type: 'prose',
|
|
135
|
-
text: 'Verify: you can state the reason in one sentence, and the choice still holds if the nav doubles in size. `
|
|
135
|
+
text: 'Verify: you can state the reason in one sentence, and the choice still holds if the nav doubles in size. `{@command build "<idea>"}` names the template to start from; scaffold it and the pairing is already wired up.',
|
|
136
136
|
},
|
|
137
137
|
],
|
|
138
138
|
},
|
|
@@ -26,7 +26,7 @@ export const docs = {
|
|
|
26
26
|
{
|
|
27
27
|
type: 'code',
|
|
28
28
|
lang: 'bash',
|
|
29
|
-
code: '
|
|
29
|
+
code: '{@command integration add doc deploying --parent acme}\n# Open your section\n{@command docs acme}',
|
|
30
30
|
},
|
|
31
31
|
{
|
|
32
32
|
type: 'code',
|
|
@@ -69,7 +69,7 @@ export const docs = {
|
|
|
69
69
|
{
|
|
70
70
|
type: 'code',
|
|
71
71
|
lang: 'bash',
|
|
72
|
-
code: '
|
|
72
|
+
code: '{@command docs acme/deploying}',
|
|
73
73
|
},
|
|
74
74
|
],
|
|
75
75
|
},
|
|
@@ -84,7 +84,7 @@ export const docs = {
|
|
|
84
84
|
{
|
|
85
85
|
type: 'code',
|
|
86
86
|
lang: 'bash',
|
|
87
|
-
code: '
|
|
87
|
+
code: '{@command doctor integration docs}',
|
|
88
88
|
},
|
|
89
89
|
{
|
|
90
90
|
type: 'code',
|
|
@@ -26,9 +26,9 @@ export const docs = {
|
|
|
26
26
|
{
|
|
27
27
|
type: 'code',
|
|
28
28
|
lang: 'bash',
|
|
29
|
-
code: `
|
|
30
|
-
|
|
31
|
-
|
|
29
|
+
code: `{@command component AcmeCarousel}
|
|
30
|
+
{@command component --list}
|
|
31
|
+
{@command search carousel}`,
|
|
32
32
|
},
|
|
33
33
|
{
|
|
34
34
|
type: 'code',
|
|
@@ -21,7 +21,7 @@ export const docs = {
|
|
|
21
21
|
content: [
|
|
22
22
|
{
|
|
23
23
|
type: 'prose',
|
|
24
|
-
text: 'Readers open one section at a time, so give each section one idea and keep it to about 30 lines. `
|
|
24
|
+
text: 'Readers open one section at a time, so give each section one idea and keep it to about 30 lines. `{@command doctor}` warns on any read over 32 KB.',
|
|
25
25
|
},
|
|
26
26
|
{
|
|
27
27
|
type: 'list',
|
|
@@ -35,7 +35,7 @@ export const docs = {
|
|
|
35
35
|
{
|
|
36
36
|
type: 'code',
|
|
37
37
|
lang: 'bash',
|
|
38
|
-
code: '# The section list\
|
|
38
|
+
code: '# The section list\n{@command docs acme/deploying}\n# One section\n{@command docs acme/deploying check-before-you-ship}\n# Everything\n{@command docs acme/deploying --full}',
|
|
39
39
|
},
|
|
40
40
|
],
|
|
41
41
|
},
|
|
@@ -93,7 +93,7 @@ export const docs = {
|
|
|
93
93
|
{
|
|
94
94
|
type: 'code',
|
|
95
95
|
lang: 'bash',
|
|
96
|
-
code: '
|
|
96
|
+
code: '{@command search "place a doc" --type doc}',
|
|
97
97
|
},
|
|
98
98
|
{
|
|
99
99
|
type: 'list',
|
|
@@ -88,12 +88,12 @@ export default {
|
|
|
88
88
|
},
|
|
89
89
|
{
|
|
90
90
|
type: 'prose',
|
|
91
|
-
text: "Set `keywords` to the words people search for: synonyms and the task the component does, such as `keywords: ['slider', 'slideshow', 'rotating cards']`. `
|
|
91
|
+
text: "Set `keywords` to the words people search for: synonyms and the task the component does, such as `keywords: ['slider', 'slideshow', 'rotating cards']`. `{@command search}` ranks a match on a component's name or keywords above one in its description, so without keywords a search for the component's task can list Core components first. Check with the words a person would type:",
|
|
92
92
|
},
|
|
93
93
|
{
|
|
94
94
|
type: 'code',
|
|
95
95
|
lang: 'bash',
|
|
96
|
-
code: '
|
|
96
|
+
code: '{@command search "rotating cards" --type component}',
|
|
97
97
|
},
|
|
98
98
|
],
|
|
99
99
|
},
|
|
@@ -130,7 +130,7 @@ export default {
|
|
|
130
130
|
'Set `required: true` only when every caller must pass the prop.',
|
|
131
131
|
'Write `default` exactly as the value should appear in documentation.',
|
|
132
132
|
'Skip styling escape hatches such as `xstyle`, `className`, and `style`.',
|
|
133
|
-
'`
|
|
133
|
+
'`{@command doctor integration components}` lists a documented prop the code lacks, a public prop the doc misses, and a wrong `required`. See {@link generic:check-the-props}.',
|
|
134
134
|
],
|
|
135
135
|
},
|
|
136
136
|
],
|
|
@@ -166,7 +166,7 @@ export default {
|
|
|
166
166
|
{
|
|
167
167
|
type: 'code',
|
|
168
168
|
lang: 'bash',
|
|
169
|
-
code: '
|
|
169
|
+
code: '{@command component AcmeCarousel}\n{@command doctor integration components}\n{@command integration verify}',
|
|
170
170
|
},
|
|
171
171
|
],
|
|
172
172
|
},
|
|
@@ -38,8 +38,8 @@ export const docs = {
|
|
|
38
38
|
type: 'code',
|
|
39
39
|
lang: 'bash',
|
|
40
40
|
code: `# How an app finds a template and copies it
|
|
41
|
-
|
|
42
|
-
|
|
41
|
+
{@command template --list}
|
|
42
|
+
{@command template acme-dashboard src/app/dashboard}`,
|
|
43
43
|
},
|
|
44
44
|
],
|
|
45
45
|
},
|
|
@@ -83,7 +83,7 @@ astryx template acme-dashboard src/app/dashboard`,
|
|
|
83
83
|
content: [
|
|
84
84
|
{
|
|
85
85
|
type: 'prose',
|
|
86
|
-
text: 'Choose a stable lowercase kebab-case id, such as `acme-dashboard`. The id becomes the source and doc file name, the package export, and the value apps pass to `
|
|
86
|
+
text: 'Choose a stable lowercase kebab-case id, such as `acme-dashboard`. The id becomes the source and doc file name, the package export, and the value apps pass to `{@command template}`. To change a label, edit the doc ({@link generic:template-doc-overview}); never rename the id.',
|
|
87
87
|
},
|
|
88
88
|
{
|
|
89
89
|
type: 'list',
|
|
@@ -112,8 +112,8 @@ astryx template acme-dashboard src/app/dashboard`,
|
|
|
112
112
|
{
|
|
113
113
|
type: 'code',
|
|
114
114
|
lang: 'bash',
|
|
115
|
-
code: `
|
|
116
|
-
|
|
115
|
+
code: `{@command integration add template acme-dashboard}
|
|
116
|
+
{@command integration add template acme-stat-card --type block}`,
|
|
117
117
|
},
|
|
118
118
|
{
|
|
119
119
|
type: 'code',
|
|
@@ -118,7 +118,7 @@ const overrides = stylex.create({
|
|
|
118
118
|
content: [
|
|
119
119
|
{
|
|
120
120
|
type: 'prose',
|
|
121
|
-
text: 'Astryx 0.7 emits canonical `astryx-*` target classes and reflected `data-*` attributes only. Run `
|
|
121
|
+
text: 'Astryx 0.7 emits canonical `astryx-*` target classes and reflected `data-*` attributes only. Run `{@command upgrade --from <your 0.6 version> --apply --path .}` to rename removed target keys inside theme `components` maps and to migrate CSS selectors. The CSS migration renames removed target classes and replaces target-qualified bare prop/value/state classes such as `.primary`, `.sm`, `.level-2`, and `.checked` with their reflected `data-*` selectors.',
|
|
122
122
|
},
|
|
123
123
|
{
|
|
124
124
|
type: 'code',
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
export const docs = {
|
|
11
11
|
type: 'namespace',
|
|
12
12
|
name: 'styling-libraries',
|
|
13
|
-
title: '
|
|
13
|
+
title: 'Other styling libraries',
|
|
14
14
|
summary:
|
|
15
15
|
'Integrate Tailwind, StyleX, Panda, Chakra, MUI, CSS-in-JS, CSS Modules, and non-CSS renderers with system tokens.',
|
|
16
16
|
keywords: [
|
|
@@ -23,6 +23,7 @@ export const docs = {
|
|
|
23
23
|
'styled-components',
|
|
24
24
|
'CSS Modules',
|
|
25
25
|
'interop',
|
|
26
|
+
'styling library interop',
|
|
26
27
|
],
|
|
27
28
|
slots: {
|
|
28
29
|
guides: {title: 'Guides', accepts: {kinds: ['generic']}},
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
export const docs = {
|
|
11
11
|
type: 'namespace',
|
|
12
12
|
name: 'styling',
|
|
13
|
-
title: 'Styling
|
|
13
|
+
title: 'Styling components',
|
|
14
14
|
summary:
|
|
15
15
|
'Customize component appearance: xstyle, Tailwind, className, rest props, compound components, data attribute selectors, tokens, and StyleX setup.',
|
|
16
16
|
keywords: [
|
|
@@ -49,7 +49,7 @@ export const docs = {
|
|
|
49
49
|
},
|
|
50
50
|
{
|
|
51
51
|
type: 'prose',
|
|
52
|
-
text:
|
|
52
|
+
text: "A layer's rank is set by the first stylesheet on the page that names it, so this order only holds when `globals.css` loads first. Make it the first import in the root layout or app entry, before any module that imports Astryx or theme CSS. That includes the `astryx-themes` module generated by `{@command theme add}` and any root component that imports a theme's `theme.css`. If a theme stylesheet loads first, Tailwind preflight overrides Astryx base styles and theme overrides lose. If `globals.css` cannot come first, move the `@layer` line into its own `layers.css` and import that first instead.",
|
|
53
53
|
},
|
|
54
54
|
{
|
|
55
55
|
type: 'code',
|
|
@@ -27,14 +27,14 @@ export const docs = {
|
|
|
27
27
|
{
|
|
28
28
|
type: 'code',
|
|
29
29
|
lang: 'bash',
|
|
30
|
-
code: '# In the package\
|
|
30
|
+
code: '# In the package\n{@pm-only npm "the tarball the registry receives" pack --pack-destination ..}\n\n# In an app folder beside it\n{@pm install @astryxdesign/core @astryxdesign/cli ../acme-astryx-widgets-1.0.0.tgz}',
|
|
31
31
|
},
|
|
32
32
|
{
|
|
33
33
|
type: 'list',
|
|
34
34
|
style: 'unordered',
|
|
35
35
|
items: [
|
|
36
36
|
"Install the CLI in the app too: `astryx` runs the CLI from the app's `node_modules`.",
|
|
37
|
-
'The app holds a copy, not a link. After each change, pack again and run the same `
|
|
37
|
+
'The app holds a copy, not a link. After each change, pack again and run the same `{@pm install}`.',
|
|
38
38
|
'Reading your work inside the package shows your source. The app shows what npm would publish.',
|
|
39
39
|
],
|
|
40
40
|
},
|
|
@@ -51,7 +51,7 @@ export const docs = {
|
|
|
51
51
|
{
|
|
52
52
|
type: 'code',
|
|
53
53
|
lang: 'bash',
|
|
54
|
-
code: '
|
|
54
|
+
code: '{@command component AcmeCarousel}\n{@command template --list --package @acme/astryx-widgets}\n{@command theme list --package @acme/astryx-widgets}\n{@command docs acme}\n{@command search deploying --type doc}',
|
|
55
55
|
},
|
|
56
56
|
{
|
|
57
57
|
type: 'table',
|
|
@@ -88,12 +88,12 @@ export const docs = {
|
|
|
88
88
|
content: [
|
|
89
89
|
{
|
|
90
90
|
type: 'prose',
|
|
91
|
-
text: '`
|
|
91
|
+
text: '`{@command doctor}` checks the whole app, including every package it loaded. `doctor integration validate` checks your package as the app installed it.',
|
|
92
92
|
},
|
|
93
93
|
{
|
|
94
94
|
type: 'code',
|
|
95
95
|
lang: 'bash',
|
|
96
|
-
code: '
|
|
96
|
+
code: '{@command doctor}\n{@command doctor integration validate @acme/astryx-widgets}',
|
|
97
97
|
},
|
|
98
98
|
{
|
|
99
99
|
type: 'code',
|
|
@@ -41,11 +41,11 @@ export const docs = {
|
|
|
41
41
|
astryx --json template --list --package @acme/astryx-widgets
|
|
42
42
|
|
|
43
43
|
# Inspect source without writing
|
|
44
|
-
|
|
44
|
+
{@command template acme-dashboard --package @acme/astryx-widgets}
|
|
45
45
|
|
|
46
46
|
# Copy a page and a block to their real app locations
|
|
47
|
-
|
|
48
|
-
|
|
47
|
+
{@command template acme-dashboard --package @acme/astryx-widgets src/app/acme-dashboard}
|
|
48
|
+
{@command template acme-stat-card --package @acme/astryx-widgets src/components}`,
|
|
49
49
|
},
|
|
50
50
|
{
|
|
51
51
|
type: 'list',
|
|
@@ -64,13 +64,13 @@ astryx template acme-stat-card --package @acme/astryx-widgets src/components`,
|
|
|
64
64
|
content: [
|
|
65
65
|
{
|
|
66
66
|
type: 'prose',
|
|
67
|
-
text: "Run the type check (`
|
|
67
|
+
text: "Run the type check (`{@pm exec tsc --noEmit}`, or the app's own script) and the production build in every framework or bundler the integration supports. One toolchain passing does not prove another.",
|
|
68
68
|
},
|
|
69
69
|
{
|
|
70
70
|
type: 'code',
|
|
71
71
|
lang: 'bash',
|
|
72
|
-
code: `
|
|
73
|
-
|
|
72
|
+
code: `{@pm exec tsc --noEmit}
|
|
73
|
+
{@pm run build}`,
|
|
74
74
|
},
|
|
75
75
|
{
|
|
76
76
|
type: 'list',
|
|
@@ -71,7 +71,7 @@ const styles = stylex.create({
|
|
|
71
71
|
content: [
|
|
72
72
|
{
|
|
73
73
|
type: 'prose',
|
|
74
|
-
text: "Astryx components ship pre-compiled: `astryx.css` and each package's own stylesheet hold all of their styles, so consuming the published packages needs no StyleX setup. But `
|
|
74
|
+
text: "Astryx components ship pre-compiled: `astryx.css` and each package's own stylesheet hold all of their styles, so consuming the published packages needs no StyleX setup. But `{@command swizzle <Component>}` copies the raw StyleX *source* into your app, and StyleX source requires a build-time StyleX compiler to produce atomic CSS. Without one, importing the component throws an error that starts `Unexpected 'stylex.create' call at runtime`, and the page does not render. If a swizzled component throws that error, the app is missing a StyleX compiler. The same applies if you author your own StyleX with `stylex.create()`.",
|
|
75
75
|
},
|
|
76
76
|
{
|
|
77
77
|
type: 'table',
|
|
@@ -31,11 +31,11 @@ export const docs = {
|
|
|
31
31
|
rows: [
|
|
32
32
|
[
|
|
33
33
|
'`No package.json found. Run this command inside an integration package.`',
|
|
34
|
-
'Run `npm init -y` and `npm pkg set name=@acme/astryx-widgets` first, in the package folder.',
|
|
34
|
+
'Run `{@pm-only npm "writes package.json" init -y}` and `{@pm-only npm "edits package.json" pkg set name=@acme/astryx-widgets}` first, in the package folder.',
|
|
35
35
|
],
|
|
36
36
|
[
|
|
37
37
|
'`Error: Could not find @astryxdesign/core package`',
|
|
38
|
-
'Component commands read Core. Run `
|
|
38
|
+
'Component commands read Core. Run `{@pm install @astryxdesign/core --dev}` in the package.',
|
|
39
39
|
],
|
|
40
40
|
[
|
|
41
41
|
'`core_not_found`: `Could not resolve @astryxdesign/core, so component names could not be checked.`',
|
|
@@ -43,11 +43,11 @@ export const docs = {
|
|
|
43
43
|
],
|
|
44
44
|
[
|
|
45
45
|
"`Error: unknown subcommand 'integration verify'`, or `Error: Pass --check to verify the integration tarball.`",
|
|
46
|
-
'Your CLI is older than `integration verify`. Run `
|
|
46
|
+
'Your CLI is older than `integration verify`. Run `{@pm install @astryxdesign/cli@latest --dev}`. On the older CLI, the same check is `integration pack --check`.',
|
|
47
47
|
],
|
|
48
48
|
[
|
|
49
49
|
'Note: `integration pack --check` is deprecated.',
|
|
50
|
-
'The old name still runs the same check. Switch to `
|
|
50
|
+
'The old name still runs the same check. Switch to `{@command integration verify}`; the old name will be removed in a later release.',
|
|
51
51
|
],
|
|
52
52
|
],
|
|
53
53
|
},
|
|
@@ -59,7 +59,7 @@ export const docs = {
|
|
|
59
59
|
content: [
|
|
60
60
|
{
|
|
61
61
|
type: 'prose',
|
|
62
|
-
text: '`
|
|
62
|
+
text: '`{@command integration verify}` prints each failure as a `[fail]` line. Add `--json` to see its issue code, such as `component_export_missing`.',
|
|
63
63
|
},
|
|
64
64
|
{
|
|
65
65
|
type: 'table',
|
|
@@ -67,15 +67,15 @@ export const docs = {
|
|
|
67
67
|
rows: [
|
|
68
68
|
[
|
|
69
69
|
'`component_export_missing`: `Component "AcmeCarousel" advertises import "@acme/astryx-widgets/components/AcmeCarousel", but that packed module does not export "AcmeCarousel".`',
|
|
70
|
-
"package.json has no `exports` map, or the module does not export the name. Keep `export function AcmeCarousel`, and add the entry: `npm pkg set 'exports[./components/AcmeCarousel]=./components/AcmeCarousel.tsx'`. When the quoted name is a file name, such as `acme-carousel`, set the doc's `name` to the component the file exports. A type-only export does not count.",
|
|
70
|
+
"package.json has no `exports` map, or the module does not export the name. Keep `export function AcmeCarousel`, and add the entry: `{@pm-only npm \"edits package.json\" pkg set 'exports[./components/AcmeCarousel]=./components/AcmeCarousel.tsx'}`. When the quoted name is a file name, such as `acme-carousel`, set the doc's `name` to the component the file exports. A type-only export does not count.",
|
|
71
71
|
],
|
|
72
72
|
[
|
|
73
73
|
'`template_export_missing`: `Template "acme-dashboard" public import "@acme/astryx-widgets/templates/acme-dashboard" does not have a default export.`',
|
|
74
|
-
'Run `npm pkg set \'exports[./templates/acme-dashboard]=./templates/acme-dashboard.tsx\'`, and keep `export default` in the source. Start new packages with `"exports": {}` so each add writes these.',
|
|
74
|
+
'Run `{@pm-only npm "edits package.json" pkg set \'exports[./templates/acme-dashboard]=./templates/acme-dashboard.tsx\'}`, and keep `export default` in the source. Start new packages with `"exports": {}` so each add writes these.',
|
|
75
75
|
],
|
|
76
76
|
[
|
|
77
77
|
'`component_import_unresolvable` or `template_import_unresolvable`: `…Package subpath \'./components/AcmeCarousel\' is not defined by "exports"…`',
|
|
78
|
-
"The `exports` map has no entry for it. Run `npm pkg set 'exports[./components/AcmeCarousel]=./components/AcmeCarousel.tsx'`, or `'exports[./templates/acme-dashboard]=./templates/acme-dashboard.tsx'` for a template.",
|
|
78
|
+
"The `exports` map has no entry for it. Run `{@pm-only npm \"edits package.json\" pkg set 'exports[./components/AcmeCarousel]=./components/AcmeCarousel.tsx'}`, or `'exports[./templates/acme-dashboard]=./templates/acme-dashboard.tsx'` for a template.",
|
|
79
79
|
],
|
|
80
80
|
[
|
|
81
81
|
"`component_import_unresolvable`: `…but a consumer cannot resolve it: Cannot find package '@acme/old-name'`",
|
|
@@ -83,32 +83,36 @@ export const docs = {
|
|
|
83
83
|
],
|
|
84
84
|
[
|
|
85
85
|
'`Declared templates root "templates" has 0 of 2 expected files in the pack list. Add "templates" to "files" in package.json.`',
|
|
86
|
-
|
|
86
|
+
'Run `{@pm-only npm "edits package.json" pkg set \'files[]=templates\'}`.',
|
|
87
87
|
],
|
|
88
88
|
[
|
|
89
89
|
'`docs_tree_needs_cli`: `The package ships a namespace doc or a placed guide but declares no @astryxdesign/cli peer.`',
|
|
90
|
-
|
|
90
|
+
'Run `{@pm-only npm "edits package.json" pkg set \'peerDependencies.@astryxdesign/cli=>=0.6.4\'}` and `{@pm-only npm "edits package.json" pkg set \'peerDependenciesMeta.@astryxdesign/cli.optional=true\' --json}`.',
|
|
91
91
|
],
|
|
92
92
|
[
|
|
93
93
|
'`replaces_needs_cli`: The package has a template that sets `replaces` but declares no @astryxdesign/cli peer.',
|
|
94
|
-
|
|
94
|
+
'Run `{@pm-only npm "edits package.json" pkg set \'peerDependencies.@astryxdesign/cli=>=0.6.4\'}` and `{@pm-only npm "edits package.json" pkg set \'peerDependenciesMeta.@astryxdesign/cli.optional=true\' --json}`. A stable CLI before 0.6.4 rejects `replaces`, drops that template, and hides your doc topics.',
|
|
95
95
|
],
|
|
96
96
|
[
|
|
97
97
|
'`component_replaces_needs_cli` (a warning): The package has a component that sets `replaces` but declares no @astryxdesign/cli peer, or a peer range that admits an earlier CLI.',
|
|
98
|
-
|
|
98
|
+
'Run `{@pm-only npm "edits package.json" pkg set \'peerDependencies.@astryxdesign/cli=>=0.6.7\'}` and `{@pm-only npm "edits package.json" pkg set \'peerDependenciesMeta.@astryxdesign/cli.optional=true\' --json}` to turn the replacement on. Until then apps see no change ({@link generic:replace-a-core-component}).',
|
|
99
99
|
],
|
|
100
100
|
[
|
|
101
101
|
'`keywords_needs_cli`: The package has a template that sets `keywords` but declares no @astryxdesign/cli peer.',
|
|
102
|
-
|
|
102
|
+
'Run `{@pm-only npm "edits package.json" pkg set \'peerDependencies.@astryxdesign/cli=>=0.6.6\'}` and `{@pm-only npm "edits package.json" pkg set \'peerDependenciesMeta.@astryxdesign/cli.optional=true\' --json}`. What an older CLI does with the field is in {@link generic:template-doc-overview}.',
|
|
103
103
|
],
|
|
104
104
|
[
|
|
105
105
|
'`themes_need_cli`: The package ships a theme but declares no @astryxdesign/cli peer.',
|
|
106
|
-
|
|
106
|
+
'Run `{@pm-only npm "edits package.json" pkg set \'peerDependencies.@astryxdesign/cli=>=0.6.4\'}` and `{@pm-only npm "edits package.json" pkg set \'peerDependenciesMeta.@astryxdesign/cli.optional=true\' --json}`. A CLI older than published 0.6.4 cannot read typed theme descriptors, so it drops your themes and can hide your doc topics.',
|
|
107
107
|
],
|
|
108
108
|
[
|
|
109
109
|
'`section_ids_need_cli`: The package has a doc section that sets `id` but declares no @astryxdesign/cli peer.',
|
|
110
110
|
'The same fix as `themes_need_cli`, or drop the section `id`s: a CLI older than published 0.6.4 rejects them and hides your doc topics.',
|
|
111
111
|
],
|
|
112
|
+
[
|
|
113
|
+
'`doc_tokens_need_cli`: The package writes doc tokens (`{@@command …}`, `{@@pm …}`, `{@@pm-only …}`) in its docs, but its @astryxdesign/cli peer admits a CLI before 0.7.4.',
|
|
114
|
+
'Run `{@pm-only npm "edits package.json" pkg set \'peerDependencies.@astryxdesign/cli=>=0.7.4\'}` and `{@pm-only npm "edits package.json" pkg set \'peerDependenciesMeta.@astryxdesign/cli.optional=true\' --json}`. A CLI before 0.7.4 prints each token as written, so readers see raw tokens.',
|
|
115
|
+
],
|
|
112
116
|
],
|
|
113
117
|
},
|
|
114
118
|
],
|
|
@@ -130,20 +134,20 @@ export const docs = {
|
|
|
130
134
|
"Its doc still names its file. Set `name` to the export, such as `name: 'AcmeCarousel'` in `acme-carousel.doc.mjs`. A family member is listed only when the module its family doc imports exports it ({@link generic:component-family}).",
|
|
131
135
|
],
|
|
132
136
|
[
|
|
133
|
-
"`
|
|
134
|
-
"A name that Core, a legacy docs package, or another package's file already has stays theirs. Run `
|
|
137
|
+
"`{@command component Dialog}` opens Core's `Dialog`, not yours.",
|
|
138
|
+
"A name that Core, a legacy docs package, or another package's file already has stays theirs. Run `{@command component Dialog --package @acme/astryx-widgets}`, or give your component a name of its own.",
|
|
135
139
|
],
|
|
136
140
|
[
|
|
137
141
|
'`Error: Template "dashboard" is ambiguous — narrow it with --type and/or --package.`',
|
|
138
|
-
"Your template id matches a Core id. Rename it, such as `acme-dashboard`, or set `replaces: 'dashboard'` to take its place. `
|
|
142
|
+
"Your template id matches a Core id. Rename it, such as `acme-dashboard`, or set `replaces: 'dashboard'` to take its place. `{@command doctor integration templates}` warns about this before you publish.",
|
|
139
143
|
],
|
|
140
144
|
[
|
|
141
145
|
'`invalid_doc_graph`: `placement.parent "namespace:nope" names no namespace; @acme/astryx-widgets declares "acme".`',
|
|
142
146
|
'The guide stays hidden until its `placement` names a namespace and slot your package declares. For `"…" names no doc`, fix the link target.',
|
|
143
147
|
],
|
|
144
148
|
[
|
|
145
|
-
'Error: Unknown topic "acme". The docs of @acme/astryx-widgets did not load; run `
|
|
146
|
-
'One invalid doc hides all of your docs. Run `
|
|
149
|
+
'Error: Unknown topic "acme". The docs of @acme/astryx-widgets did not load; run `{@command doctor integration docs}` in that package to see why.',
|
|
150
|
+
'One invalid doc hides all of your docs. Run `{@command doctor integration docs}` in the package and fix the `invalid_doc` it names.',
|
|
147
151
|
],
|
|
148
152
|
[
|
|
149
153
|
'`cli-command` warns: `Loaded integrations declare different CLI commands`',
|
|
@@ -154,7 +158,7 @@ export const docs = {
|
|
|
154
158
|
'Your `cliCommand` is not one line of plain text of at most 120 characters, so it is ignored. Fix the value; the rest of the manifest still loads.',
|
|
155
159
|
],
|
|
156
160
|
[
|
|
157
|
-
'`
|
|
161
|
+
'`{@command upgrade}` runs none of your codemods',
|
|
158
162
|
'The app must list your package in `integrations` in `astryx.config`, or pass `--integration @acme/astryx-widgets`. It runs a codemod folder only when its version is after `--from` and at most the installed `@astryxdesign/core`.',
|
|
159
163
|
],
|
|
160
164
|
[
|
|
@@ -40,7 +40,7 @@ export const docs = {
|
|
|
40
40
|
{
|
|
41
41
|
type: 'code',
|
|
42
42
|
lang: 'bash',
|
|
43
|
-
code: '
|
|
43
|
+
code: '{@command init --user --remove-agents}',
|
|
44
44
|
},
|
|
45
45
|
{
|
|
46
46
|
type: 'prose',
|
|
@@ -55,7 +55,7 @@ export const docs = {
|
|
|
55
55
|
{
|
|
56
56
|
type: 'code',
|
|
57
57
|
lang: 'bash',
|
|
58
|
-
code: '
|
|
58
|
+
code: '{@pm remove @astryxdesign/cli --global}\n# with Volta: volta uninstall @astryxdesign/cli',
|
|
59
59
|
},
|
|
60
60
|
{
|
|
61
61
|
type: 'prose',
|
|
@@ -74,7 +74,7 @@ export const docs = {
|
|
|
74
74
|
},
|
|
75
75
|
{
|
|
76
76
|
type: 'prose',
|
|
77
|
-
text: '`
|
|
77
|
+
text: '`{@command doctor}` shows the same thing at any time, in its `newest-release` check, along with why the last notice did not print, if one did not. When the last check ran, and when each notice printed, are kept in `state.json` in the settings folder ({@link generic:reference}).',
|
|
78
78
|
},
|
|
79
79
|
],
|
|
80
80
|
},
|
|
@@ -28,7 +28,7 @@ export const docs = {
|
|
|
28
28
|
{
|
|
29
29
|
type: 'code',
|
|
30
30
|
lang: 'bash',
|
|
31
|
-
code:
|
|
31
|
+
code: '# 1. Build and test against the new release\n{@pm install @astryxdesign/cli@latest @astryxdesign/core@latest --dev}\n# 2. Rerun the checks\n{@command doctor integration validate}\n{@command doctor integration docs}\n{@command integration verify}\n# 3. Admit the new Core once the checks pass\n{@pm-only npm "edits package.json" pkg set \'peerDependencies.@astryxdesign/core=^0.6.0 || ^0.7.0\'}\n# 4. Migrate apps across a change that breaks them\n{@command integration add codemod rename-delay --to 0.7.0}',
|
|
32
32
|
},
|
|
33
33
|
{
|
|
34
34
|
type: 'list',
|
|
@@ -47,12 +47,12 @@ export const docs = {
|
|
|
47
47
|
content: [
|
|
48
48
|
{
|
|
49
49
|
type: 'prose',
|
|
50
|
-
text: 'After an app installs a new Core, `
|
|
50
|
+
text: 'After an app installs a new Core, `{@command upgrade}` runs the codemods for the versions it crossed. It is a dry run by default; `--apply` writes the changes.',
|
|
51
51
|
},
|
|
52
52
|
{
|
|
53
53
|
type: 'code',
|
|
54
54
|
lang: 'bash',
|
|
55
|
-
code: '# Preview what would change; nothing is written\
|
|
55
|
+
code: '# Preview what would change; nothing is written\n{@command upgrade --from 0.6.3 --integration @acme/astryx-widgets}\n# Write the changes\n{@command upgrade --from 0.6.3 --integration @acme/astryx-widgets --apply}',
|
|
56
56
|
},
|
|
57
57
|
{
|
|
58
58
|
type: 'code',
|
|
@@ -26,7 +26,7 @@ export const docs = {
|
|
|
26
26
|
{
|
|
27
27
|
type: 'code',
|
|
28
28
|
lang: 'bash',
|
|
29
|
-
code: '
|
|
29
|
+
code: '{@pm install @acme/astryx-widgets}\n{@command theme add ocean --package @acme/astryx-widgets}',
|
|
30
30
|
},
|
|
31
31
|
{
|
|
32
32
|
type: 'code',
|
|
@@ -27,11 +27,11 @@ export const docs = {
|
|
|
27
27
|
{
|
|
28
28
|
type: 'code',
|
|
29
29
|
lang: 'bash',
|
|
30
|
-
code: '
|
|
30
|
+
code: '{@command integration verify}',
|
|
31
31
|
},
|
|
32
32
|
{
|
|
33
33
|
type: 'prose',
|
|
34
|
-
text: '`integration verify` runs `npm pack`, including lifecycle scripts, unpacks the `.tgz` file into a temporary app without installing its dependencies, and checks the unpacked integration. It publishes nothing and removes the `.tgz` file and the temporary app.',
|
|
34
|
+
text: '`integration verify` runs `{@pm-only npm "the tarball the registry receives" pack}`, including lifecycle scripts, unpacks the `.tgz` file into a temporary app without installing its dependencies, and checks the unpacked integration. It publishes nothing and removes the `.tgz` file and the temporary app.',
|
|
35
35
|
},
|
|
36
36
|
{
|
|
37
37
|
type: 'list',
|
|
@@ -67,7 +67,7 @@ export const docs = {
|
|
|
67
67
|
'Whether the copied file type-checks in every supported app toolchain.',
|
|
68
68
|
'Whether package-owned CSS, fonts, icons, images, or media load in a browser.',
|
|
69
69
|
'Whether layout, color modes, keyboard and pointer input, and real content work.',
|
|
70
|
-
'Whether a template id collides with Core, or whether a `replaces` target exists. Run `
|
|
70
|
+
'Whether a template id collides with Core, or whether a `replaces` target exists. Run `{@command doctor integration templates}` for those.',
|
|
71
71
|
'How the template scores on quality.',
|
|
72
72
|
],
|
|
73
73
|
},
|
|
@@ -28,7 +28,7 @@ export const docs = {
|
|
|
28
28
|
{
|
|
29
29
|
type: 'code',
|
|
30
30
|
lang: 'bash',
|
|
31
|
-
code: '# 1.0.0 -> 2.0.0: a breaking change\
|
|
31
|
+
code: '# 1.0.0 -> 2.0.0: a breaking change\n{@pm-only npm "npm, which every Node install carries, sets the version" version major}\n# 1.0.0 -> 1.1.0: a new feature\n{@pm-only npm "npm, which every Node install carries, sets the version" version minor}\n# 1.0.0 -> 1.0.1: a fix\n{@pm-only npm "npm, which every Node install carries, sets the version" version patch}',
|
|
32
32
|
},
|
|
33
33
|
{
|
|
34
34
|
type: 'list',
|
|
@@ -54,13 +54,13 @@ export const docs = {
|
|
|
54
54
|
rows: [
|
|
55
55
|
[
|
|
56
56
|
'A component name, such as `AcmeCarousel`',
|
|
57
|
-
'Imports, and `
|
|
57
|
+
'Imports, and `{@command component AcmeCarousel}`',
|
|
58
58
|
],
|
|
59
59
|
[
|
|
60
60
|
'A template id, such as `acme-dashboard`',
|
|
61
|
-
'`
|
|
61
|
+
'`{@command template acme-dashboard}`',
|
|
62
62
|
],
|
|
63
|
-
['A theme slug, such as `ocean`', '`
|
|
63
|
+
['A theme slug, such as `ocean`', '`{@command theme add ocean}`'],
|
|
64
64
|
[
|
|
65
65
|
'A topic name or route, such as `acme/deploying`',
|
|
66
66
|
'Reads of the old name, and links to it from other docs',
|
|
@@ -44,7 +44,7 @@ export const docs = {
|
|
|
44
44
|
},
|
|
45
45
|
{
|
|
46
46
|
type: 'prose',
|
|
47
|
-
text: "Components come from `@astryxdesign/core`, and templates, docs, and agent guides come from the CLI. In a project, that Core is the one the project installs, so component commands work offline once the project's dependencies are installed. Outside a project, or in a project with nothing installed yet (a fresh clone), they use the answering version's own Core, from beside the CLI or the cache; when that Core cannot be downloaded, the error says to install the project's dependencies. When the project's CLI and Core are different versions, `
|
|
47
|
+
text: "Components come from `@astryxdesign/core`, and templates, docs, and agent guides come from the CLI. In a project, that Core is the one the project installs, so component commands work offline once the project's dependencies are installed. Outside a project, or in a project with nothing installed yet (a fresh clone), they use the answering version's own Core, from beside the CLI or the cache; when that Core cannot be downloaded, the error says to install the project's dependencies. When the project's CLI and Core are different versions, `{@command doctor}` warns and prints the command that brings them to one version.",
|
|
48
48
|
},
|
|
49
49
|
],
|
|
50
50
|
},
|
|
@@ -58,7 +58,7 @@ export const docs = {
|
|
|
58
58
|
},
|
|
59
59
|
{
|
|
60
60
|
type: 'prose',
|
|
61
|
-
text: 'A few commands work on your computer rather than a folder, such as `
|
|
61
|
+
text: 'A few commands work on your computer rather than a folder, such as `{@command init --user}`: your global install answers them in any folder.',
|
|
62
62
|
},
|
|
63
63
|
],
|
|
64
64
|
},
|
|
@@ -101,7 +101,7 @@ export const docs = {
|
|
|
101
101
|
content: [
|
|
102
102
|
{
|
|
103
103
|
type: 'prose',
|
|
104
|
-
text: "Commands the CLI prints for you to run start with a name that reaches the same version: the project's runner (such as `pnpm exec astryx`) in a project, `astryx` outside a project when your global install answered, and otherwise the CLI pinned to the version, such as `
|
|
104
|
+
text: "Commands the CLI prints for you to run start with a name that reaches the same version: the project's runner (such as `pnpm exec astryx`) in a project, `astryx` outside a project when your global install answered, and otherwise the CLI pinned to the version, such as `{@pm dlx @astryxdesign/cli@0.6.8}`. An integration can name its own command: {@link generic:cli-command}.",
|
|
105
105
|
},
|
|
106
106
|
],
|
|
107
107
|
},
|
|
@@ -111,7 +111,7 @@ export const docs = {
|
|
|
111
111
|
content: [
|
|
112
112
|
{
|
|
113
113
|
type: 'prose',
|
|
114
|
-
text: 'This page is part of {@link namespace:global}, which explains what global mode is and how each part works. To check your computer, run `
|
|
114
|
+
text: 'This page is part of {@link namespace:global}, which explains what global mode is and how each part works. To check your computer, run `{@command doctor}` outside any project ({@link command:doctor}). Monorepos: {@link generic:monorepos}.',
|
|
115
115
|
},
|
|
116
116
|
],
|
|
117
117
|
},
|