now keeping track of what has been done during a build

This commit is contained in:
2016-06-05 23:24:11 +02:00
parent 334713a344
commit 198b35b0c6
7 changed files with 47 additions and 2 deletions

View File

@ -1,5 +1,6 @@
import "typings-global";
import * as plugins from "./npmci.plugins";
import * as paths from "./npmci.paths";
import {GitRepo} from "smartstring";
import {Dockerfile} from "./npmci.build.docker"
@ -7,7 +8,19 @@ export let repo:GitRepo = new GitRepo(process.env.CI_BUILD_REPO);
export let buildStage:string = process.env.CI_BUILD_STAGE;
// handling config between commands
export let dockerRegistry; // will be set by npmci.prepare
export let dockerFilesBuilt:Dockerfile[] = [];
export let dockerFiles:Dockerfile[] = [];
export let config;
export let configLoad = () => {
config = plugins.smartfile.local.toObjectSync(paths.NpmciPackageConfig,"json");
config.dockerRegistry ? dockerRegistry = config.dockerRegistry : void(0);
config.dockerFilesBuilt ? dockerFilesBuilt = config.dockerFilesBuilt : void(0);
}
export let configStore = () => {
}

7
ts/npmci.paths.ts Normal file
View File

@ -0,0 +1,7 @@
import "typings-global";
import * as plugins from "./npmci.plugins";
export let cwd = process.cwd();
export let NpmciPackageRoot = plugins.path.join(__dirname,"../");#
export let NpmciPackageConfig = plugins.path.join(NpmciPackageRoot,"./config.json")