@devcontainer/generator
Advanced tools
Comparing version 2.0.0 to 2.0.1
@@ -17,2 +17,3 @@ declare type Base = "stretch" | "buster" | "disco" | "eoan"; | ||
private _xfce; | ||
private _debianBackports; | ||
private _docker; | ||
@@ -28,2 +29,3 @@ private _android; | ||
updateGit(): void; | ||
setDebianBackports(): void; | ||
setXfce(): void; | ||
@@ -30,0 +32,0 @@ setChrome(): void; |
@@ -16,3 +16,3 @@ "use strict"; | ||
this._readmeTemplates = {}; | ||
this._templateInputs = ['base', 'upgrade', 'android', 'git', 'amplify', 'chromium', 'gitUbuntu', 'node', 'cypress', 'dotnet', 'docker', 'dotnet3', 'xfce', 'noVNC', 'xpra', 'zsh', 'suffix']; | ||
this._templateInputs = ['base', 'upgrade', 'android', 'git', 'debianBackports', 'amplify', 'chromium', 'gitUbuntu', 'node', 'cypress', 'dotnet', 'docker', 'dotnet3', 'xfce', 'noVNC', 'xpra', 'zsh', 'suffix']; | ||
this._nodeVesion = null; | ||
@@ -25,2 +25,3 @@ this._gitVersion = ''; | ||
this._xfce = false; | ||
this._debianBackports = false; | ||
this._docker = false; | ||
@@ -35,2 +36,3 @@ this._android = false; | ||
; | ||
; | ||
async init() { | ||
@@ -52,2 +54,5 @@ const bufferDockerfiles = await Promise.all(this._templateInputs.map(async (fileName) => await this.loadTemplate(fileName, 'Dockerfile'))); | ||
} | ||
setDebianBackports() { | ||
this._debianBackports = true; | ||
} | ||
setXfce() { | ||
@@ -94,2 +99,5 @@ this._xfce = true; | ||
this._readme += readmeTemplates['base'].replace('{DISTRO}', this.base); | ||
if (this._debianBackports) { | ||
this._dockerfile += dockerTemplates['debianBackports'].replace('{DISTRO}', this.base).replace('{DISTRO}', this.base); | ||
} | ||
if (this._upgrade) { | ||
@@ -148,3 +156,3 @@ this._dockerfile += dockerTemplates['upgrade'].replace('{DEV_VERSION}', softwareVersions.upgraged); | ||
if (this._xpra) { | ||
this._dockerfile += dockerTemplates['xpra'].replace(/{XPRADISTRO}/g, this.base === "eoan" ? "disco" : this.base); | ||
this._dockerfile += dockerTemplates['xpra'].replace(/{XPRADISTRO}/g, this.base); | ||
this._readme += readmeTemplates['xpra']; | ||
@@ -151,0 +159,0 @@ let xpraStart = "xpra start --start=xterm"; |
{ | ||
"upgraged": "2019-10-03", | ||
"upgraged": "2019-10-11", | ||
"node": { | ||
"lts": "10.16.3", | ||
"current": "12.11.1" | ||
"current": "12.12.0" | ||
}, | ||
@@ -7,0 +7,0 @@ "amplify": "3.10.0", |
{ | ||
"name": "@devcontainer/generator", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"description": "generates custorm devcontainer Dockerfiles", | ||
@@ -23,3 +23,3 @@ "files": [ | ||
"license": "MIT", | ||
"gitHead": "e183004de8aae3cbd6db8b482cfd8dd2d66fffe3" | ||
"gitHead": "4b52245b7cd479e35725e08e71bbcdbe89a6c55f" | ||
} |
{ | ||
"upgraged": "2019-10-03", | ||
"upgraged": "2019-10-11", | ||
"node": { | ||
"lts": "10.16.3", | ||
"current": "12.11.1" | ||
"current": "12.12.0" | ||
}, | ||
@@ -7,0 +7,0 @@ "amplify": "3.10.0", |
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
Sorry, the diff of this file is not supported yet
34853
45
278