24 lines
686 B
TypeScript
24 lines
686 B
TypeScript
/// <reference path="./index.ts" />
|
|
module NpmtsOptions {
|
|
export var run = function(configArg){
|
|
var done = plugins.q.defer();
|
|
var config = configArg;
|
|
if (typeof config.coveralls === "undefined"){
|
|
config.coveralls = false;
|
|
}
|
|
if (config.mode == "default"){
|
|
config.typings = [
|
|
"./ts/"
|
|
];
|
|
config.ts = {
|
|
["./ts/**/*.ts"]: "./dist/",
|
|
["./test/test.ts"]: "./test/"
|
|
};
|
|
config.test = ["./index.js"];
|
|
done.resolve(config);
|
|
} else {
|
|
done.resolve(config);
|
|
}
|
|
return done.promise;
|
|
}
|
|
} |