oc 0.49.26 → 0.49.28
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 +10 -0
- package/dist/cli/commands.d.ts +163 -163
- package/dist/cli/commands.js +162 -162
- package/dist/cli/domain/clean.d.ts +2 -2
- package/dist/cli/domain/clean.js +24 -24
- package/dist/cli/domain/get-components-by-dir.d.ts +1 -1
- package/dist/cli/domain/get-components-by-dir.js +41 -41
- package/dist/cli/domain/get-mocked-plugins.d.ts +10 -10
- package/dist/cli/domain/get-mocked-plugins.js +88 -88
- package/dist/cli/domain/handle-dependencies/ensure-compiler-is-declared-as-devDependency.d.ts +6 -6
- package/dist/cli/domain/handle-dependencies/ensure-compiler-is-declared-as-devDependency.js +15 -15
- package/dist/cli/domain/handle-dependencies/get-compiler.d.ts +10 -10
- package/dist/cli/domain/handle-dependencies/get-compiler.js +28 -28
- package/dist/cli/domain/handle-dependencies/get-missing-dependencies.d.ts +1 -1
- package/dist/cli/domain/handle-dependencies/get-missing-dependencies.js +18 -18
- package/dist/cli/domain/handle-dependencies/index.d.ts +10 -10
- package/dist/cli/domain/handle-dependencies/index.js +70 -70
- package/dist/cli/domain/handle-dependencies/install-compiler.d.ts +8 -8
- package/dist/cli/domain/handle-dependencies/install-compiler.js +58 -58
- package/dist/cli/domain/handle-dependencies/install-missing-dependencies.d.ts +5 -5
- package/dist/cli/domain/handle-dependencies/install-missing-dependencies.js +63 -63
- package/dist/cli/domain/handle-dependencies/link-missing-dependencies.d.ts +6 -6
- package/dist/cli/domain/handle-dependencies/link-missing-dependencies.js +32 -32
- package/dist/cli/domain/handle-dependencies/require-template.d.ts +17 -17
- package/dist/cli/domain/handle-dependencies/require-template.js +34 -34
- package/dist/cli/domain/init-template/index.d.ts +10 -10
- package/dist/cli/domain/init-template/index.js +44 -44
- package/dist/cli/domain/init-template/install-template.d.ts +11 -11
- package/dist/cli/domain/init-template/install-template.js +58 -58
- package/dist/cli/domain/init-template/scaffold.d.ts +11 -11
- package/dist/cli/domain/init-template/scaffold.js +34 -34
- package/dist/cli/domain/local.d.ts +21 -21
- package/dist/cli/domain/local.js +86 -86
- package/dist/cli/domain/mock.d.ts +5 -5
- package/dist/cli/domain/mock.js +33 -33
- package/dist/cli/domain/package-components.d.ts +9 -9
- package/dist/cli/domain/package-components.js +71 -71
- package/dist/cli/domain/registry.d.ts +20 -20
- package/dist/cli/domain/registry.js +143 -143
- package/dist/cli/domain/url-parser.d.ts +14 -14
- package/dist/cli/domain/url-parser.js +31 -31
- package/dist/cli/domain/watch.d.ts +1 -1
- package/dist/cli/domain/watch.js +29 -29
- package/dist/cli/facade/clean.d.ts +16 -16
- package/dist/cli/facade/clean.js +58 -58
- package/dist/cli/facade/dev.d.ts +146 -114
- package/dist/cli/facade/dev.js +177 -177
- package/dist/cli/facade/init.d.ts +18 -18
- package/dist/cli/facade/init.js +39 -39
- package/dist/cli/facade/mock.d.ts +18 -18
- package/dist/cli/facade/mock.js +12 -12
- package/dist/cli/facade/package.d.ts +19 -19
- package/dist/cli/facade/package.js +49 -49
- package/dist/cli/facade/preview.d.ts +14 -14
- package/dist/cli/facade/preview.js +20 -20
- package/dist/cli/facade/publish.d.ts +24 -24
- package/dist/cli/facade/publish.js +145 -145
- package/dist/cli/facade/registry-add.d.ts +14 -14
- package/dist/cli/facade/registry-add.js +18 -18
- package/dist/cli/facade/registry-ls.d.ts +10 -10
- package/dist/cli/facade/registry-ls.js +27 -27
- package/dist/cli/facade/registry-remove.d.ts +14 -14
- package/dist/cli/facade/registry-remove.js +18 -18
- package/dist/cli/facade/registry.d.ts +5 -5
- package/dist/cli/facade/registry.js +9 -9
- package/dist/cli/index.d.ts +1 -1
- package/dist/cli/index.js +91 -91
- package/dist/cli/logger.d.ts +8 -8
- package/dist/cli/logger.js +19 -19
- package/dist/cli/programmatic-api.d.ts +84 -84
- package/dist/cli/programmatic-api.js +66 -66
- package/dist/cli/validate-command.d.ts +2 -2
- package/dist/cli/validate-command.js +18 -18
- package/dist/components/oc-client/_package/package.json +1 -1
- package/dist/components/oc-client/_package/server.js +1 -1
- package/dist/components/oc-client/_package/src/oc-client.min.js +2 -2
- package/dist/components/oc-client/_package/src/oc-client.min.map +1 -1
- package/dist/components/oc-client/_package/template.js +11 -1
- package/dist/components/oc-client/package.json +1 -1
- package/dist/components/oc-client/src/oc-client.min.js +2 -2
- package/dist/components/oc-client/src/oc-client.min.map +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.js +12 -12
- package/dist/oc-cli.d.ts +2 -2
- package/dist/oc-cli.js +3 -3
- package/dist/registry/app-start.d.ts +3 -3
- package/dist/registry/app-start.js +44 -44
- package/dist/registry/domain/authentication.d.ts +7 -7
- package/dist/registry/domain/authentication.js +53 -53
- package/dist/registry/domain/components-cache/components-list.d.ts +8 -8
- package/dist/registry/domain/components-cache/components-list.js +73 -73
- package/dist/registry/domain/components-cache/index.d.ts +7 -7
- package/dist/registry/domain/components-cache/index.js +81 -81
- package/dist/registry/domain/components-details.d.ts +6 -6
- package/dist/registry/domain/components-details.js +63 -63
- package/dist/registry/domain/events-handler.d.ts +48 -40
- package/dist/registry/domain/events-handler.js +37 -37
- package/dist/registry/domain/extract-package.d.ts +8 -8
- package/dist/registry/domain/extract-package.js +30 -30
- package/dist/registry/domain/get-package-json-from-temp-dir.d.ts +2 -2
- package/dist/registry/domain/get-package-json-from-temp-dir.js +11 -11
- package/dist/registry/domain/nested-renderer.d.ts +14 -14
- package/dist/registry/domain/nested-renderer.js +59 -59
- package/dist/registry/domain/options-sanitiser.d.ts +6 -6
- package/dist/registry/domain/options-sanitiser.js +113 -113
- package/dist/registry/domain/plugins-initialiser.d.ts +3 -3
- package/dist/registry/domain/plugins-initialiser.js +95 -95
- package/dist/registry/domain/register-templates.d.ts +5 -5
- package/dist/registry/domain/register-templates.js +37 -37
- package/dist/registry/domain/repository.d.ts +26 -26
- package/dist/registry/domain/repository.js +255 -255
- package/dist/registry/domain/require-wrapper.d.ts +2 -2
- package/dist/registry/domain/require-wrapper.js +33 -33
- package/dist/registry/domain/sanitiser.d.ts +2 -2
- package/dist/registry/domain/sanitiser.js +52 -52
- package/dist/registry/domain/storage-adapter.d.ts +10 -10
- package/dist/registry/domain/storage-adapter.js +55 -55
- package/dist/registry/domain/url-builder.d.ts +10 -10
- package/dist/registry/domain/url-builder.js +60 -60
- package/dist/registry/domain/validators/component-parameters.d.ts +11 -11
- package/dist/registry/domain/validators/component-parameters.js +79 -79
- package/dist/registry/domain/validators/index.d.ts +16 -16
- package/dist/registry/domain/validators/index.js +29 -29
- package/dist/registry/domain/validators/node-version.d.ts +15 -15
- package/dist/registry/domain/validators/node-version.js +40 -40
- package/dist/registry/domain/validators/oc-cli-version.d.ts +15 -15
- package/dist/registry/domain/validators/oc-cli-version.js +34 -34
- package/dist/registry/domain/validators/package-json-validator.d.ts +13 -13
- package/dist/registry/domain/validators/package-json-validator.js +23 -23
- package/dist/registry/domain/validators/plugins-requirements.d.ts +9 -9
- package/dist/registry/domain/validators/plugins-requirements.js +22 -22
- package/dist/registry/domain/validators/registry-configuration.d.ts +9 -9
- package/dist/registry/domain/validators/registry-configuration.js +117 -117
- package/dist/registry/domain/validators/uploaded-package.d.ts +14 -14
- package/dist/registry/domain/validators/uploaded-package.js +25 -25
- package/dist/registry/domain/version-handler.d.ts +2 -2
- package/dist/registry/domain/version-handler.js +22 -22
- package/dist/registry/index.d.ts +64 -48
- package/dist/registry/index.js +109 -109
- package/dist/registry/middleware/base-url-handler.d.ts +2 -2
- package/dist/registry/middleware/base-url-handler.js +12 -12
- package/dist/registry/middleware/cors.d.ts +2 -2
- package/dist/registry/middleware/cors.js +11 -11
- package/dist/registry/middleware/discovery-handler.d.ts +2 -2
- package/dist/registry/middleware/discovery-handler.js +15 -15
- package/dist/registry/middleware/file-uploads.d.ts +2 -2
- package/dist/registry/middleware/file-uploads.js +23 -23
- package/dist/registry/middleware/index.d.ts +3 -3
- package/dist/registry/middleware/index.js +48 -48
- package/dist/registry/middleware/request-handler.d.ts +2 -2
- package/dist/registry/middleware/request-handler.js +30 -30
- package/dist/registry/router.d.ts +4 -4
- package/dist/registry/router.js +56 -56
- package/dist/registry/routes/component-info.d.ts +4 -4
- package/dist/registry/routes/component-info.js +95 -94
- package/dist/registry/routes/component-preview.d.ts +4 -4
- package/dist/registry/routes/component-preview.js +72 -72
- package/dist/registry/routes/component.d.ts +4 -4
- package/dist/registry/routes/component.js +43 -43
- package/dist/registry/routes/components.d.ts +4 -4
- package/dist/registry/routes/components.js +78 -78
- package/dist/registry/routes/dependencies.d.ts +3 -3
- package/dist/registry/routes/dependencies.js +28 -28
- package/dist/registry/routes/helpers/apply-default-values.d.ts +2 -2
- package/dist/registry/routes/helpers/apply-default-values.js +13 -13
- package/dist/registry/routes/helpers/get-available-dependencies.d.ts +8 -8
- package/dist/registry/routes/helpers/get-available-dependencies.js +23 -23
- package/dist/registry/routes/helpers/get-component-fallback.d.ts +17 -17
- package/dist/registry/routes/helpers/get-component-fallback.js +95 -95
- package/dist/registry/routes/helpers/get-component-retrieving-info.d.ts +20 -20
- package/dist/registry/routes/helpers/get-component-retrieving-info.js +24 -24
- package/dist/registry/routes/helpers/get-component.d.ts +34 -34
- package/dist/registry/routes/helpers/get-component.js +445 -435
- package/dist/registry/routes/helpers/get-components-history.d.ts +8 -8
- package/dist/registry/routes/helpers/get-components-history.js +28 -28
- package/dist/registry/routes/helpers/is-url-discoverable.d.ts +3 -3
- package/dist/registry/routes/helpers/is-url-discoverable.js +21 -21
- package/dist/registry/routes/index.d.ts +3 -3
- package/dist/registry/routes/index.js +93 -93
- package/dist/registry/routes/plugins.d.ts +3 -3
- package/dist/registry/routes/plugins.js +17 -17
- package/dist/registry/routes/publish.d.ts +3 -3
- package/dist/registry/routes/publish.js +101 -101
- package/dist/registry/routes/static-redirector.d.ts +3 -3
- package/dist/registry/routes/static-redirector.js +86 -86
- package/dist/registry/views/index.d.ts +2 -2
- package/dist/registry/views/index.js +39 -39
- package/dist/registry/views/info.d.ts +16 -16
- package/dist/registry/views/info.js +39 -39
- package/dist/registry/views/partials/component-author.d.ts +8 -8
- package/dist/registry/views/partials/component-author.js +20 -20
- package/dist/registry/views/partials/component-parameters.d.ts +5 -5
- package/dist/registry/views/partials/component-parameters.js +24 -24
- package/dist/registry/views/partials/component-state.d.ts +5 -5
- package/dist/registry/views/partials/component-state.js +6 -6
- package/dist/registry/views/partials/component-versions.d.ts +5 -5
- package/dist/registry/views/partials/component-versions.js +9 -9
- package/dist/registry/views/partials/components-dependencies.d.ts +2 -2
- package/dist/registry/views/partials/components-dependencies.js +12 -12
- package/dist/registry/views/partials/components-history.d.ts +2 -2
- package/dist/registry/views/partials/components-history.js +10 -10
- package/dist/registry/views/partials/components-list.d.ts +2 -2
- package/dist/registry/views/partials/components-list.js +26 -26
- package/dist/registry/views/partials/components-plugins.d.ts +2 -2
- package/dist/registry/views/partials/components-plugins.js +8 -8
- package/dist/registry/views/partials/components-templates.d.ts +2 -2
- package/dist/registry/views/partials/components-templates.js +14 -14
- package/dist/registry/views/partials/layout.d.ts +8 -8
- package/dist/registry/views/partials/layout.js +11 -11
- package/dist/registry/views/partials/property.d.ts +2 -2
- package/dist/registry/views/partials/property.js +11 -11
- package/dist/registry/views/partials/selected-checkbox.d.ts +4 -4
- package/dist/registry/views/partials/selected-checkbox.js +7 -7
- package/dist/registry/views/preview.d.ts +8 -8
- package/dist/registry/views/preview.js +9 -9
- package/dist/registry/views/static/index.d.ts +2 -2
- package/dist/registry/views/static/index.js +3 -3
- package/dist/registry/views/static/info.d.ts +2 -2
- package/dist/registry/views/static/info.js +3 -3
- package/dist/registry/views/static/style.d.ts +2 -2
- package/dist/registry/views/static/style.js +3 -3
- package/dist/resources/index.d.ts +134 -134
- package/dist/resources/index.js +145 -145
- package/dist/resources/settings.d.ts +17 -17
- package/dist/resources/settings.js +18 -18
- package/dist/types.d.ts +231 -231
- package/dist/types.js +2 -2
- package/dist/utils/clean-require.d.ts +16 -16
- package/dist/utils/clean-require.js +18 -18
- package/dist/utils/date-stringify.d.ts +1 -1
- package/dist/utils/date-stringify.js +22 -22
- package/dist/utils/error-to-string.d.ts +1 -1
- package/dist/utils/error-to-string.js +15 -15
- package/dist/utils/is-template-legacy.d.ts +3 -3
- package/dist/utils/is-template-legacy.js +6 -6
- package/dist/utils/is-template-valid.d.ts +4 -4
- package/dist/utils/is-template-valid.js +12 -12
- package/dist/utils/module-exists.d.ts +1 -1
- package/dist/utils/module-exists.js +15 -15
- package/dist/utils/npm-utils.d.ts +20 -20
- package/dist/utils/npm-utils.js +74 -74
- package/dist/utils/put.d.ts +2 -2
- package/dist/utils/put.js +29 -29
- package/dist/utils/strip-version.d.ts +1 -1
- package/dist/utils/strip-version.js +11 -11
- package/logintervals.md +1 -1
- package/package.json +20 -20
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
## Change Log
|
|
2
2
|
|
|
3
|
+
### v0.49.28
|
|
4
|
+
|
|
5
|
+
- [#1337](https://github.com/opencomponents/oc/pull/1337) send data-provider-error event
|
|
6
|
+
|
|
7
|
+
### v0.49.27
|
|
8
|
+
|
|
9
|
+
- [#1336](https://github.com/opencomponents/oc/pull/1336) add support for global fetch on components
|
|
10
|
+
- [#1324](https://github.com/opencomponents/oc/pull/1324) Bump http-cache-semantics from 4.1.0 to 4.1.1
|
|
11
|
+
- [#1332](https://github.com/opencomponents/oc/pull/1332) Bump webpack from 5.64.4 to 5.77.0
|
|
12
|
+
|
|
3
13
|
### v0.49.24
|
|
4
14
|
|
|
5
15
|
- [#1329](https://github.com/opencomponents/oc/pull/1329) check for exports data too
|
package/dist/cli/commands.d.ts
CHANGED
|
@@ -1,163 +1,163 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
usage: string;
|
|
3
|
-
commands: {
|
|
4
|
-
clean: {
|
|
5
|
-
cmd: string;
|
|
6
|
-
example: {
|
|
7
|
-
cmd: string;
|
|
8
|
-
};
|
|
9
|
-
description: string;
|
|
10
|
-
options: {
|
|
11
|
-
yes: {
|
|
12
|
-
boolean: boolean;
|
|
13
|
-
description: string;
|
|
14
|
-
default: boolean;
|
|
15
|
-
};
|
|
16
|
-
};
|
|
17
|
-
usage: string;
|
|
18
|
-
};
|
|
19
|
-
dev: {
|
|
20
|
-
cmd: string;
|
|
21
|
-
example: {
|
|
22
|
-
cmd: string;
|
|
23
|
-
};
|
|
24
|
-
description: string;
|
|
25
|
-
options: {
|
|
26
|
-
fallbackRegistryUrl: {
|
|
27
|
-
description: string;
|
|
28
|
-
};
|
|
29
|
-
hotReloading: {
|
|
30
|
-
boolean: boolean;
|
|
31
|
-
description: string;
|
|
32
|
-
default: boolean;
|
|
33
|
-
};
|
|
34
|
-
verbose: {
|
|
35
|
-
boolean: boolean;
|
|
36
|
-
description: string;
|
|
37
|
-
default: boolean;
|
|
38
|
-
};
|
|
39
|
-
watch: {
|
|
40
|
-
boolean: boolean;
|
|
41
|
-
description: string;
|
|
42
|
-
default: boolean;
|
|
43
|
-
};
|
|
44
|
-
production: {
|
|
45
|
-
boolean: boolean;
|
|
46
|
-
description: string;
|
|
47
|
-
default: boolean;
|
|
48
|
-
};
|
|
49
|
-
prefix: {
|
|
50
|
-
boolean: boolean;
|
|
51
|
-
description: string;
|
|
52
|
-
default: string;
|
|
53
|
-
};
|
|
54
|
-
components: {
|
|
55
|
-
array: boolean;
|
|
56
|
-
description: string;
|
|
57
|
-
};
|
|
58
|
-
};
|
|
59
|
-
usage: string;
|
|
60
|
-
};
|
|
61
|
-
init: {
|
|
62
|
-
cmd: string;
|
|
63
|
-
example: {
|
|
64
|
-
cmd: string;
|
|
65
|
-
};
|
|
66
|
-
description: string;
|
|
67
|
-
usage: string;
|
|
68
|
-
};
|
|
69
|
-
mock: {
|
|
70
|
-
cmd: string;
|
|
71
|
-
example: {
|
|
72
|
-
cmd: string;
|
|
73
|
-
description: string;
|
|
74
|
-
};
|
|
75
|
-
description: string;
|
|
76
|
-
usage: string;
|
|
77
|
-
};
|
|
78
|
-
preview: {
|
|
79
|
-
cmd: string;
|
|
80
|
-
example: {
|
|
81
|
-
cmd: string;
|
|
82
|
-
};
|
|
83
|
-
description: string;
|
|
84
|
-
usage: string;
|
|
85
|
-
};
|
|
86
|
-
package: {
|
|
87
|
-
cmd: string;
|
|
88
|
-
example: {
|
|
89
|
-
cmd: string;
|
|
90
|
-
};
|
|
91
|
-
options: {
|
|
92
|
-
compress: {
|
|
93
|
-
boolean: boolean;
|
|
94
|
-
description: string;
|
|
95
|
-
default: boolean;
|
|
96
|
-
};
|
|
97
|
-
useComponentDependencies: {
|
|
98
|
-
boolean: boolean;
|
|
99
|
-
description: string;
|
|
100
|
-
default: boolean;
|
|
101
|
-
};
|
|
102
|
-
};
|
|
103
|
-
description: string;
|
|
104
|
-
usage: string;
|
|
105
|
-
};
|
|
106
|
-
publish: {
|
|
107
|
-
cmd: string;
|
|
108
|
-
example: {
|
|
109
|
-
cmd: string;
|
|
110
|
-
};
|
|
111
|
-
options: {
|
|
112
|
-
password: {
|
|
113
|
-
description: string;
|
|
114
|
-
};
|
|
115
|
-
username: {
|
|
116
|
-
description: string;
|
|
117
|
-
};
|
|
118
|
-
skipPackage: {
|
|
119
|
-
boolean: boolean;
|
|
120
|
-
description: string;
|
|
121
|
-
default: boolean;
|
|
122
|
-
};
|
|
123
|
-
registries: {
|
|
124
|
-
array: boolean;
|
|
125
|
-
description: string;
|
|
126
|
-
};
|
|
127
|
-
};
|
|
128
|
-
description: string;
|
|
129
|
-
usage: string;
|
|
130
|
-
};
|
|
131
|
-
registry: {
|
|
132
|
-
cmd: string;
|
|
133
|
-
description: string;
|
|
134
|
-
commands: {
|
|
135
|
-
add: {
|
|
136
|
-
cmd: string;
|
|
137
|
-
example: {
|
|
138
|
-
cmd: string;
|
|
139
|
-
};
|
|
140
|
-
description: string;
|
|
141
|
-
usage: string;
|
|
142
|
-
};
|
|
143
|
-
ls: {
|
|
144
|
-
example: {
|
|
145
|
-
cmd: string;
|
|
146
|
-
};
|
|
147
|
-
description: string;
|
|
148
|
-
usage: string;
|
|
149
|
-
};
|
|
150
|
-
remove: {
|
|
151
|
-
cmd: string;
|
|
152
|
-
example: {
|
|
153
|
-
cmd: string;
|
|
154
|
-
};
|
|
155
|
-
description: string;
|
|
156
|
-
usage: string;
|
|
157
|
-
};
|
|
158
|
-
};
|
|
159
|
-
usage: string;
|
|
160
|
-
};
|
|
161
|
-
};
|
|
162
|
-
};
|
|
163
|
-
export default _default;
|
|
1
|
+
declare const _default: {
|
|
2
|
+
usage: string;
|
|
3
|
+
commands: {
|
|
4
|
+
clean: {
|
|
5
|
+
cmd: string;
|
|
6
|
+
example: {
|
|
7
|
+
cmd: string;
|
|
8
|
+
};
|
|
9
|
+
description: string;
|
|
10
|
+
options: {
|
|
11
|
+
yes: {
|
|
12
|
+
boolean: boolean;
|
|
13
|
+
description: string;
|
|
14
|
+
default: boolean;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
usage: string;
|
|
18
|
+
};
|
|
19
|
+
dev: {
|
|
20
|
+
cmd: string;
|
|
21
|
+
example: {
|
|
22
|
+
cmd: string;
|
|
23
|
+
};
|
|
24
|
+
description: string;
|
|
25
|
+
options: {
|
|
26
|
+
fallbackRegistryUrl: {
|
|
27
|
+
description: string;
|
|
28
|
+
};
|
|
29
|
+
hotReloading: {
|
|
30
|
+
boolean: boolean;
|
|
31
|
+
description: string;
|
|
32
|
+
default: boolean;
|
|
33
|
+
};
|
|
34
|
+
verbose: {
|
|
35
|
+
boolean: boolean;
|
|
36
|
+
description: string;
|
|
37
|
+
default: boolean;
|
|
38
|
+
};
|
|
39
|
+
watch: {
|
|
40
|
+
boolean: boolean;
|
|
41
|
+
description: string;
|
|
42
|
+
default: boolean;
|
|
43
|
+
};
|
|
44
|
+
production: {
|
|
45
|
+
boolean: boolean;
|
|
46
|
+
description: string;
|
|
47
|
+
default: boolean;
|
|
48
|
+
};
|
|
49
|
+
prefix: {
|
|
50
|
+
boolean: boolean;
|
|
51
|
+
description: string;
|
|
52
|
+
default: string;
|
|
53
|
+
};
|
|
54
|
+
components: {
|
|
55
|
+
array: boolean;
|
|
56
|
+
description: string;
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
usage: string;
|
|
60
|
+
};
|
|
61
|
+
init: {
|
|
62
|
+
cmd: string;
|
|
63
|
+
example: {
|
|
64
|
+
cmd: string;
|
|
65
|
+
};
|
|
66
|
+
description: string;
|
|
67
|
+
usage: string;
|
|
68
|
+
};
|
|
69
|
+
mock: {
|
|
70
|
+
cmd: string;
|
|
71
|
+
example: {
|
|
72
|
+
cmd: string;
|
|
73
|
+
description: string;
|
|
74
|
+
};
|
|
75
|
+
description: string;
|
|
76
|
+
usage: string;
|
|
77
|
+
};
|
|
78
|
+
preview: {
|
|
79
|
+
cmd: string;
|
|
80
|
+
example: {
|
|
81
|
+
cmd: string;
|
|
82
|
+
};
|
|
83
|
+
description: string;
|
|
84
|
+
usage: string;
|
|
85
|
+
};
|
|
86
|
+
package: {
|
|
87
|
+
cmd: string;
|
|
88
|
+
example: {
|
|
89
|
+
cmd: string;
|
|
90
|
+
};
|
|
91
|
+
options: {
|
|
92
|
+
compress: {
|
|
93
|
+
boolean: boolean;
|
|
94
|
+
description: string;
|
|
95
|
+
default: boolean;
|
|
96
|
+
};
|
|
97
|
+
useComponentDependencies: {
|
|
98
|
+
boolean: boolean;
|
|
99
|
+
description: string;
|
|
100
|
+
default: boolean;
|
|
101
|
+
};
|
|
102
|
+
};
|
|
103
|
+
description: string;
|
|
104
|
+
usage: string;
|
|
105
|
+
};
|
|
106
|
+
publish: {
|
|
107
|
+
cmd: string;
|
|
108
|
+
example: {
|
|
109
|
+
cmd: string;
|
|
110
|
+
};
|
|
111
|
+
options: {
|
|
112
|
+
password: {
|
|
113
|
+
description: string;
|
|
114
|
+
};
|
|
115
|
+
username: {
|
|
116
|
+
description: string;
|
|
117
|
+
};
|
|
118
|
+
skipPackage: {
|
|
119
|
+
boolean: boolean;
|
|
120
|
+
description: string;
|
|
121
|
+
default: boolean;
|
|
122
|
+
};
|
|
123
|
+
registries: {
|
|
124
|
+
array: boolean;
|
|
125
|
+
description: string;
|
|
126
|
+
};
|
|
127
|
+
};
|
|
128
|
+
description: string;
|
|
129
|
+
usage: string;
|
|
130
|
+
};
|
|
131
|
+
registry: {
|
|
132
|
+
cmd: string;
|
|
133
|
+
description: string;
|
|
134
|
+
commands: {
|
|
135
|
+
add: {
|
|
136
|
+
cmd: string;
|
|
137
|
+
example: {
|
|
138
|
+
cmd: string;
|
|
139
|
+
};
|
|
140
|
+
description: string;
|
|
141
|
+
usage: string;
|
|
142
|
+
};
|
|
143
|
+
ls: {
|
|
144
|
+
example: {
|
|
145
|
+
cmd: string;
|
|
146
|
+
};
|
|
147
|
+
description: string;
|
|
148
|
+
usage: string;
|
|
149
|
+
};
|
|
150
|
+
remove: {
|
|
151
|
+
cmd: string;
|
|
152
|
+
example: {
|
|
153
|
+
cmd: string;
|
|
154
|
+
};
|
|
155
|
+
description: string;
|
|
156
|
+
usage: string;
|
|
157
|
+
};
|
|
158
|
+
};
|
|
159
|
+
usage: string;
|
|
160
|
+
};
|
|
161
|
+
};
|
|
162
|
+
};
|
|
163
|
+
export default _default;
|
package/dist/cli/commands.js
CHANGED
|
@@ -1,162 +1,162 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.default = {
|
|
4
|
-
usage: 'Usage: $0 <command> [options]',
|
|
5
|
-
commands: {
|
|
6
|
-
clean: {
|
|
7
|
-
cmd: 'clean <dirPath>',
|
|
8
|
-
example: { cmd: '$0 clean components --yes' },
|
|
9
|
-
description: `Remove the node_modules directory from each component's subfolder`,
|
|
10
|
-
options: {
|
|
11
|
-
yes: {
|
|
12
|
-
boolean: true,
|
|
13
|
-
description: 'Skip all confirmation prompts',
|
|
14
|
-
default: false
|
|
15
|
-
}
|
|
16
|
-
},
|
|
17
|
-
usage: 'Usage: $0 clean <dirPath>'
|
|
18
|
-
},
|
|
19
|
-
dev: {
|
|
20
|
-
cmd: 'dev <dirPath> [port] [baseUrl]',
|
|
21
|
-
example: {
|
|
22
|
-
cmd: '$0 dev ../all-components 3001 127.0.0.1:3001 --fallbackRegistryUrl=http://anotherhost:anotherport/'
|
|
23
|
-
},
|
|
24
|
-
description: 'Run a local oc test registry in order to develop and test components',
|
|
25
|
-
options: {
|
|
26
|
-
fallbackRegistryUrl: {
|
|
27
|
-
description: 'Url to another registry which will be used by dev registry when component cannot be found in local registry'
|
|
28
|
-
},
|
|
29
|
-
hotReloading: {
|
|
30
|
-
boolean: true,
|
|
31
|
-
description: 'Enable hot reloading. Note: when hot reloading is set to true, each request to the component will make the registry to create a new instance for the javascript closures to be loaded, while when false the instance will be recycled between components executions',
|
|
32
|
-
default: true
|
|
33
|
-
},
|
|
34
|
-
verbose: {
|
|
35
|
-
boolean: true,
|
|
36
|
-
description: 'Verbosity',
|
|
37
|
-
default: false
|
|
38
|
-
},
|
|
39
|
-
watch: {
|
|
40
|
-
boolean: true,
|
|
41
|
-
description: 'Watch for file changes',
|
|
42
|
-
default: true
|
|
43
|
-
},
|
|
44
|
-
production: {
|
|
45
|
-
boolean: true,
|
|
46
|
-
description: 'Force packaging for production',
|
|
47
|
-
default: false
|
|
48
|
-
},
|
|
49
|
-
prefix: {
|
|
50
|
-
boolean: false,
|
|
51
|
-
description: 'Url prefix for registry server',
|
|
52
|
-
default: ''
|
|
53
|
-
},
|
|
54
|
-
components: {
|
|
55
|
-
array: true,
|
|
56
|
-
description: 'List of component names that you want to be packaged and exposed on dev registry'
|
|
57
|
-
}
|
|
58
|
-
},
|
|
59
|
-
usage: 'Usage: $0 dev <dirPath> [port] [baseUrl] [options]'
|
|
60
|
-
},
|
|
61
|
-
init: {
|
|
62
|
-
cmd: 'init <componentPath> [templateType]',
|
|
63
|
-
example: {
|
|
64
|
-
cmd: '$0 init test-component oc-template-es6'
|
|
65
|
-
},
|
|
66
|
-
description: 'Create a new empty component of a specific template type in the current folder or in directory indicated by (relative) componentPath [templateType default: oc-template-es6]',
|
|
67
|
-
usage: 'Usage: $0 init <componentPath> [templateType]'
|
|
68
|
-
},
|
|
69
|
-
mock: {
|
|
70
|
-
cmd: 'mock <targetType> <targetName> <targetValue>',
|
|
71
|
-
example: {
|
|
72
|
-
cmd: '$0 mock plugin hash "always-returned-value"',
|
|
73
|
-
description: 'Create static mock for a "hash" plugin which always returns "always-returned-value" value'
|
|
74
|
-
},
|
|
75
|
-
description: 'Allows to mock configuration in order to facilitate local development',
|
|
76
|
-
usage: 'Usage: $0 mock <targetType> <targetName> <targetValue>'
|
|
77
|
-
},
|
|
78
|
-
preview: {
|
|
79
|
-
cmd: 'preview <componentHref>',
|
|
80
|
-
example: {
|
|
81
|
-
cmd: '$0 preview "http://localhost:3000/my-new-component/1.0.0/?param1=hello&name=Arthur"'
|
|
82
|
-
},
|
|
83
|
-
description: 'Run a test page consuming a component',
|
|
84
|
-
usage: 'Usage: $0 preview <componentHref>'
|
|
85
|
-
},
|
|
86
|
-
package: {
|
|
87
|
-
cmd: 'package <componentPath>',
|
|
88
|
-
example: {
|
|
89
|
-
cmd: '$0 package my-new-component/'
|
|
90
|
-
},
|
|
91
|
-
options: {
|
|
92
|
-
compress: {
|
|
93
|
-
boolean: true,
|
|
94
|
-
description: 'Create zipped file',
|
|
95
|
-
default: false
|
|
96
|
-
},
|
|
97
|
-
useComponentDependencies: {
|
|
98
|
-
boolean: true,
|
|
99
|
-
description: 'Reuse already installed dependencies to save packaging time and network bandwidth',
|
|
100
|
-
default: false
|
|
101
|
-
}
|
|
102
|
-
},
|
|
103
|
-
description: 'Create the packaged component ready to be published',
|
|
104
|
-
usage: 'Usage: $0 package <componentPath>'
|
|
105
|
-
},
|
|
106
|
-
publish: {
|
|
107
|
-
cmd: 'publish <componentPath>',
|
|
108
|
-
example: {
|
|
109
|
-
cmd: '$0 publish my-new-component/'
|
|
110
|
-
},
|
|
111
|
-
options: {
|
|
112
|
-
password: {
|
|
113
|
-
description: 'password used to authenticate when publishing to registry'
|
|
114
|
-
},
|
|
115
|
-
username: {
|
|
116
|
-
description: 'username used to authenticate when publishing to registry'
|
|
117
|
-
},
|
|
118
|
-
skipPackage: {
|
|
119
|
-
boolean: true,
|
|
120
|
-
description: 'Skip packaging step',
|
|
121
|
-
default: false
|
|
122
|
-
},
|
|
123
|
-
registries: {
|
|
124
|
-
array: true,
|
|
125
|
-
description: 'List of registries to publish to. This setting will take precedence over oc.json file'
|
|
126
|
-
}
|
|
127
|
-
},
|
|
128
|
-
description: 'Publish a component',
|
|
129
|
-
usage: 'Usage: $0 publish <componentPath>'
|
|
130
|
-
},
|
|
131
|
-
registry: {
|
|
132
|
-
cmd: 'registry <command>',
|
|
133
|
-
description: 'Manage oc registries in the current project',
|
|
134
|
-
commands: {
|
|
135
|
-
add: {
|
|
136
|
-
cmd: 'add <registryUrl>',
|
|
137
|
-
example: {
|
|
138
|
-
cmd: '$0 registry add http://my-registry.in.my.domain/'
|
|
139
|
-
},
|
|
140
|
-
description: 'Add oc registries to the current project',
|
|
141
|
-
usage: 'Usage: $0 registry add <registryUrl>'
|
|
142
|
-
},
|
|
143
|
-
ls: {
|
|
144
|
-
example: {
|
|
145
|
-
cmd: '$0 registry ls'
|
|
146
|
-
},
|
|
147
|
-
description: 'Show oc registries added to the current project',
|
|
148
|
-
usage: 'Usage: $0 registry ls'
|
|
149
|
-
},
|
|
150
|
-
remove: {
|
|
151
|
-
cmd: 'remove <registryUrl>',
|
|
152
|
-
example: {
|
|
153
|
-
cmd: '$0 registry remove http://my-registry.in.my.domain/'
|
|
154
|
-
},
|
|
155
|
-
description: 'Remove oc registries from the current project',
|
|
156
|
-
usage: 'Usage: $0 registry remove <registryUrl>'
|
|
157
|
-
}
|
|
158
|
-
},
|
|
159
|
-
usage: 'Usage: $0 registry <command>'
|
|
160
|
-
}
|
|
161
|
-
}
|
|
162
|
-
};
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = {
|
|
4
|
+
usage: 'Usage: $0 <command> [options]',
|
|
5
|
+
commands: {
|
|
6
|
+
clean: {
|
|
7
|
+
cmd: 'clean <dirPath>',
|
|
8
|
+
example: { cmd: '$0 clean components --yes' },
|
|
9
|
+
description: `Remove the node_modules directory from each component's subfolder`,
|
|
10
|
+
options: {
|
|
11
|
+
yes: {
|
|
12
|
+
boolean: true,
|
|
13
|
+
description: 'Skip all confirmation prompts',
|
|
14
|
+
default: false
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
usage: 'Usage: $0 clean <dirPath>'
|
|
18
|
+
},
|
|
19
|
+
dev: {
|
|
20
|
+
cmd: 'dev <dirPath> [port] [baseUrl]',
|
|
21
|
+
example: {
|
|
22
|
+
cmd: '$0 dev ../all-components 3001 127.0.0.1:3001 --fallbackRegistryUrl=http://anotherhost:anotherport/'
|
|
23
|
+
},
|
|
24
|
+
description: 'Run a local oc test registry in order to develop and test components',
|
|
25
|
+
options: {
|
|
26
|
+
fallbackRegistryUrl: {
|
|
27
|
+
description: 'Url to another registry which will be used by dev registry when component cannot be found in local registry'
|
|
28
|
+
},
|
|
29
|
+
hotReloading: {
|
|
30
|
+
boolean: true,
|
|
31
|
+
description: 'Enable hot reloading. Note: when hot reloading is set to true, each request to the component will make the registry to create a new instance for the javascript closures to be loaded, while when false the instance will be recycled between components executions',
|
|
32
|
+
default: true
|
|
33
|
+
},
|
|
34
|
+
verbose: {
|
|
35
|
+
boolean: true,
|
|
36
|
+
description: 'Verbosity',
|
|
37
|
+
default: false
|
|
38
|
+
},
|
|
39
|
+
watch: {
|
|
40
|
+
boolean: true,
|
|
41
|
+
description: 'Watch for file changes',
|
|
42
|
+
default: true
|
|
43
|
+
},
|
|
44
|
+
production: {
|
|
45
|
+
boolean: true,
|
|
46
|
+
description: 'Force packaging for production',
|
|
47
|
+
default: false
|
|
48
|
+
},
|
|
49
|
+
prefix: {
|
|
50
|
+
boolean: false,
|
|
51
|
+
description: 'Url prefix for registry server',
|
|
52
|
+
default: ''
|
|
53
|
+
},
|
|
54
|
+
components: {
|
|
55
|
+
array: true,
|
|
56
|
+
description: 'List of component names that you want to be packaged and exposed on dev registry'
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
usage: 'Usage: $0 dev <dirPath> [port] [baseUrl] [options]'
|
|
60
|
+
},
|
|
61
|
+
init: {
|
|
62
|
+
cmd: 'init <componentPath> [templateType]',
|
|
63
|
+
example: {
|
|
64
|
+
cmd: '$0 init test-component oc-template-es6'
|
|
65
|
+
},
|
|
66
|
+
description: 'Create a new empty component of a specific template type in the current folder or in directory indicated by (relative) componentPath [templateType default: oc-template-es6]',
|
|
67
|
+
usage: 'Usage: $0 init <componentPath> [templateType]'
|
|
68
|
+
},
|
|
69
|
+
mock: {
|
|
70
|
+
cmd: 'mock <targetType> <targetName> <targetValue>',
|
|
71
|
+
example: {
|
|
72
|
+
cmd: '$0 mock plugin hash "always-returned-value"',
|
|
73
|
+
description: 'Create static mock for a "hash" plugin which always returns "always-returned-value" value'
|
|
74
|
+
},
|
|
75
|
+
description: 'Allows to mock configuration in order to facilitate local development',
|
|
76
|
+
usage: 'Usage: $0 mock <targetType> <targetName> <targetValue>'
|
|
77
|
+
},
|
|
78
|
+
preview: {
|
|
79
|
+
cmd: 'preview <componentHref>',
|
|
80
|
+
example: {
|
|
81
|
+
cmd: '$0 preview "http://localhost:3000/my-new-component/1.0.0/?param1=hello&name=Arthur"'
|
|
82
|
+
},
|
|
83
|
+
description: 'Run a test page consuming a component',
|
|
84
|
+
usage: 'Usage: $0 preview <componentHref>'
|
|
85
|
+
},
|
|
86
|
+
package: {
|
|
87
|
+
cmd: 'package <componentPath>',
|
|
88
|
+
example: {
|
|
89
|
+
cmd: '$0 package my-new-component/'
|
|
90
|
+
},
|
|
91
|
+
options: {
|
|
92
|
+
compress: {
|
|
93
|
+
boolean: true,
|
|
94
|
+
description: 'Create zipped file',
|
|
95
|
+
default: false
|
|
96
|
+
},
|
|
97
|
+
useComponentDependencies: {
|
|
98
|
+
boolean: true,
|
|
99
|
+
description: 'Reuse already installed dependencies to save packaging time and network bandwidth',
|
|
100
|
+
default: false
|
|
101
|
+
}
|
|
102
|
+
},
|
|
103
|
+
description: 'Create the packaged component ready to be published',
|
|
104
|
+
usage: 'Usage: $0 package <componentPath>'
|
|
105
|
+
},
|
|
106
|
+
publish: {
|
|
107
|
+
cmd: 'publish <componentPath>',
|
|
108
|
+
example: {
|
|
109
|
+
cmd: '$0 publish my-new-component/'
|
|
110
|
+
},
|
|
111
|
+
options: {
|
|
112
|
+
password: {
|
|
113
|
+
description: 'password used to authenticate when publishing to registry'
|
|
114
|
+
},
|
|
115
|
+
username: {
|
|
116
|
+
description: 'username used to authenticate when publishing to registry'
|
|
117
|
+
},
|
|
118
|
+
skipPackage: {
|
|
119
|
+
boolean: true,
|
|
120
|
+
description: 'Skip packaging step',
|
|
121
|
+
default: false
|
|
122
|
+
},
|
|
123
|
+
registries: {
|
|
124
|
+
array: true,
|
|
125
|
+
description: 'List of registries to publish to. This setting will take precedence over oc.json file'
|
|
126
|
+
}
|
|
127
|
+
},
|
|
128
|
+
description: 'Publish a component',
|
|
129
|
+
usage: 'Usage: $0 publish <componentPath>'
|
|
130
|
+
},
|
|
131
|
+
registry: {
|
|
132
|
+
cmd: 'registry <command>',
|
|
133
|
+
description: 'Manage oc registries in the current project',
|
|
134
|
+
commands: {
|
|
135
|
+
add: {
|
|
136
|
+
cmd: 'add <registryUrl>',
|
|
137
|
+
example: {
|
|
138
|
+
cmd: '$0 registry add http://my-registry.in.my.domain/'
|
|
139
|
+
},
|
|
140
|
+
description: 'Add oc registries to the current project',
|
|
141
|
+
usage: 'Usage: $0 registry add <registryUrl>'
|
|
142
|
+
},
|
|
143
|
+
ls: {
|
|
144
|
+
example: {
|
|
145
|
+
cmd: '$0 registry ls'
|
|
146
|
+
},
|
|
147
|
+
description: 'Show oc registries added to the current project',
|
|
148
|
+
usage: 'Usage: $0 registry ls'
|
|
149
|
+
},
|
|
150
|
+
remove: {
|
|
151
|
+
cmd: 'remove <registryUrl>',
|
|
152
|
+
example: {
|
|
153
|
+
cmd: '$0 registry remove http://my-registry.in.my.domain/'
|
|
154
|
+
},
|
|
155
|
+
description: 'Remove oc registries from the current project',
|
|
156
|
+
usage: 'Usage: $0 registry remove <registryUrl>'
|
|
157
|
+
}
|
|
158
|
+
},
|
|
159
|
+
usage: 'Usage: $0 registry <command>'
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
};
|