@devcontainer/generator
Advanced tools
Comparing version 1.6.0 to 1.6.1
@@ -20,2 +20,3 @@ declare type Base = "stretch" | "buster" | "disco" | "eoan"; | ||
private _zsh; | ||
private _chrome; | ||
constructor(base: Base); | ||
@@ -26,2 +27,3 @@ private init; | ||
setXfce(): void; | ||
setChrome(): void; | ||
setAmplify(): void; | ||
@@ -28,0 +30,0 @@ setRemoteDesktop(): void; |
@@ -16,3 +16,3 @@ "use strict"; | ||
this._readmeTemplates = {}; | ||
this._templateInputs = ['base', 'upgrade', 'git', 'amplify', 'gitUbuntu', 'node', 'cypress', 'dotnet', 'docker', 'dotnet3', 'xfce', 'remoteDesktop', 'zsh']; | ||
this._templateInputs = ['base', 'upgrade', 'git', 'amplify', 'chromium', 'gitUbuntu', 'node', 'cypress', 'dotnet', 'docker', 'dotnet3', 'xfce', 'remoteDesktop', 'zsh']; | ||
this._nodeVesion = null; | ||
@@ -28,2 +28,3 @@ this._gitVersion = ''; | ||
this._zsh = false; | ||
this._chrome = false; | ||
this.loadTemplate = async (filename, extension) => await fs_1.promises.readFile(`${__dirname}/../../templates/${filename}.${extension}`).catch(e => { console.error({ e }); return ""; }); | ||
@@ -51,2 +52,5 @@ } | ||
} | ||
setChrome() { | ||
this._chrome = true; | ||
} | ||
setAmplify() { | ||
@@ -138,2 +142,6 @@ this._amplify = true; | ||
} | ||
if (this._chrome) { | ||
this._dockerfile += dockerTemplates['chromium']; | ||
this._readme += readmeTemplates['chromium']; | ||
} | ||
if (this._zsh) { | ||
@@ -140,0 +148,0 @@ this._dockerfile += dockerTemplates['zsh']; |
{ | ||
"name": "@devcontainer/generator", | ||
"version": "1.6.0", | ||
"version": "1.6.1", | ||
"description": "generates custorm devcontainer Dockerfiles", | ||
@@ -23,3 +23,3 @@ "files": [ | ||
"license": "MIT", | ||
"gitHead": "00d208f588202b22d7935ca66dd91558eddafab0" | ||
"gitHead": "a1c563c73c59ccb17037503d13a175475a54cadb" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
29173
37
235