typescript-services-api
Advanced tools
Comparing version 1.1.0-1.3 to 1.3.0
'use strict'; | ||
var fs = require('fs'); | ||
var gulp = require('gulp'); | ||
@@ -11,7 +10,7 @@ var del = require('del'); | ||
src: 'index.js', | ||
test: 'test/**/*_test.ts', | ||
test: 'index_test.ts', | ||
testDest: '.tmp/', | ||
packageJson: 'package.json', | ||
testPackageDir: 'node_modules/typescript-services-api', | ||
typescriptFiles: 'test/**/*.ts' | ||
typescriptFiles: ['index_test.ts', 'index.d.ts'] | ||
}; | ||
@@ -26,3 +25,3 @@ | ||
var mochaOptions = { | ||
reporter: 'spec' | ||
reporter: 'nyan' | ||
}; | ||
@@ -68,7 +67,6 @@ | ||
function test(watching) { | ||
return gulp.src(paths.typescriptFiles) | ||
return gulp.src(paths.test) | ||
.pipe(plugins.plumber({errorHandler: function() { | ||
if (!watching) { process.exit(1); } | ||
}})) | ||
.pipe(plugins.changed(paths.testDest, {extension: '.js', hasChanged: hasChangedForTest})) | ||
.pipe(plugins.sourcemaps.init()) | ||
@@ -81,25 +79,1 @@ .pipe(plugins.typescript(tsProject)).js | ||
} | ||
function hasChangedForTest(stream, callback, sourceFile, destPath) { | ||
if (!fs.existsSync(destPath)) { | ||
stream.push(sourceFile); | ||
return callback(); | ||
} | ||
var destStat = fs.statSync(destPath); | ||
if (sourceFile.stat.mtime > destStat.mtime) { | ||
stream.push(sourceFile); | ||
} else if (/_test.ts$/.test(sourceFile.path)) { | ||
var testTargetPath = sourceFile.path | ||
.replace(/_test.ts$/, '.ts') | ||
.replace(process.cwd() + '/test', process.cwd()); | ||
var testTargetStat = fs.statSync(testTargetPath); | ||
if (testTargetStat.mtime > destStat.mtime) { | ||
stream.push(sourceFile); | ||
} | ||
} | ||
callback(); | ||
} |
{ | ||
"name": "typescript-services-api", | ||
"description": "A TypeScript services as commonJS module.", | ||
"version": "1.1.0-1.3", | ||
"version": "1.3.0", | ||
"homepage": "https://github.com/shiwano/typescript-services-api", | ||
@@ -34,3 +34,2 @@ "author": { | ||
"gulp": "^3.8.7", | ||
"gulp-changed": "^1.0.0", | ||
"gulp-espower": "^0.9.0", | ||
@@ -46,3 +45,2 @@ "gulp-jshint": "^1.8.4", | ||
"power-assert": "^0.9.0", | ||
"sinon": "^1.10.3", | ||
"source-map-support": "^0.2.7" | ||
@@ -54,3 +52,3 @@ }, | ||
"dependencies": { | ||
"typescript": "1.1.0-1" | ||
"typescript": "1.3.0" | ||
}, | ||
@@ -57,0 +55,0 @@ "typescript": { |
@@ -10,4 +10,4 @@ # typescript-services-api [](http://travis-ci.org/shiwano/typescript-services-api) | ||
## Compiler Version | ||
1.1.0-1 | ||
## TypeScript Version | ||
1.3.0 | ||
@@ -18,2 +18,3 @@ ## Contributing | ||
## Release History | ||
* 2014-11-14 v1.3.0 Update to TypeScript v1.3.0. | ||
* 2014-11-03 v1.1.0-1.3 Fix index.d.ts. | ||
@@ -20,0 +21,0 @@ * 2014-11-03 v1.1.0-1.2 Divide index.d.ts. |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
325948
13
7529
0
25
2
+ Addedtypescript@1.3.0(transitive)
- Removedtypescript@1.1.0-1(transitive)
Updatedtypescript@1.3.0