@jobber/generators 0.10.3 → 0.11.0

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/CHANGELOG.md CHANGED
@@ -3,6 +3,17 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [0.11.0](https://github.com/GetJobber/atlantis/compare/@jobber/generators@0.10.3...@jobber/generators@0.11.0) (2024-10-29)
7
+
8
+
9
+ ### Features
10
+
11
+ * **docx:** The new Documentation Site. ([#2067](https://github.com/GetJobber/atlantis/issues/2067)) ([00d32fd](https://github.com/GetJobber/atlantis/commit/00d32fd68469acb430296dc5cc13e272ad4a8f4a)), closes [#2079](https://github.com/GetJobber/atlantis/issues/2079)
12
+
13
+
14
+
15
+
16
+
6
17
  ## [0.10.3](https://github.com/GetJobber/atlantis/compare/@jobber/generators@0.10.2...@jobber/generators@0.10.3) (2024-10-16)
7
18
 
8
19
  **Note:** Version bump only for package @jobber/generators
package/index.mjs CHANGED
@@ -54,6 +54,12 @@ export default (plop, config) => {
54
54
  actions: answers => {
55
55
  Object.assign(answers, { mdx: "mdx", tsx: "tsx" });
56
56
  const actions = [];
57
+ // const buildSiteContentIndex = () => ({
58
+ // type: "addMany",
59
+ // destination: `packages/site/src/content/{{name}}/`,
60
+ // base: "templates/site",
61
+ // templateFiles: "templates/site/**/*",
62
+ // });
57
63
 
58
64
  if (answers.type === "web") {
59
65
  actions.push(
@@ -69,6 +75,8 @@ export default (plop, config) => {
69
75
  base: "templates/docs",
70
76
  templateFiles: `templates/docs/!(Mobile)*`,
71
77
  },
78
+ // buildSiteContentIndex(), - Uncomment when site is ready for production
79
+ webReminder,
72
80
  );
73
81
  } else if (answers.type === "native") {
74
82
  actions.push(
@@ -84,6 +92,7 @@ export default (plop, config) => {
84
92
  base: "templates/docs",
85
93
  templateFiles: `templates/docs/!(Web)*`,
86
94
  },
95
+ // buildSiteContentIndex(), - Uncomment when site is ready for production
87
96
  mobileReminder,
88
97
  );
89
98
  } else {
@@ -106,6 +115,8 @@ export default (plop, config) => {
106
115
  base: "templates/docs",
107
116
  templateFiles: `templates/docs/${templateGlob}`,
108
117
  },
118
+ // buildSiteContentIndex(), - Uncomment when site is ready for production
119
+ webReminder,
109
120
  mobileReminder,
110
121
  );
111
122
  }
@@ -118,3 +129,7 @@ export default (plop, config) => {
118
129
  function mobileReminder() {
119
130
  return "🎉 Mobile Component created!. Remember to add the new component's export to packages/components-native/src/index.ts";
120
131
  }
132
+
133
+ function webReminder() {
134
+ return "🎉 Web Component created!. Remember to add the new component's export to packages/components/src/index.tsx";
135
+ }
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@jobber/generators",
3
- "version": "0.10.3",
3
+ "version": "0.11.0",
4
4
  "license": "MIT",
5
5
  "main": "index.js",
6
6
  "scripts": {},
7
7
  "dependencies": {
8
8
  "inquirer-path": "^1.0.0-beta5"
9
9
  },
10
- "gitHead": "8fe1e021751c7f5e27f6f33f00b88b87b2c5b0d8"
10
+ "gitHead": "25bd2b27d2a82003bb0641d2fbc03bb0bbe77e65"
11
11
  }
@@ -0,0 +1,23 @@
1
+ import { {{name}} } from "@jobber/components";
2
+ import Content from "@atlantis/docs/components/{{name}}/{{name}}.stories.mdx";
3
+ import Props from "./{{name}}.props.json";
4
+ import { ContentExport } from "../../types/content";
5
+
6
+ export default {
7
+ content: Content,
8
+ props: Props,
9
+ component: {
10
+ element: {{name}},
11
+ defaultProps: { },
12
+ code: `<{{name}} />`,
13
+ },
14
+ title: "{{name}}",
15
+ description:
16
+ "{{name}}s are a ...",
17
+ links: [
18
+ {
19
+ label: "Storybook",
20
+ url: "http://localhost:6006/?path=/docs/components-utilities-{{lowerCase name}}-web--docs",
21
+ },
22
+ ],
23
+ } as ContentExport;