create-sitecore-jss 22.5.0-beta.8 → 22.5.0-beta.9
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/dist/templates/nextjs-xmcloud/scripts/generate-component-builder/plugins/code-extraction.ts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ComponentBuilderPlugin, ComponentBuilderPluginConfig } from '..';
|
|
2
|
+
import { extractComponents } from '@sitecore-jss/sitecore-jss-dev-tools';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* If consented to, sends components code for code generation learning to XMC
|
|
6
|
+
*/
|
|
7
|
+
class CodeExtractionPlugin implements ComponentBuilderPlugin {
|
|
8
|
+
order = 100;
|
|
9
|
+
|
|
10
|
+
exec(config: ComponentBuilderPluginConfig) {
|
|
11
|
+
extractComponents({});
|
|
12
|
+
return config;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export const codeExtractionPlugin = new CodeExtractionPlugin();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-sitecore-jss",
|
|
3
|
-
"version": "22.5.0-beta.
|
|
3
|
+
"version": "22.5.0-beta.9",
|
|
4
4
|
"description": "Sitecore JSS initializer",
|
|
5
5
|
"bin": "./dist/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -65,5 +65,5 @@
|
|
|
65
65
|
"ts-node": "^10.9.1",
|
|
66
66
|
"typescript": "~5.6.3"
|
|
67
67
|
},
|
|
68
|
-
"gitHead": "
|
|
68
|
+
"gitHead": "5ff649ad7266eb6d4ccdda4ff4aa3d2395071eed"
|
|
69
69
|
}
|