diff --git a/.travis.yml b/.travis.yml
index 7da80c3..9658b82 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -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=
diff --git a/index.js b/index.js
index 67114d9..79e58e7 100644
--- a/index.js
+++ b/index.js
@@ -1,11 +1,6 @@
///
-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;
diff --git a/test.js b/test.js
new file mode 100644
index 0000000..7dd946e
--- /dev/null
+++ b/test.js
@@ -0,0 +1,3 @@
+///
+var smarturl = require("./index.js");
+smarturl.open("https://mojo.io");
diff --git a/ts/compile/gulpfile.js b/ts/compile/gulpfile.js
index ab173d0..b3f65bb 100644
--- a/ts/compile/gulpfile.js
+++ b/ts/compile/gulpfile.js
@@ -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');
});
\ No newline at end of file
diff --git a/ts/index.js b/ts/index.js
index b877ea1..54aebd5 100644
--- a/ts/index.js
+++ b/ts/index.js
@@ -1,6 +1,7 @@
///
var path = require("path");
-var open = require("open");
+var openURL = require("open");
var smarturl = {};
+smarturl.open = openURL;
module.exports = smarturl;
//# sourceMappingURL=index.js.map
\ No newline at end of file
diff --git a/ts/index.js.map b/ts/index.js.map
index 3c2e894..9ccc3a1 100644
--- a/ts/index.js.map
+++ b/ts/index.js.map
@@ -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"}
\ No newline at end of file
+{"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"}
\ No newline at end of file
diff --git a/ts/index.ts b/ts/index.ts
index 2aaef5b..aac7466 100644
--- a/ts/index.ts
+++ b/ts/index.ts
@@ -1,8 +1,9 @@
///
var path = require("path");
-var open = require("open");
+var openURL = require("open");
var smarturl:any = {};
+smarturl.open = openURL;
diff --git a/ts/test.js b/ts/test.js
new file mode 100644
index 0000000..7ccec32
--- /dev/null
+++ b/ts/test.js
@@ -0,0 +1,4 @@
+///
+var smarturl = require("./index.js");
+smarturl.open("https://mojo.io");
+//# sourceMappingURL=test.js.map
\ No newline at end of file
diff --git a/ts/test.js.map b/ts/test.js.map
new file mode 100644
index 0000000..77f06ac
--- /dev/null
+++ b/ts/test.js.map
@@ -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"}
\ No newline at end of file
diff --git a/ts/test.ts b/ts/test.ts
new file mode 100644
index 0000000..da1b094
--- /dev/null
+++ b/ts/test.ts
@@ -0,0 +1,3 @@
+///
+var smarturl = require("./index.js");
+smarturl.open("https://mojo.io");
\ No newline at end of file