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-28 16:01:02 +00:00
|
|
|
dockerSock:boolean;
|
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",
|
2016-07-28 16:01:02 +00:00
|
|
|
command:"npm test",
|
|
|
|
dockerSock: false
|
2016-07-19 17:21:06 +00:00
|
|
|
}
|
2016-07-18 22:37:13 +00:00
|
|
|
});
|
|
|
|
|
|
|
|
export let run = () => {
|
|
|
|
let done = plugins.q.defer();
|
|
|
|
done.resolve(config);
|
|
|
|
return done.promise;
|
|
|
|
}
|