@angeloashmore/prismic-cli-poc 0.0.0-pr.9.92b6b39 → 0.0.0-pr.9.e40beab

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.
Files changed (38) hide show
  1. package/dist/index.mjs +134 -107
  2. package/package.json +1 -1
  3. package/src/docs-fetch.ts +146 -0
  4. package/src/docs-list.ts +131 -0
  5. package/src/docs.ts +26 -121
  6. package/src/index.ts +1 -1
  7. package/src/page-type-add-field-boolean.ts +1 -1
  8. package/src/page-type-add-field-color.ts +1 -1
  9. package/src/page-type-add-field-date.ts +1 -1
  10. package/src/page-type-add-field-embed.ts +1 -1
  11. package/src/page-type-add-field-geo-point.ts +1 -1
  12. package/src/page-type-add-field-group.ts +1 -1
  13. package/src/page-type-add-field-image.ts +1 -1
  14. package/src/page-type-add-field-key-text.ts +1 -1
  15. package/src/page-type-add-field-link.ts +1 -1
  16. package/src/page-type-add-field-number.ts +1 -1
  17. package/src/page-type-add-field-rich-text.ts +1 -1
  18. package/src/page-type-add-field-select.ts +1 -1
  19. package/src/page-type-add-field-timestamp.ts +1 -1
  20. package/src/page-type-add-field-uid.ts +1 -1
  21. package/src/page-type-create.ts +1 -1
  22. package/src/repo-create.ts +1 -1
  23. package/src/skill-install.ts +2 -2
  24. package/src/skill-uninstall.ts +1 -1
  25. package/src/slice-add-field-boolean.ts +1 -1
  26. package/src/slice-add-field-color.ts +1 -1
  27. package/src/slice-add-field-date.ts +1 -1
  28. package/src/slice-add-field-embed.ts +1 -1
  29. package/src/slice-add-field-geo-point.ts +1 -1
  30. package/src/slice-add-field-group.ts +1 -1
  31. package/src/slice-add-field-image.ts +1 -1
  32. package/src/slice-add-field-key-text.ts +1 -1
  33. package/src/slice-add-field-link.ts +1 -1
  34. package/src/slice-add-field-number.ts +1 -1
  35. package/src/slice-add-field-rich-text.ts +1 -1
  36. package/src/slice-add-field-select.ts +1 -1
  37. package/src/slice-add-field-timestamp.ts +1 -1
  38. package/src/status.ts +1 -1
@@ -220,7 +220,7 @@ export async function sliceAddFieldDate(): Promise<void> {
220
220
  const docsPath = getDocsPath(frameworkInfo.framework);
221
221
  const anchor = getWriteComponentsAnchor(frameworkInfo.framework);
222
222
  console.info(
223
- ` Run \`prismic docs ${docsPath}${anchor}\` to learn how to implement the slice's component`,
223
+ ` Run \`prismic docs fetch ${docsPath}${anchor}\` to learn how to implement the slice's component`,
224
224
  );
225
225
  }
226
226
  }
@@ -220,7 +220,7 @@ export async function sliceAddFieldEmbed(): Promise<void> {
220
220
  const docsPath = getDocsPath(frameworkInfo.framework);
221
221
  const anchor = getWriteComponentsAnchor(frameworkInfo.framework);
222
222
  console.info(
223
- ` Run \`prismic docs ${docsPath}${anchor}\` to learn how to implement the slice's component`,
223
+ ` Run \`prismic docs fetch ${docsPath}${anchor}\` to learn how to implement the slice's component`,
224
224
  );
225
225
  }
226
226
  }
@@ -217,7 +217,7 @@ export async function sliceAddFieldGeoPoint(): Promise<void> {
217
217
  const docsPath = getDocsPath(frameworkInfo.framework);
218
218
  const anchor = getWriteComponentsAnchor(frameworkInfo.framework);
219
219
  console.info(
220
- ` Run \`prismic docs ${docsPath}${anchor}\` to learn how to implement the slice's component`,
220
+ ` Run \`prismic docs fetch ${docsPath}${anchor}\` to learn how to implement the slice's component`,
221
221
  );
222
222
  }
223
223
  }
@@ -185,7 +185,7 @@ export async function sliceAddFieldGroup(): Promise<void> {
185
185
  const docsPath = getDocsPath(frameworkInfo.framework);
186
186
  const anchor = getWriteComponentsAnchor(frameworkInfo.framework);
187
187
  console.info(
188
- ` Run \`prismic docs ${docsPath}${anchor}\` to learn how to implement the slice's component`,
188
+ ` Run \`prismic docs fetch ${docsPath}${anchor}\` to learn how to implement the slice's component`,
189
189
  );
190
190
  }
