@eventcatalog/core 2.0.10 → 2.0.12
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 +12 -0
- package/bin/dist/chunk-62DEEFN2.js +48 -0
- package/bin/dist/eventcatalog.cjs +1 -1
- package/bin/dist/eventcatalog.config.cjs +18 -0
- package/bin/dist/eventcatalog.config.d.cts +26 -0
- package/bin/dist/eventcatalog.config.d.ts +26 -0
- package/bin/dist/eventcatalog.js +7 -42
- package/bin/eventcatalog.config.ts +25 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @eventcatalog/core
|
|
2
2
|
|
|
3
|
+
## 2.0.12
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 18f1c3d: fix(core): fixed start and preview commands
|
|
8
|
+
|
|
9
|
+
## 2.0.11
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- 45ea9f6: feat(core): added types file for eventcatalog.config.js
|
|
14
|
+
|
|
3
15
|
## 2.0.10
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
|
|
8
|
+
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
|
9
|
+
}) : x)(function(x) {
|
|
10
|
+
if (typeof require !== "undefined") return require.apply(this, arguments);
|
|
11
|
+
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
12
|
+
});
|
|
13
|
+
var __esm = (fn, res) => function __init() {
|
|
14
|
+
return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
|
|
15
|
+
};
|
|
16
|
+
var __commonJS = (cb, mod) => function __require2() {
|
|
17
|
+
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
18
|
+
};
|
|
19
|
+
var __copyProps = (to, from, except, desc) => {
|
|
20
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
21
|
+
for (let key of __getOwnPropNames(from))
|
|
22
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
23
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
24
|
+
}
|
|
25
|
+
return to;
|
|
26
|
+
};
|
|
27
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
28
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
29
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
30
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
31
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
32
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
33
|
+
mod
|
|
34
|
+
));
|
|
35
|
+
|
|
36
|
+
// node_modules/tsup/assets/esm_shims.js
|
|
37
|
+
var init_esm_shims = __esm({
|
|
38
|
+
"node_modules/tsup/assets/esm_shims.js"() {
|
|
39
|
+
"use strict";
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
|
|
43
|
+
export {
|
|
44
|
+
__require,
|
|
45
|
+
__commonJS,
|
|
46
|
+
__toESM,
|
|
47
|
+
init_esm_shims
|
|
48
|
+
};
|
|
@@ -3141,7 +3141,7 @@ var previewCatalog = () => {
|
|
|
3141
3141
|
copyFolder((0, import_node_path.join)(dir, "public"), (0, import_node_path.join)(core, "public"));
|
|
3142
3142
|
copyFile((0, import_node_path.join)(dir, "eventcatalog.config.js"), (0, import_node_path.join)(core, "eventcatalog.config.js"));
|
|
3143
3143
|
copyFile((0, import_node_path.join)(dir, "eventcatalog.styles.css"), (0, import_node_path.join)(core, "eventcatalog.styles.css"));
|
|
3144
|
-
(0, import_node_child_process.execSync)(`PROJECT_DIR='${dir}' CATALOG_DIR='${core}' npm run preview`, {
|
|
3144
|
+
(0, import_node_child_process.execSync)(`PROJECT_DIR='${dir}' CATALOG_DIR='${core}' npm run preview -- --root ${dir} --port 3000`, {
|
|
3145
3145
|
cwd: core,
|
|
3146
3146
|
stdio: "inherit"
|
|
3147
3147
|
});
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __copyProps = (to, from, except, desc) => {
|
|
7
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
+
for (let key of __getOwnPropNames(from))
|
|
9
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
+
}
|
|
12
|
+
return to;
|
|
13
|
+
};
|
|
14
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
15
|
+
|
|
16
|
+
// bin/eventcatalog.config.ts
|
|
17
|
+
var eventcatalog_config_exports = {};
|
|
18
|
+
module.exports = __toCommonJS(eventcatalog_config_exports);
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
type SideBarConfig = {
|
|
2
|
+
visible: boolean;
|
|
3
|
+
};
|
|
4
|
+
interface Config {
|
|
5
|
+
title: string;
|
|
6
|
+
tagline: false;
|
|
7
|
+
organizationName: string;
|
|
8
|
+
homepageLink: string;
|
|
9
|
+
editUrl: string;
|
|
10
|
+
logo: {
|
|
11
|
+
alt: string;
|
|
12
|
+
src: string;
|
|
13
|
+
};
|
|
14
|
+
docs: {
|
|
15
|
+
sidebar: {
|
|
16
|
+
showPageHeadings: true;
|
|
17
|
+
services?: SideBarConfig;
|
|
18
|
+
messages?: SideBarConfig;
|
|
19
|
+
domains?: SideBarConfig;
|
|
20
|
+
teams?: SideBarConfig;
|
|
21
|
+
users?: SideBarConfig;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export type { Config };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
type SideBarConfig = {
|
|
2
|
+
visible: boolean;
|
|
3
|
+
};
|
|
4
|
+
interface Config {
|
|
5
|
+
title: string;
|
|
6
|
+
tagline: false;
|
|
7
|
+
organizationName: string;
|
|
8
|
+
homepageLink: string;
|
|
9
|
+
editUrl: string;
|
|
10
|
+
logo: {
|
|
11
|
+
alt: string;
|
|
12
|
+
src: string;
|
|
13
|
+
};
|
|
14
|
+
docs: {
|
|
15
|
+
sidebar: {
|
|
16
|
+
showPageHeadings: true;
|
|
17
|
+
services?: SideBarConfig;
|
|
18
|
+
messages?: SideBarConfig;
|
|
19
|
+
domains?: SideBarConfig;
|
|
20
|
+
teams?: SideBarConfig;
|
|
21
|
+
users?: SideBarConfig;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export type { Config };
|
package/bin/dist/eventcatalog.js
CHANGED
|
@@ -1,45 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
|
|
9
|
-
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
|
10
|
-
}) : x)(function(x) {
|
|
11
|
-
if (typeof require !== "undefined") return require.apply(this, arguments);
|
|
12
|
-
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
13
|
-
});
|
|
14
|
-
var __esm = (fn, res) => function __init() {
|
|
15
|
-
return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
|
|
16
|
-
};
|
|
17
|
-
var __commonJS = (cb, mod) => function __require2() {
|
|
18
|
-
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
19
|
-
};
|
|
20
|
-
var __copyProps = (to, from, except, desc) => {
|
|
21
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
22
|
-
for (let key of __getOwnPropNames(from))
|
|
23
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
24
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
25
|
-
}
|
|
26
|
-
return to;
|
|
27
|
-
};
|
|
28
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
29
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
30
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
31
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
32
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
33
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
34
|
-
mod
|
|
35
|
-
));
|
|
36
|
-
|
|
37
|
-
// node_modules/tsup/assets/esm_shims.js
|
|
38
|
-
var init_esm_shims = __esm({
|
|
39
|
-
"node_modules/tsup/assets/esm_shims.js"() {
|
|
40
|
-
"use strict";
|
|
41
|
-
}
|
|
42
|
-
});
|
|
2
|
+
import {
|
|
3
|
+
__commonJS,
|
|
4
|
+
__require,
|
|
5
|
+
__toESM,
|
|
6
|
+
init_esm_shims
|
|
7
|
+
} from "./chunk-62DEEFN2.js";
|
|
43
8
|
|
|
44
9
|
// node_modules/commander/lib/error.js
|
|
45
10
|
var require_error = __commonJS({
|
|
@@ -3143,7 +3108,7 @@ var previewCatalog = () => {
|
|
|
3143
3108
|
copyFolder(join(dir, "public"), join(core, "public"));
|
|
3144
3109
|
copyFile(join(dir, "eventcatalog.config.js"), join(core, "eventcatalog.config.js"));
|
|
3145
3110
|
copyFile(join(dir, "eventcatalog.styles.css"), join(core, "eventcatalog.styles.css"));
|
|
3146
|
-
execSync(`PROJECT_DIR='${dir}' CATALOG_DIR='${core}' npm run preview`, {
|
|
3111
|
+
execSync(`PROJECT_DIR='${dir}' CATALOG_DIR='${core}' npm run preview -- --root ${dir} --port 3000`, {
|
|
3147
3112
|
cwd: core,
|
|
3148
3113
|
stdio: "inherit"
|
|
3149
3114
|
});
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
type SideBarConfig = {
|
|
2
|
+
visible: boolean;
|
|
3
|
+
};
|
|
4
|
+
|
|
5
|
+
export interface Config {
|
|
6
|
+
title: string;
|
|
7
|
+
tagline: false;
|
|
8
|
+
organizationName: string;
|
|
9
|
+
homepageLink: string;
|
|
10
|
+
editUrl: string;
|
|
11
|
+
logo: {
|
|
12
|
+
alt: string;
|
|
13
|
+
src: string;
|
|
14
|
+
};
|
|
15
|
+
docs: {
|
|
16
|
+
sidebar: {
|
|
17
|
+
showPageHeadings: true;
|
|
18
|
+
services?: SideBarConfig;
|
|
19
|
+
messages?: SideBarConfig;
|
|
20
|
+
domains?: SideBarConfig;
|
|
21
|
+
teams?: SideBarConfig;
|
|
22
|
+
users?: SideBarConfig;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
}
|