@jobber/generators 0.10.3 → 0.11.2-node22-3bf0edd.18
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 +11 -0
- package/index.mjs +15 -1
- package/package.json +2 -2
- package/templates/site/index.ts +23 -0
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
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
/* eslint-env node */
|
|
2
|
-
/* eslint-disable @typescript-eslint/no-var-requires */
|
|
3
2
|
/* eslint-disable import/no-default-export */
|
|
4
3
|
|
|
5
4
|
import { PathPrompt } from "inquirer-path";
|
|
@@ -54,6 +53,12 @@ export default (plop, config) => {
|
|
|
54
53
|
actions: answers => {
|
|
55
54
|
Object.assign(answers, { mdx: "mdx", tsx: "tsx" });
|
|
56
55
|
const actions = [];
|
|
56
|
+
// const buildSiteContentIndex = () => ({
|
|
57
|
+
// type: "addMany",
|
|
58
|
+
// destination: `packages/site/src/content/{{name}}/`,
|
|
59
|
+
// base: "templates/site",
|
|
60
|
+
// templateFiles: "templates/site/**/*",
|
|
61
|
+
// });
|
|
57
62
|
|
|
58
63
|
if (answers.type === "web") {
|
|
59
64
|
actions.push(
|
|
@@ -69,6 +74,8 @@ export default (plop, config) => {
|
|
|
69
74
|
base: "templates/docs",
|
|
70
75
|
templateFiles: `templates/docs/!(Mobile)*`,
|
|
71
76
|
},
|
|
77
|
+
// buildSiteContentIndex(), - Uncomment when site is ready for production
|
|
78
|
+
webReminder,
|
|
72
79
|
);
|
|
73
80
|
} else if (answers.type === "native") {
|
|
74
81
|
actions.push(
|
|
@@ -84,6 +91,7 @@ export default (plop, config) => {
|
|
|
84
91
|
base: "templates/docs",
|
|
85
92
|
templateFiles: `templates/docs/!(Web)*`,
|
|
86
93
|
},
|
|
94
|
+
// buildSiteContentIndex(), - Uncomment when site is ready for production
|
|
87
95
|
mobileReminder,
|
|
88
96
|
);
|
|
89
97
|
} else {
|
|
@@ -106,6 +114,8 @@ export default (plop, config) => {
|
|
|
106
114
|
base: "templates/docs",
|
|
107
115
|
templateFiles: `templates/docs/${templateGlob}`,
|
|
108
116
|
},
|
|
117
|
+
// buildSiteContentIndex(), - Uncomment when site is ready for production
|
|
118
|
+
webReminder,
|
|
109
119
|
mobileReminder,
|
|
110
120
|
);
|
|
111
121
|
}
|
|
@@ -118,3 +128,7 @@ export default (plop, config) => {
|
|
|
118
128
|
function mobileReminder() {
|
|
119
129
|
return "🎉 Mobile Component created!. Remember to add the new component's export to packages/components-native/src/index.ts";
|
|
120
130
|
}
|
|
131
|
+
|
|
132
|
+
function webReminder() {
|
|
133
|
+
return "🎉 Web Component created!. Remember to add the new component's export to packages/components/src/index.tsx";
|
|
134
|
+
}
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jobber/generators",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.11.2-node22-3bf0edd.18+3bf0eddd",
|
|
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": "
|
|
10
|
+
"gitHead": "3bf0eddd96dc11bb9646a691deaa3992b689e982"
|
|
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 const satisfies ContentExport;
|