2016-02-19 23:53:23 +00:00
|
|
|
/// <reference path="./typings/main.d.ts" />
|
|
|
|
import plugins = require("./npmts.plugins");
|
|
|
|
export var run = function(configArg){
|
2016-02-22 21:22:39 +00:00
|
|
|
var done = plugins.Q.defer();
|
2016-02-19 23:53:23 +00:00
|
|
|
var config = configArg;
|
|
|
|
if (typeof config.coveralls === "undefined"){
|
|
|
|
config.coveralls = false;
|
2016-01-30 04:29:54 +00:00
|
|
|
}
|
2016-02-19 23:53:23 +00:00
|
|
|
if (config.mode == "default"){
|
|
|
|
config.typings = [
|
2016-03-12 09:21:16 +00:00
|
|
|
"./ts/typings.json"
|
2016-02-19 23:53:23 +00:00
|
|
|
];
|
|
|
|
config.ts = {
|
|
|
|
["./ts/**/*.ts"]: "./dist/",
|
|
|
|
["./test/test.ts"]: "./test/"
|
|
|
|
};
|
|
|
|
config.test = ["./index.js"];
|
|
|
|
done.resolve(config);
|
|
|
|
} else {
|
|
|
|
done.resolve(config);
|
|
|
|
}
|
|
|
|
return done.promise;
|
|
|
|
};
|