sb-mig 4.0.9 → 4.0.12-beta.1
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 +4 -2
- package/dist/api/migrate.js +8 -1
- package/dist/commands/debug.js +9 -0
- package/package.json +7 -8
package/README.md
CHANGED
|
@@ -1,11 +1,15 @@
|
|
|
1
|
+
|
|
1
2
|
<p align="center">
|
|
2
3
|
<img width="250" height="250" src="./sb-mig-logo.png" alt="Logo" />
|
|
3
4
|
</p>
|
|
4
5
|
If you've found an issue or you have feature request - <a href="https://github.com/marckraw/sb-mig/issues/new">open an issue</a> or look if it was <a href="https://github.com/sb-mig/sb-mig/issues/">already created</a>.
|
|
6
|
+
<br />
|
|
5
7
|
|
|
6
8
|
[](https://www.npmjs.com/package/sb-mig)
|
|
7
9
|
[](ttps://img.shields.io/npm/dt/sb-mig.svg)
|
|
8
10
|
[](https://github.com/sb-mig/sb-mig/issues?q=is%3Aopen+is%3Aissue)
|
|
11
|
+

|
|
12
|
+
|
|
9
13
|
|
|
10
14
|
# 4.x.x version released!
|
|
11
15
|
|
|
@@ -24,8 +28,6 @@ If you've found an issue or you have feature request - <a href="https://github.c
|
|
|
24
28
|
## Contents
|
|
25
29
|
|
|
26
30
|
- [How to install and configure](#how-to-install-and-configure)
|
|
27
|
-
- NEW [Adding Scoped Storyblok components](#adding-scoped-storyblok-components)
|
|
28
|
-
- NEW [Overwriting schema files from scoped components](#overwriting-schema-files-from-scoped-components)
|
|
29
31
|
- [Usage](#usage)
|
|
30
32
|
- [Schema documentation:](#schema-documentation)
|
|
31
33
|
- [Basics](#basics)
|
package/dist/api/migrate.js
CHANGED
|
@@ -25,7 +25,14 @@ const _resolveGroups = async (component, existedGroups, remoteComponentsGroups)
|
|
|
25
25
|
};
|
|
26
26
|
export const syncComponents = async ({ specifiedComponents, presets, }) => {
|
|
27
27
|
Logger.log("sync2Components: ");
|
|
28
|
-
|
|
28
|
+
console.log(specifiedComponents);
|
|
29
|
+
const specifiedComponentsContent = await Promise.all(specifiedComponents.map((component) => {
|
|
30
|
+
console.log("###");
|
|
31
|
+
console.log(component);
|
|
32
|
+
return getFileContent({ file: component.path });
|
|
33
|
+
}));
|
|
34
|
+
console.log("this is specific components content");
|
|
35
|
+
console.log(specifiedComponentsContent);
|
|
29
36
|
const groupsToCheck = _uniqueValuesFrom(specifiedComponentsContent
|
|
30
37
|
.filter((component) => component.component_group_name)
|
|
31
38
|
.map((component) => component.component_group_name));
|
package/dist/commands/debug.js
CHANGED
|
@@ -1,4 +1,13 @@
|
|
|
1
|
+
import { createRequire } from "module";
|
|
1
2
|
import config from "../config/config.js";
|
|
3
|
+
const require = createRequire(import.meta.url);
|
|
4
|
+
const pkg = require(`${process.cwd()}/package.json`);
|
|
2
5
|
export const debug = async () => {
|
|
3
6
|
console.log("storyblok.config.js: ", config, "\n");
|
|
7
|
+
if (pkg.type === "module") {
|
|
8
|
+
console.log("U are using new esm stuff. Good for you!");
|
|
9
|
+
}
|
|
10
|
+
else {
|
|
11
|
+
console.log("Oh, common, commonjs, really? (common....js got it ?)");
|
|
12
|
+
}
|
|
4
13
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sb-mig",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.12-beta.1",
|
|
4
4
|
"description": "CLI to rule the world. (and handle stuff related to Storyblok CMS)",
|
|
5
5
|
"author": "Marcin Krawczyk <marckraw@icloud.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -55,8 +55,8 @@
|
|
|
55
55
|
"storyblok-js-client": "^4.5.2"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
|
-
"@commitlint/cli": "^17.0.
|
|
59
|
-
"@commitlint/config-conventional": "^17.0.
|
|
58
|
+
"@commitlint/cli": "^17.0.3",
|
|
59
|
+
"@commitlint/config-conventional": "^17.0.3",
|
|
60
60
|
"@ryansonshine/commitizen": "^4.2.8",
|
|
61
61
|
"@ryansonshine/cz-conventional-changelog": "^3.3.4",
|
|
62
62
|
"@semantic-release/changelog": "^6.0.1",
|
|
@@ -66,15 +66,14 @@
|
|
|
66
66
|
"@types/ncp": "^2.0.5",
|
|
67
67
|
"@types/node": "^17.0.35",
|
|
68
68
|
"chokidar-cli": "^3.0.0",
|
|
69
|
-
"commitizen": "^4.0.4",
|
|
70
69
|
"conventional-changelog-cli": "^2.0.31",
|
|
71
|
-
"eslint": "^8.
|
|
70
|
+
"eslint": "^8.22.0",
|
|
72
71
|
"eslint-config-prettier": "^8.5.0",
|
|
73
72
|
"husky": "^8.0.1",
|
|
74
73
|
"lint-staged": "^12.4.1",
|
|
75
|
-
"prettier": "^2.
|
|
76
|
-
"semantic-release": "^19.0.
|
|
77
|
-
"typescript": "^4.
|
|
74
|
+
"prettier": "^2.7.1",
|
|
75
|
+
"semantic-release": "^19.0.4",
|
|
76
|
+
"typescript": "^4.7.4"
|
|
78
77
|
},
|
|
79
78
|
"config": {
|
|
80
79
|
"commitizen": {
|