@eclipse-che/che-devworkspace-generator 0.0.1-4e80d1b → 0.0.1-4f0e375

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 CHANGED
@@ -1,28 +1,50 @@
1
1
  ## DevWorkspace Generator
2
- The library is used by Devfile registry component to generate the DevWorkspace components and DevWorkspace templates.
2
+ The library is used by Devfile registry component to generate the DevWorkspace components and DevWorkspace templates. It requires editor definitions from the
3
+ [che-plugin-registry](https://github.com/eclipse-che/che-plugin-registry/).
3
4
 
4
5
  ## How to use the library
5
- The library could be used as a standalone library.
6
+ The library can be used as a standalone library.
6
7
 
7
8
  ```
8
9
  USAGE
9
10
  $ node lib/entrypoint.js [OPTIONS]
10
11
 
11
12
  OPTIONS
12
- --devfile-path path to the devfile.yaml file
13
- --devfile-url URL to the git repository that contains devfile.yaml
14
- --plugin-registry-url URL to the plugin registry that contains an editor's definition
15
- --editor-entry editor's ID
16
- --editor-path: path to the editor's devfile.yaml file
17
- --output-file path to the file where the generated content will be stored
18
- --project. describes project entry
13
+ --devfile-url: URL to the git repository that contains devfile.yaml
14
+ or
15
+ --devfile-path: path to the devfile.yaml file
19
16
 
20
- EXAMPLE
17
+ --plugin-registry-url: URL to the plugin registry that contains editor definitions (devfile.yaml)
18
+ --editor-entry: editor ID, found on the <plugin-registry-url>, to resolve the devfile.yaml
19
+ or
20
+ --editor-path: local file path of the editor devfile.yaml
21
+
22
+ --output-file: local file path for the generated devworkspace yaml
23
+
24
+ --project.<project-name> local file path for the sample project zip (for airgapped/offline registry builds)
25
+
26
+ EXAMPLES
27
+
28
+ # online example, using editor definition from https://che-plugin-registry-main.surge.sh/
29
+
30
+ $ node lib/entrypoint.js \
31
+ --devfile-url:https://github.com/che-samples/java-spring-petclinic/tree/main \
32
+ --plugin-registry-url:https://che-plugin-registry-main.surge.sh/v3/ \
33
+ --editor-entry:che-incubator/che-code/latest \
34
+ --output-file:/tmp/devworkspace-che-code-latest.yaml`
35
+
36
+ # offline example with devfile.yaml files and zipped project available locally
37
+
38
+ $ node lib/entrypoint.js \
39
+ --devfile-path:/remote-source/python-hello-world/app/devfile.yaml \
40
+ --editor-path:/build/plugins/che-incubator/che-code/latest/devfile.yaml \
41
+ --output-file:./devfiles/python__python-hello-world/devworkspace-che-code-latest.yaml \
42
+ --project.python-hello-world='{{_INTERNAL_URL_}}/resources/v2/python-hello-world.zip'
21
43
 
22
- $ node lib/entrypoint.js --devfile-url:https://github.com/che-samples/java-spring-petclinic/tree/main --editor-entry:che-incubator/che-code/insiders --plugin-registry-url:https://che-plugin-registry-main.surge.sh/v3/ --output-file:/tmp/all-in-one.yaml`
23
44
  ```
24
45
 
25
- The file `/tmp/all-in-one.yaml` contains a DevWorkspace based on the repository devfile and a Che-Code DevWorkspaceTemplate.
26
- If DevWorkspace engine is available on the cluster, the following command will create a DevWorkspace:
46
+ The output file `devworkspace-che-code-latest.yaml` contains a DevWorkspace based on the repository devfile and a Che-Code DevWorkspaceTemplate.
47
+
48
+ If the DevWorkspace engine is installed on the cluster, the following command will create a DevWorkspace:
27
49
 
28
- `$ kubectl apply -f /tmp/all-in-one.yaml`
50
+ `$ kubectl apply -f /tmp/devworkspace-che-code-latest.yaml`
@@ -80,7 +80,7 @@ var url_fetcher_1 = require("../fetch/url-fetcher");
80
80
  var PluginRegistryResolver = /** @class */ (function () {
81
81
  function PluginRegistryResolver() {
82
82
  }
83
- // FQN id (like eclipse/che-theia/next)
83
+ // FQN id (like che-incubator/che-code/next)
84
84
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
85
85
  PluginRegistryResolver.prototype.loadDevfilePlugin = function (devfileId) {
86
86
  return __awaiter(this, void 0, void 0, function () {
@@ -1 +1 @@
1
- {"version":3,"file":"plugin-registry-resolver.js","sourceRoot":"","sources":["../../src/plugin-registry/plugin-registry-resolver.ts"],"names":[],"mappings":";AAAA;;;;;;;;yEAQyE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEzE,8CAAkC;AAElC,uCAAsD;AAEtD,oDAAkD;AAElD;;GAEG;AAEH;IAAA;IAeA,CAAC;IAPC,uCAAuC;IACvC,8DAA8D;IACxD,kDAAiB,GAAvB,UAAwB,SAAiB;;;;;;wBACjC,UAAU,GAAM,IAAI,CAAC,iBAAiB,iBAAY,SAAS,kBAAe,CAAC;wBAC1D,qBAAM,IAAI,CAAC,UAAU,CAAC,SAAS,CAAC,UAAU,CAAC,EAAA;;wBAA5D,cAAc,GAAG,SAA2C;wBAClE,sBAAO,MAAM,CAAC,IAAI,CAAC,cAAc,CAAC,EAAC;;;;KACpC;IAXD;QAFC,IAAA,kBAAM,EAAC,QAAQ,CAAC;QAChB,IAAA,iBAAK,EAAC,qBAAqB,CAAC;6DACK;IAGlC;QADC,IAAA,kBAAM,EAAC,wBAAU,CAAC;sDACY;IANpB,sBAAsB;QADlC,IAAA,sBAAU,GAAE;OACA,sBAAsB,CAelC;IAAD,6BAAC;CAAA,AAfD,IAeC;AAfY,wDAAsB"}
1
+ {"version":3,"file":"plugin-registry-resolver.js","sourceRoot":"","sources":["../../src/plugin-registry/plugin-registry-resolver.ts"],"names":[],"mappings":";AAAA;;;;;;;;yEAQyE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEzE,8CAAkC;AAElC,uCAAsD;AAEtD,oDAAkD;AAElD;;GAEG;AAEH;IAAA;IAeA,CAAC;IAPC,4CAA4C;IAC5C,8DAA8D;IACxD,kDAAiB,GAAvB,UAAwB,SAAiB;;;;;;wBACjC,UAAU,GAAM,IAAI,CAAC,iBAAiB,iBAAY,SAAS,kBAAe,CAAC;wBAC1D,qBAAM,IAAI,CAAC,UAAU,CAAC,SAAS,CAAC,UAAU,CAAC,EAAA;;wBAA5D,cAAc,GAAG,SAA2C;wBAClE,sBAAO,MAAM,CAAC,IAAI,CAAC,cAAc,CAAC,EAAC;;;;KACpC;IAXD;QAFC,IAAA,kBAAM,EAAC,QAAQ,CAAC;QAChB,IAAA,iBAAK,EAAC,qBAAqB,CAAC;6DACK;IAGlC;QADC,IAAA,kBAAM,EAAC,wBAAU,CAAC;sDACY;IANpB,sBAAsB;QADlC,IAAA,sBAAU,GAAE;OACA,sBAAsB,CAelC;IAAD,6BAAC;CAAA,AAfD,IAeC;AAfY,wDAAsB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eclipse-che/che-devworkspace-generator",
3
- "version": "0.0.1-4e80d1b",
3
+ "version": "0.0.1-4f0e375",
4
4
  "private": false,
5
5
  "description": "Generates DevWorkspaces by transforming existing devfiles",
6
6
  "main": "lib/entrypoint.js",
@@ -26,7 +26,7 @@ export class PluginRegistryResolver {
26
26
  @inject(UrlFetcher)
27
27
  private urlFetcher: UrlFetcher;
28
28
 
29
- // FQN id (like eclipse/che-theia/next)
29
+ // FQN id (like che-incubator/che-code/next)
30
30
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
31
31
  async loadDevfilePlugin(devfileId: string): Promise<any> {
32
32
  const devfileUrl = `${this.pluginRegistryUrl}/plugins/${devfileId}/devfile.yaml`;