191
191
  }
@@ -217,7 +217,7 @@ export async function sliceAddFieldImage(): Promise<void> {
217
217
  const docsPath = getDocsPath(frameworkInfo.framework);
218
218
  const anchor = getWriteComponentsAnchor(frameworkInfo.framework);
219
219
  console.info(
220
- ` Run \`prismic docs ${docsPath}${anchor}\` to learn how to implement the slice's component`,
220
+ ` Run \`prismic docs fetch ${docsPath}${anchor}\` to learn how to implement the slice's component`,
221
221
  );
222
222
  }
223
223
  }
@@ -220,7 +220,7 @@ export async function sliceAddFieldKeyText(): Promise<void> {
220
220
  const docsPath = getDocsPath(frameworkInfo.framework);
221
221
  const anchor = getWriteComponentsAnchor(frameworkInfo.framework);
222
222
  console.info(
223
- ` Run \`prismic docs ${docsPath}${anchor}\` to learn how to implement the slice's component`,
223
+ ` Run \`prismic docs fetch ${docsPath}${anchor}\` to learn how to implement the slice's component`,
224
224
  );
225
225
  }
226
226
  }
@@ -239,7 +239,7 @@ export async function sliceAddFieldLink(): Promise<void> {
239
239
  const docsPath = getDocsPath(frameworkInfo.framework);
240
240
  const anchor = getWriteComponentsAnchor(frameworkInfo.framework);
241
241
  console.info(
242
- ` Run \`prismic docs ${docsPath}${anchor}\` to learn how to implement the slice's component`,
242
+ ` Run \`prismic docs fetch ${docsPath}${anchor}\` to learn how to implement the slice's component`,
243
243
  );
244
244
  }
245
245
  }
@@ -220,7 +220,7 @@ export async function sliceAddFieldNumber(): Promise<void> {
220
220
  const docsPath = getDocsPath(frameworkInfo.framework);
221
221
  const anchor = getWriteComponentsAnchor(frameworkInfo.framework);
222
222
  console.info(
223
- ` Run \`prismic docs ${docsPath}${anchor}\` to learn how to implement the slice's component`,
223
+ ` Run \`prismic docs fetch ${docsPath}${anchor}\` to learn how to implement the slice's component`,
224
224
  );
225
225
  }
226
226
  }
@@ -244,7 +244,7 @@ export async function sliceAddFieldRichText(): Promise<void> {
244
244
  const docsPath = getDocsPath(frameworkInfo.framework);
245
245
  const anchor = getWriteComponentsAnchor(frameworkInfo.framework);
246
246
  console.info(
247
- ` Run \`prismic docs ${docsPath}${anchor}\` to learn how to implement the slice's component`,
247
+ ` Run \`prismic docs fetch ${docsPath}${anchor}\` to learn how to implement the slice's component`,
248
248
  );
249
249
  }
250
250
  }
@@ -226,7 +226,7 @@ export async function sliceAddFieldSelect(): Promise<void> {
226
226
  const docsPath = getDocsPath(frameworkInfo.framework);
227
227
  const anchor = getWriteComponentsAnchor(frameworkInfo.framework);
228
228
  console.info(
229
- ` Run \`prismic docs ${docsPath}${anchor}\` to learn how to implement the slice's component`,
229
+ ` Run \`prismic docs fetch ${docsPath}${anchor}\` to learn how to implement the slice's component`,
230
230
  );
231
231
  }
232
232
  }
@@ -220,7 +220,7 @@ export async function sliceAddFieldTimestamp(): Promise<void> {
220
220
  const docsPath = getDocsPath(frameworkInfo.framework);
221
221
  const anchor = getWriteComponentsAnchor(frameworkInfo.framework);
222
222
  console.info(
223
- ` Run \`prismic docs ${docsPath}${anchor}\` to learn how to implement the slice's component`,
223
+ ` Run \`prismic docs fetch ${docsPath}${anchor}\` to learn how to implement the slice's component`,
224
224
  );
225
225
  }
226
226
  }
package/src/status.ts CHANGED
@@ -83,7 +83,7 @@ function getDocsPath(framework: Framework | undefined): string {
83
83
  function getDocsRef(docsPath: string, anchor?: string): string {
84
84
  if (!docsPath) return "";
85
85
  const fullPath = anchor ? `${docsPath}${anchor}` : docsPath;
86
- return `\`prismic docs ${fullPath}\``;
86
+ return `\`prismic docs fetch ${fullPath}\``;
87
87
  }
88
88
 
89
89
  function getClientSetupAnchor(framework: Framework | undefined): string {