From 80806fdca9f66bd99357ab522d26b7a2d9841c00 Mon Sep 17 00:00:00 2001 From: Phil Kunz Date: Sat, 2 Jul 2016 02:36:33 +0200 Subject: [PATCH] remove @types/shelljs --- dist/smartgit.clone.d.ts | 1 - dist/smartgit.clone.js | 5 ++--- dist/smartgit.commit.d.ts | 1 - dist/smartgit.commit.js | 3 +-- dist/smartgit.init.d.ts | 1 - dist/smartgit.init.js | 3 +-- dist/smartgit.interfaces.d.ts | 1 - dist/smartgit.interfaces.js | 4 +--- dist/smartgit.plugins.js | 2 +- package.json | 1 - ts/postinstall.ts | 2 +- ts/smartgit.clone.ts | 3 +-- ts/smartgit.commit.ts | 1 - ts/smartgit.init.ts | 1 - ts/smartgit.interfaces.ts | 1 - ts/smartgit.plugins.ts | 2 +- 16 files changed, 9 insertions(+), 23 deletions(-) diff --git a/dist/smartgit.clone.d.ts b/dist/smartgit.clone.d.ts index 0a00ec9..8413fa3 100644 --- a/dist/smartgit.clone.d.ts +++ b/dist/smartgit.clone.d.ts @@ -1,4 +1,3 @@ -import "typings-global"; export declare let clone: (optionsArg: { from: string; to: string; diff --git a/dist/smartgit.clone.js b/dist/smartgit.clone.js index e2e59a9..c06b011 100644 --- a/dist/smartgit.clone.js +++ b/dist/smartgit.clone.js @@ -1,11 +1,10 @@ "use strict"; -require("typings-global"); var plugins = require("./smartgit.plugins"); exports.clone = function (optionsArg) { var done = plugins.Q.defer(); plugins.smartfile.fs.ensureDir(optionsArg.to); - plugins.shelljs.exec("cd " + optionsArg.to + " && git clone " + optionsArg.from + " ."); + plugins.shelljs.exec("git clone " + optionsArg.from + " " + optionsArg.to); done.resolve(); return done.promise; }; -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic21hcnRnaXQuY2xvbmUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi90cy9zbWFydGdpdC5jbG9uZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEs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UFDLEVBQUksQ0FBQyxDQUFDO0lBQ3RFLElBQUksQ0FBQyxPQUFPLEVBQUUsQ0FBQztJQUNmLE1BQU0sQ0FBQyxJQUFJLENBQUMsT0FBTyxDQUFDO0FBQ3hCLENBQUMsQ0FBQyJ9 \ No newline at end of file diff --git a/dist/smartgit.commit.d.ts b/dist/smartgit.commit.d.ts index 1336b36..b26b83a 100644 --- a/dist/smartgit.commit.d.ts +++ b/dist/smartgit.commit.d.ts @@ -1,3 +1,2 @@ -import "typings-global"; declare var _default: (pathArg: string, commitMessage: string) => any; export = _default; diff --git a/dist/smartgit.commit.js b/dist/smartgit.commit.js index 4bbbeca..fe35161 100644 --- a/dist/smartgit.commit.js +++ b/dist/smartgit.commit.js @@ -1,9 +1,8 @@ "use strict"; -require("typings-global"); var plugins = require("./smartgit.plugins"); module.exports = function (pathArg, commitMessage) { var done = plugins.Q.defer(); done.resolve(); return done.promise; }; -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic21hcnRnaXQuY29tbWl0LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vdHMvc21hcnRnaXQuY29tbWl0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxRQUFPLGdCQUNQLENBQUMsQ0FEc0I7QUFDdkIsSUFBTyxPQUFPLFdBQVcsb0JBQW9CLENBQUMsQ0FBQztBQUUvQyxpQkFBUyxVQUFTLE9BQWMsRUFBQyxhQUFvQjtJQUNqRCxJQUFJLElBQUksR0FBRyxPQUFPLENBQUMsQ0FBQyxDQUFDLEtBQUssRUFBRSxDQUFDO0lBQzdCLElBQUksQ0FBQyxPQUFPLEVBQUUsQ0FBQztJQUNmLE1BQU0sQ0FBQyxJQUFJLENBQUMsT0FBTyxDQUFDO0FBQ3hCLENBQUMsQ0FBQyJ9 \ No newline at end of file +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic21hcnRnaXQuY29tbWl0LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vdHMvc21hcnRnaXQuY29tbWl0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxJQUFPLE9BQU8sV0FBVyxvQkFBb0IsQ0FBQyxDQUFDO0FBRS9DLGlCQUFTLFVBQVMsT0FBYyxFQUFDLGFBQW9CO0lBQ2pELElBQUksSUFBSSxHQUFHLE9BQU8sQ0FBQyxDQUFDLENBQUMsS0FBSyxFQUFFLENBQUM7SUFDN0IsSUFBSSxDQUFDLE9BQU8sRUFBRSxDQUFDO0lBQ2YsTUFBTSxDQUFDLElBQUksQ0FBQyxPQUFPLENBQUM7QUFDeEIsQ0FBQyxDQUFDIn0= \ No newline at end of file diff --git a/dist/smartgit.init.d.ts b/dist/smartgit.init.d.ts index 3046c37..46f10f1 100644 --- a/dist/smartgit.init.d.ts +++ b/dist/smartgit.init.d.ts @@ -1,3 +1,2 @@ -import "typings-global"; declare var _default: () => void; export = _default; diff --git a/dist/smartgit.init.js b/dist/smartgit.init.js index b4ef60c..abf8090 100644 --- a/dist/smartgit.init.js +++ b/dist/smartgit.init.js @@ -1,5 +1,4 @@ "use strict"; -require("typings-global"); module.exports = function () { var gitinit = function (dest) { if (dest === void 0) { dest = "undefined"; } @@ -8,4 +7,4 @@ module.exports = function () { } }; }; -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic21hcnRnaXQuaW5pdC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3RzL3NtYXJ0Z2l0LmluaXQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLFFBQU8sZ0JBQ1AsQ0FBQyxDQURzQjtBQUd2QixpQkFBUztJQUNMLElBQUksT0FBTyxHQUFHLFVBQVMsSUFBeUI7UUFBekIsb0JBQXlCLEdBQXpCLGtCQUF5QjtRQUM1QyxFQUFFLENBQUMsQ0FBQyxJQUFJLElBQUksV0FBVyxDQUFDLENBQUMsQ0FBQztZQUN0QixNQUFNLENBQUMsQ0FBQyxxQ0FBcUM7UUFDakQsQ0FBQztJQUdMLENBQUMsQ0FBQztBQUNOLENBQUMsQ0FBQSJ9 \ No newline at end of file +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic21hcnRnaXQuaW5pdC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3RzL3NtYXJ0Z2l0LmluaXQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUVBLGlCQUFTO0lBQ0wsSUFBSSxPQUFPLEdBQUcsVUFBUyxJQUF5QjtRQUF6QixvQkFBeUIsR0FBekIsa0JBQXlCO1FBQzVDLEVBQUUsQ0FBQyxDQUFDLElBQUksSUFBSSxXQUFXLENBQUMsQ0FBQyxDQUFDO1lBQ3RCLE1BQU0sQ0FBQyxDQUFDLHFDQUFxQztRQUNqRCxDQUFDO0lBR0wsQ0FBQyxDQUFDO0FBQ04sQ0FBQyxDQUFBIn0= \ No newline at end of file diff --git a/dist/smartgit.interfaces.d.ts b/dist/smartgit.interfaces.d.ts index 62d7805..e69de29 100644 --- a/dist/smartgit.interfaces.d.ts +++ b/dist/smartgit.interfaces.d.ts @@ -1 +0,0 @@ -import "typings-global"; diff --git a/dist/smartgit.interfaces.js b/dist/smartgit.interfaces.js index 56b4991..78f8f9e 100644 --- a/dist/smartgit.interfaces.js +++ b/dist/smartgit.interfaces.js @@ -1,3 +1 @@ -"use strict"; -require("typings-global"); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic21hcnRnaXQuaW50ZXJmYWNlcy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3RzL3NtYXJ0Z2l0LmludGVyZmFjZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLFFBQU8sZ0JBQWdCLENBQUMsQ0FBRCJ9 \ No newline at end of file +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic21hcnRnaXQuaW50ZXJmYWNlcy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3RzL3NtYXJ0Z2l0LmludGVyZmFjZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiJ9 \ No newline at end of file diff --git a/dist/smartgit.plugins.js b/dist/smartgit.plugins.js index 6f73557..eff35f9 100644 --- a/dist/smartgit.plugins.js +++ b/dist/smartgit.plugins.js @@ -7,4 +7,4 @@ exports.shelljs = require("shelljs"); exports.smartfile = require("smartfile"); exports.smartpath = require("smartpath"); exports.smartstring = require("smartstring"); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic21hcnRnaXQucGx1Z2lucy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3RzL3NtYXJ0Z2l0LnBsdWdpbnMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLFFBQU8sZ0JBRVAsQ0FBQyxDQUZzQjtBQUVULFlBQUksV0FBVyxNQUFNLENBQUMsQ0FBQztBQUN2QixpQkFBUyxXQUFXLFdBQVcsQ0FBQyxDQUFDO0FBQ3BDLFNBQUMsR0FBRyxPQUFPLENBQUMsR0FBRyxDQUFDLENBQUM7QUFDakIsZUFBTyxHQUFHLE9BQU8sQ0FBQyxTQUFTLENBQUMsQ0FBQztBQUMxQixpQkFBUyxXQUFXLFdBQVcsQ0FBQyxDQUFDO0FBQ2pDLGlCQUFTLFdBQVcsV0FBVyxDQUFDLENBQUM7QUFDakMsbUJBQVcsV0FBVyxhQUFhLENBQUMsQ0FBQyJ9 \ No newline at end of file +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic21hcnRnaXQucGx1Z2lucy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3RzL3NtYXJ0Z2l0LnBsdWdpbnMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLFFBQU8sZ0JBQWdCLENBQUMsQ0FBQTtBQUVWLFlBQUksV0FBVyxNQUFNLENBQUMsQ0FBQztBQUN2QixpQkFBUyxXQUFXLFdBQVcsQ0FBQyxDQUFDO0FBQ3BDLFNBQUMsR0FBRyxPQUFPLENBQUMsR0FBRyxDQUFDLENBQUM7QUFDakIsZUFBTyxHQUFHLE9BQU8sQ0FBQyxTQUFTLENBQUMsQ0FBQztBQUMxQixpQkFBUyxXQUFXLFdBQVcsQ0FBQyxDQUFDO0FBQ2pDLGlCQUFTLFdBQVcsV0FBVyxDQUFDLENBQUM7QUFDakMsbUJBQVcsV0FBVyxhQUFhLENBQUMsQ0FBQyJ9 \ No newline at end of file diff --git a/package.json b/package.json index 1fb4224..e40dc3e 100644 --- a/package.json +++ b/package.json @@ -26,7 +26,6 @@ "homepage": "https://github.com/pushrocks/smartgit", "dependencies": { "@types/minimatch": "*", - "@types/shelljs": "^0.3.23-alpha", "beautylog": "^5.0.13", "q": "^1.4.1", "shelljs": "^0.7.0", diff --git a/ts/postinstall.ts b/ts/postinstall.ts index 34d9783..104e198 100644 --- a/ts/postinstall.ts +++ b/ts/postinstall.ts @@ -1,2 +1,2 @@ -import shelljs = require("shelljs"); +let shelljs = require("shelljs"); import beautylog = require("beautylog"); \ No newline at end of file diff --git a/ts/smartgit.clone.ts b/ts/smartgit.clone.ts index 6faf08f..6b3bbe4 100644 --- a/ts/smartgit.clone.ts +++ b/ts/smartgit.clone.ts @@ -1,4 +1,3 @@ -import "typings-global" import plugins = require("./smartgit.plugins"); import SmartgitCheck = require("./smartgit.check"); @@ -11,7 +10,7 @@ export let clone = (optionsArg: { }) => { let done = plugins.Q.defer(); plugins.smartfile.fs.ensureDir(optionsArg.to); - plugins.shelljs.exec(`cd ${optionsArg.to} && git clone ${optionsArg.from} .`); + plugins.shelljs.exec(`git clone ${optionsArg.from} ${optionsArg.to}`); done.resolve(); return done.promise; }; diff --git a/ts/smartgit.commit.ts b/ts/smartgit.commit.ts index 8560a15..8211035 100644 --- a/ts/smartgit.commit.ts +++ b/ts/smartgit.commit.ts @@ -1,4 +1,3 @@ -import "typings-global" import plugins = require("./smartgit.plugins"); export = function(pathArg:string,commitMessage:string) { diff --git a/ts/smartgit.init.ts b/ts/smartgit.init.ts index 304c810..9a28cce 100644 --- a/ts/smartgit.init.ts +++ b/ts/smartgit.init.ts @@ -1,4 +1,3 @@ -import "typings-global" import plugins = require("./smartgit.plugins"); export = function(){ diff --git a/ts/smartgit.interfaces.ts b/ts/smartgit.interfaces.ts index bd55388..e69de29 100644 --- a/ts/smartgit.interfaces.ts +++ b/ts/smartgit.interfaces.ts @@ -1 +0,0 @@ -import "typings-global" \ No newline at end of file diff --git a/ts/smartgit.plugins.ts b/ts/smartgit.plugins.ts index 38dfa38..3845a34 100644 --- a/ts/smartgit.plugins.ts +++ b/ts/smartgit.plugins.ts @@ -1,4 +1,4 @@ -import "typings-global" +import "typings-global"; export import path = require("path"); export import beautylog = require("beautylog");