fix(core): update

This commit is contained in:
2020-03-27 13:40:03 +00:00
parent a84368fd42
commit 0a1bf06048
29 changed files with 1814 additions and 2230 deletions

View File

@ -1,2 +0,0 @@
nvm use v0.12.7
gulp

View File

@ -1,25 +0,0 @@
// import gulp
var gulp = require("gulp"),
gulpTypescript = require("gulp-typescript");
gulp.task('compileTS', function() {
var stream = gulp.src('../index.ts')
.pipe(gulpTypescript({
out: "index.js"
}))
.pipe(gulp.dest("../../"));
return stream;
});
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,2 +0,0 @@
# How to compile.
Make sure gulp and gulp-taypescript from npm are available. Then run the gulpfile in this directory.

View File

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

View File

@ -1 +0,0 @@
{"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,10 +1,3 @@
/// <reference path="typings/tsd.d.ts" />
var path = require("path");
var openURL = require("open");
import * as plugins from './smarturl.plugins';
var smarturl:any = {};
smarturl.open = openURL;
module.exports = smarturl;
export let standardExport = 'Hi there! :) This is an exported string';

2
ts/smarturl.plugins.ts Normal file
View File

@ -0,0 +1,2 @@
const removeme = {};
export { removeme };

View File

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

View File

@ -1 +0,0 @@
{"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"}

View File

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

View File

@ -1,12 +0,0 @@
{
"version": "v4",
"repo": "borisyankov/DefinitelyTyped",
"ref": "master",
"path": "typings",
"bundle": "typings/tsd.d.ts",
"installed": {
"node/node.d.ts": {
"commit": "efa0c1196d7280640e624ac1e7fa604502e7bd63"
}
}
}

File diff suppressed because it is too large Load Diff

1
ts/typings/tsd.d.ts vendored
View File

@ -1 +0,0 @@
/// <reference path="node/node.d.ts" />