tsdocker/ts/npmdocker.config.ts

22 lines
488 B
TypeScript
Raw Normal View History

2016-07-18 22:37:13 +00:00
import * as plugins from "./npmdocker.plugins";
import * as paths from "./npmdocker.paths";
2016-07-18 22:59:57 +00:00
export interface IConfig {
baseImage:string;
command:string;
2016-07-19 17:21:06 +00:00
exitCode?:number
2016-07-18 22:59:57 +00:00
}
let config:IConfig = plugins.npmextra.dataFor({
2016-07-18 22:37:13 +00:00
toolName:"npmdocker",
2016-07-19 17:21:06 +00:00
defaultSettings: {
baseImage:"hosttoday/ht-docker-node:npmts",
command:"npm test"
}
2016-07-18 22:37:13 +00:00
});
export let run = () => {
let done = plugins.q.defer();
done.resolve(config);
return done.promise;
}