Compare commits

...

4 Commits

Author SHA1 Message Date
7d18e92ff1 2.0.3 2016-02-02 15:20:05 +01:00
634763c03f update beautylog 2016-02-02 15:19:48 +01:00
3352165436 2.0.2 2016-02-01 02:07:50 +01:00
6c57a4703f fix timing error caused by not returning stream 2016-02-01 02:07:41 +01:00
3 changed files with 9 additions and 8 deletions

View File

@ -81,11 +81,12 @@ var NpmtsDefault;
}); });
plugins.gulp.task("defaultTestTS", function () { plugins.gulp.task("defaultTestTS", function () {
plugins.beautylog.log("now compiling" + " ts/test.ts".blue); plugins.beautylog.log("now compiling" + " ts/test.ts".blue);
plugins.gulp.src(paths.testTS) var stream = plugins.gulp.src(paths.testTS)
.pipe(plugins.g.typescript({ .pipe(plugins.g.typescript({
out: "test.js" out: "test.js"
})) }))
.pipe(plugins.gulp.dest(paths.testDir)); .pipe(plugins.gulp.dest(paths.testDir));
return stream;
}); });
plugins.gulp.task("defaultCleanup", function (cb) { plugins.gulp.task("defaultCleanup", function (cb) {
plugins.beautylog.success("TypeScript for this module compiled successfully."); plugins.beautylog.success("TypeScript for this module compiled successfully.");
@ -108,7 +109,6 @@ var NpmtsTests;
plugins.beautylog.info("Now running mocha tests"); plugins.beautylog.info("Now running mocha tests");
var mocha = new plugins.mocha(); // Instantiate a Mocha instance. var mocha = new plugins.mocha(); // Instantiate a Mocha instance.
mocha.addFile(plugins.path.join(paths.testDir, "test.js")); mocha.addFile(plugins.path.join(paths.testDir, "test.js"));
// Run the tests.
mocha.run(function (failures) { mocha.run(function (failures) {
process.on('exit', function () { process.on('exit', function () {
process.exit(failures); process.exit(failures);

View File

@ -1,6 +1,6 @@
{ {
"name": "npmts", "name": "npmts",
"version": "2.0.1", "version": "2.0.3",
"description": "write npm modules with TypeScript", "description": "write npm modules with TypeScript",
"main": "index.js", "main": "index.js",
"typings": "./index.d.ts", "typings": "./index.d.ts",
@ -27,17 +27,17 @@
}, },
"homepage": "https://github.com/pushrocks/npmts#readme", "homepage": "https://github.com/pushrocks/npmts#readme",
"dependencies": { "dependencies": {
"beautylog": "2.0.2", "beautylog": "2.0.6",
"fs-extra": "^0.26.5", "fs-extra": "^0.26.5",
"gulp": "3.9.0", "gulp": "3.9.0",
"gulp-insert": "0.5.0", "gulp-insert": "0.5.0",
"gulp-sequence": "^0.4.4", "gulp-sequence": "^0.4.4",
"gulp-typescript": "2.10.0", "gulp-typescript": "2.10.0",
"gulp-typings": "0.0.0", "gulp-typings": "0.0.0",
"merge2": "0.3.6", "merge2": "1.0.0",
"mocha": "^2.4.5", "mocha": "^2.4.5",
"q": "^1.4.1", "q": "^1.4.1",
"smartcli": "0.0.11", "smartcli": "0.0.11",
"typings": "^0.6.3" "typings": "^0.6.5"
} }
} }

View File

@ -23,11 +23,12 @@ module NpmtsDefault {
plugins.gulp.task("defaultTestTS", function(){ plugins.gulp.task("defaultTestTS", function(){
plugins.beautylog.log("now compiling" + " ts/test.ts".blue); plugins.beautylog.log("now compiling" + " ts/test.ts".blue);
plugins.gulp.src(paths.testTS) var stream = plugins.gulp.src(paths.testTS)
.pipe(plugins.g.typescript({ .pipe(plugins.g.typescript({
out: "test.js" out: "test.js"
})) }))
.pipe(plugins.gulp.dest(paths.testDir)) .pipe(plugins.gulp.dest(paths.testDir));
return stream;
}); });
plugins.gulp.task("defaultCleanup",function(cb){ plugins.gulp.task("defaultCleanup",function(cb){