@eclipse-che/che-devworkspace-generator
Advanced tools
Comparing version 7.74.1-next-8021ddc to 7.75.0-next-1605f7d
@@ -145,2 +145,8 @@ "use strict"; | ||
}; | ||
// if the devfile has a starter project, we use it for the devWorkspace | ||
if (devfileCopy.starterProjects && devfileCopy.starterProjects.length > 0) { | ||
devWorkspace.spec.template.attributes = { | ||
'controller.devfile.io/use-starter-project': devfileCopy.starterProjects[0].name | ||
}; | ||
} | ||
devWorkspaceTemplates = [editorDevWorkspaceTemplate]; | ||
@@ -147,0 +153,0 @@ context = { |
{ | ||
"name": "@eclipse-che/che-devworkspace-generator", | ||
"version": "7.74.1-next-8021ddc", | ||
"version": "7.75.0-next-1605f7d", | ||
"private": false, | ||
@@ -5,0 +5,0 @@ "description": "Generates DevWorkspaces by transforming existing devfiles", |
@@ -96,3 +96,3 @@ /********************************************************************** | ||
const devfileMetadata = this.createDevWorkspaceMetadata(devfile, true); | ||
const devfileCopy = Object.assign({}, devfile); | ||
const devfileCopy: V221Devfile = Object.assign({}, devfile); | ||
delete devfileCopy.schemaVersion; | ||
@@ -118,2 +118,9 @@ delete devfileCopy.metadata; | ||
// if the devfile has a starter project, we use it for the devWorkspace | ||
if (devfileCopy.starterProjects && devfileCopy.starterProjects.length > 0) { | ||
devWorkspace.spec.template.attributes = { | ||
'controller.devfile.io/use-starter-project': devfileCopy.starterProjects[0].name, | ||
}; | ||
} | ||
// for now the list of devWorkspace templates is only the editor template | ||
@@ -120,0 +127,0 @@ const devWorkspaceTemplates = [editorDevWorkspaceTemplate]; |
Sorry, the diff of this file is not supported yet
175187
3079