From 677f730b34ece27d5fe3a2e46e1600fa309523e8 Mon Sep 17 00:00:00 2001 From: Philipp Kunz Date: Thu, 2 Jun 2016 13:39:03 +0200 Subject: [PATCH] add new env file --- ts/npmci.build.ts | 8 ++++++++ ts/npmci.env.ts | 3 +++ ts/npmci.prepare.ts | 3 ++- 3 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 ts/npmci.build.ts create mode 100644 ts/npmci.env.ts diff --git a/ts/npmci.build.ts b/ts/npmci.build.ts new file mode 100644 index 0000000..ccd7237 --- /dev/null +++ b/ts/npmci.build.ts @@ -0,0 +1,8 @@ +import "typings-global"; +import * as plugins from "./npmci.plugins"; +import {bash} from "./npmci.bash"; + +export let build = function(commandArg){ + let done = plugins.q.defer(); + return done.promise; +} \ No newline at end of file diff --git a/ts/npmci.env.ts b/ts/npmci.env.ts new file mode 100644 index 0000000..50b5015 --- /dev/null +++ b/ts/npmci.env.ts @@ -0,0 +1,3 @@ +export let env = function(){ + +}; \ No newline at end of file diff --git a/ts/npmci.prepare.ts b/ts/npmci.prepare.ts index fb10e41..aeea4c5 100644 --- a/ts/npmci.prepare.ts +++ b/ts/npmci.prepare.ts @@ -1,5 +1,6 @@ import "typings-global"; import * as plugins from "./npmci.plugins"; +import {bash} from "./npmci.bash"; let docker = function(){ let done = plugins.q.defer(); @@ -7,7 +8,7 @@ let docker = function(){ let dockerRegexResultArray = dockerRegex.exec("process.env.NPMCI_LOGIN_DOCKER"); let username = dockerRegexResultArray[1]; let password = dockerRegexResultArray[2]; - plugins.shelljs.exec("docker login -u " + username + " -p " + password); + bash("docker login -u " + username + " -p " + password); done.resolve(); return done.promise; }