created test

This commit is contained in:
Phil Kunz 2015-10-21 17:20:41 +02:00
parent ae5acd28d3
commit 752553161e
10 changed files with 32 additions and 14 deletions

View File

@ -15,5 +15,6 @@ deploy:
tags: true
repo: pushrocks/smarturl
notifications:
email: false
slack:
secure: f5Uss0z9RPl/QcA/DroB8loyE93aOYI6bqCkrsiUscmZtlv/TVQtT4dxqGA6uvcG6iTQDBi3Ul88dQxWkRm4IqbhY35/iMaV2dHW4FVYMAh8GQMbsfL2sALCcufxD9blw47awv3iFcwhV1EeyesscjgL0JIjduk96v/7G/6QIO2838M1lzlgtj+kRUkim8qkaEs1je3gRrhMUIjLuAdscMXyUKYFMjWo9ACSjVUl30R/ZNemb18itIja6i92GotreBgcfEMczvy58ovDC7xdJUsY8LjMI01DwY+WPRnI0tAhsuI8moBwwcdM4e3bAjKjucQRjO33O5bMWRZ6QCiYd0DnCEFyCPQLJ4GSy/tkD00n8ijLHAOSV3AH1zNbdK1EAdSPQXDvlI36KJn/2hyQLoitGHVUPr76ujJWP82ypO2tgIp3XQU0dJVCxDuHnwJO2+hjdI+gCPqxNTpjeujHx3UdkTGNRjuuf9dlZ/D08fApjYxy2fxItTqo3QjP/nrqvBXUOPP8yPHpjIT4H2t5Pr4SJjBGI6X4qhKyFj6s9rA/Xu1rL+45zu1C3uC3z+u3T9UwrbzJ/cZM6r6UQvQmUvIfBNaMlg4I/diQCDIPL+Rhop2nylY3IcHmJnk2itn7kOqj1tohCpFEml5pRuSZy4udWywkdtyBAsHWFLF7oiQ=

View File

@ -1,11 +1,6 @@
/// <reference path="typings/tsd.d.ts" />
var path, through;
through = require("through2");
path = require("path");
module.exports = function (jadeTemplate, mojo) {
if (mojo === void 0) { mojo = undefined; }
return through.obj(function (file, enc, cb) {
//run callback function to signal end of plugin process.
return cb(null, file);
});
};
var path = require("path");
var openURL = require("open");
var smarturl = {};
smarturl.open = openURL;
module.exports = smarturl;

3
test.js Normal file
View File

@ -0,0 +1,3 @@
/// <reference path="typings/tsd.d.ts" />
var smarturl = require("./index.js");
smarturl.open("https://mojo.io");

View File

@ -11,6 +11,15 @@ gulp.task('compileTS', function() {
return stream;
});
gulp.task('default',['compileTS'], function() {
gulp.task('compileTestTS', function() {
var stream = gulp.src('../test.ts')
.pipe(gulpTypescript({
out: "test.js"
}))
.pipe(gulp.dest("../../"));
return stream;
});
gulp.task('default',['compileTS','compileTestTS'], function() {
console.log('Typescript compiled');
});

View File

@ -1,6 +1,7 @@
/// <reference path="typings/tsd.d.ts" />
var path = require("path");
var open = require("open");
var openURL = require("open");
var smarturl = {};
smarturl.open = openURL;
module.exports = smarturl;
//# sourceMappingURL=index.js.map

View File

@ -1 +1 @@
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,yCAAyC;AACzC,IAAI,IAAI,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;AAC3B,IAAI,IAAI,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;AAE3B,IAAI,QAAQ,GAAO,EAAE,CAAC;AAItB,MAAM,CAAC,OAAO,GAAG,QAAQ,CAAC"}
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,yCAAyC;AACzC,IAAI,IAAI,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;AAC3B,IAAI,OAAO,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;AAE9B,IAAI,QAAQ,GAAO,EAAE,CAAC;AACtB,QAAQ,CAAC,IAAI,GAAG,OAAO,CAAC;AAIxB,MAAM,CAAC,OAAO,GAAG,QAAQ,CAAC"}

View File

@ -1,8 +1,9 @@
/// <reference path="typings/tsd.d.ts" />
var path = require("path");
var open = require("open");
var openURL = require("open");
var smarturl:any = {};
smarturl.open = openURL;

4
ts/test.js Normal file
View File

@ -0,0 +1,4 @@
/// <reference path="typings/tsd.d.ts" />
var smarturl = require("./index.js");
smarturl.open("https://mojo.io");
//# sourceMappingURL=test.js.map

1
ts/test.js.map Normal file
View File

@ -0,0 +1 @@
{"version":3,"file":"test.js","sourceRoot":"","sources":["test.ts"],"names":[],"mappings":"AAAA,yCAAyC;AACzC,IAAI,QAAQ,GAAG,OAAO,CAAC,YAAY,CAAC,CAAC;AACrC,QAAQ,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC"}

3
ts/test.ts Normal file
View File

@ -0,0 +1,3 @@
/// <reference path="typings/tsd.d.ts" />
var smarturl = require("./index.js");
smarturl.open("https://mojo.io");