readded test.ts to default build process
This commit is contained in:
parent
1ada5dd5a9
commit
27f79b4425
3
index.js
3
index.js
@ -76,7 +76,7 @@ var NpmtsOptions;
|
||||
var done = plugins.q.defer();
|
||||
var config = configArg;
|
||||
if (typeof config.coveralls === "undefined") {
|
||||
config.coveralls = true;
|
||||
config.coveralls = false;
|
||||
}
|
||||
if (config.mode == "default") {
|
||||
config.typings = [
|
||||
@ -84,6 +84,7 @@ var NpmtsOptions;
|
||||
];
|
||||
config.ts = (_a = {},
|
||||
_a["./ts/index.ts"] = "./index.js",
|
||||
_a["./ts/test.ts"] = "./test/test.js",
|
||||
_a
|
||||
);
|
||||
config.test = ["./index.js"];
|
||||
|
@ -77,7 +77,7 @@
|
||||
</div><!-- /wrapper -->
|
||||
<div class='footer quiet pad2 space-top1 center small'>
|
||||
Code coverage
|
||||
generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Tue Feb 09 2016 17:25:54 GMT+0100 (CET)
|
||||
generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Tue Feb 09 2016 20:36:12 GMT+0100 (CET)
|
||||
</div>
|
||||
</div>
|
||||
<script src="../prettify.js"></script>
|
||||
|
@ -76,7 +76,7 @@ module.exports = testplugin;
|
||||
</div><!-- /wrapper -->
|
||||
<div class='footer quiet pad2 space-top1 center small'>
|
||||
Code coverage
|
||||
generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Tue Feb 09 2016 17:25:54 GMT+0100 (CET)
|
||||
generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Tue Feb 09 2016 20:36:12 GMT+0100 (CET)
|
||||
</div>
|
||||
</div>
|
||||
<script src="../prettify.js"></script>
|
||||
|
@ -77,7 +77,7 @@
|
||||
</div><!-- /wrapper -->
|
||||
<div class='footer quiet pad2 space-top1 center small'>
|
||||
Code coverage
|
||||
generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Tue Feb 09 2016 17:25:54 GMT+0100 (CET)
|
||||
generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Tue Feb 09 2016 20:36:12 GMT+0100 (CET)
|
||||
</div>
|
||||
</div>
|
||||
<script src="prettify.js"></script>
|
||||
|
2
test/assets/test/test.d.ts
vendored
Normal file
2
test/assets/test/test.d.ts
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
/// <reference path="ts/typings/main.d.ts" />
|
||||
declare var testplugin: any;
|
@ -1,3 +1,5 @@
|
||||
#!/usr/bin/env node
|
||||
|
||||
/// <reference path="./typings/main.d.ts" />
|
||||
console.log("**** starting test ****");
|
||||
var testplugin = require("../index.js");
|
||||
|
@ -11,7 +11,8 @@ module NpmtsOptions {
|
||||
"./ts/"
|
||||
];
|
||||
config.ts = {
|
||||
["./ts/index.ts"]: "./index.js"
|
||||
["./ts/index.ts"]: "./index.js",
|
||||
["./ts/test.ts"]: "./test/test.js"
|
||||
};
|
||||
config.test = ["./index.js"];
|
||||
done.resolve(config);
|
||||
|
Loading…
Reference in New Issue
Block a user