2016-01-30 04:29:54 +00:00
|
|
|
/// <reference path="./index.ts" />
|
|
|
|
module NpmtsOptions {
|
2016-02-09 04:39:31 +00:00
|
|
|
export var run = function(configArg){
|
2016-01-30 04:29:54 +00:00
|
|
|
var done = plugins.q.defer();
|
2016-02-09 04:39:31 +00:00
|
|
|
var config = configArg;
|
2016-02-09 04:46:55 +00:00
|
|
|
if (typeof config.coveralls === "undefined"){
|
2016-02-09 16:42:31 +00:00
|
|
|
config.coveralls = false;
|
2016-02-09 04:46:55 +00:00
|
|
|
}
|
2016-02-09 04:39:31 +00:00
|
|
|
if (config.mode == "default"){
|
|
|
|
config.typings = [
|
|
|
|
"./ts/"
|
|
|
|
];
|
|
|
|
config.ts = {
|
2016-02-09 19:36:31 +00:00
|
|
|
["./ts/index.ts"]: "./index.js",
|
|
|
|
["./ts/test.ts"]: "./test/test.js"
|
2016-02-04 19:41:34 +00:00
|
|
|
};
|
2016-02-09 04:39:31 +00:00
|
|
|
config.test = ["./index.js"];
|
|
|
|
done.resolve(config);
|
2016-02-04 19:41:34 +00:00
|
|
|
} else {
|
2016-02-09 04:39:31 +00:00
|
|
|
done.resolve(config);
|
|
|
|
}
|
2016-01-30 04:29:54 +00:00
|
|
|
return done.promise;
|
|
|
|
}
|
|
|
|
}
|