update deps

This commit is contained in:
Philipp Kunz 2016-11-21 19:34:59 +01:00
parent dffc390637
commit 854598ab25
19 changed files with 101 additions and 106 deletions

7
.gitignore vendored
View File

@ -1,12 +1,11 @@
node_modules/ node_modules/
.settings/
.idea/
test/temp/ test/temp/
test/temp2/ test/temp2/
coverage/ coverage/
docs/ public/
pages/
#npm devug #npm debug
npm-debug.log npm-debug.log
ts/*.js ts/*.js

2
dist/index.js vendored
View File

@ -15,4 +15,4 @@ var smartgit_remote_1 = require("./smartgit.remote");
exports.remote = smartgit_remote_1.remote; exports.remote = smartgit_remote_1.remote;
var smartgit_status_1 = require("./smartgit.status"); var smartgit_status_1 = require("./smartgit.status");
exports.status = smartgit_status_1.status; exports.status = smartgit_status_1.status;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi90cy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBRUEsNkJBQWtCLGdCQUFnQixDQUFDO0FBQTNCLGlDQUEyQjtBQUNuQywrQkFBb0Isa0JBQWtCLENBQUM7QUFBL0IsdUNBQStCO0FBQ3ZDLGdDQUFxQixtQkFBbUIsQ0FBQztBQUFqQywwQ0FBaUM7QUFDekMsOEJBQW1CLGlCQUFpQixDQUFDO0FBQTdCLG9DQUE2QjtBQUNyQyw4QkFBbUIsaUJBQWlCLENBQUM7QUFBN0Isb0NBQTZCO0FBQ3JDLDhCQUFtQixpQkFBaUIsQ0FBQztBQUE3QixvQ0FBNkI7QUFDckMsZ0NBQXFCLG1CQUFtQixDQUFDO0FBQWpDLDBDQUFpQztBQUN6QyxnQ0FBcUIsbUJBQW1CLENBQUM7QUFBakMsMENBQWlDIn0= //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi90cy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBRUEsK0NBQW1DO0FBQTNCLDZCQUFBLEdBQUcsQ0FBQTtBQUNYLG1EQUF1QztBQUEvQixpQ0FBQSxLQUFLLENBQUE7QUFDYixxREFBeUM7QUFBakMsbUNBQUEsTUFBTSxDQUFBO0FBQ2QsaURBQXFDO0FBQTdCLCtCQUFBLElBQUksQ0FBQTtBQUNaLGlEQUFxQztBQUE3QiwrQkFBQSxJQUFJLENBQUE7QUFDWixpREFBcUM7QUFBN0IsK0JBQUEsSUFBSSxDQUFBO0FBQ1oscURBQXlDO0FBQWpDLG1DQUFBLE1BQU0sQ0FBQTtBQUNkLHFEQUF5QztBQUFqQyxtQ0FBQSxNQUFNLENBQUEifQ==

2
dist/postinstall.js vendored
View File

@ -1,3 +1,3 @@
"use strict"; "use strict";
var shelljs = require("shelljs"); let shelljs = require("shelljs");
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicG9zdGluc3RhbGwuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi90cy9wb3N0aW5zdGFsbC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsSUFBSSxPQUFPLEdBQUcsT0FBTyxDQUFDLFNBQVMsQ0FBQyxDQUFDIn0= //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicG9zdGluc3RhbGwuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi90cy9wb3N0aW5zdGFsbC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsSUFBSSxPQUFPLEdBQUcsT0FBTyxDQUFDLFNBQVMsQ0FBQyxDQUFDIn0=

14
dist/smartgit.add.js vendored
View File

@ -1,21 +1,21 @@
"use strict"; "use strict";
var plugins = require("./smartgit.plugins"); const plugins = require("./smartgit.plugins");
var helpers = require("./smartgit.helpers"); const helpers = require("./smartgit.helpers");
var addAll = function (dirPathArg) { let addAll = (dirPathArg) => {
var done = plugins.Q.defer(); let done = plugins.Q.defer();
if (!helpers.isGitDirectory(dirPathArg)) { if (!helpers.isGitDirectory(dirPathArg)) {
var err = new Error("smartgit.add expects a valid git directory!"); let err = new Error("smartgit.add expects a valid git directory!");
plugins.beautylog.error(err.message); plugins.beautylog.error(err.message);
done.reject(err); done.reject(err);
return done.promise; return done.promise;
} }
; ;
// if everything is ok proceed // if everything is ok proceed
plugins.shelljs.exec("(cd " + dirPathArg + " && git add -A && git status)"); plugins.shelljs.exec(`(cd ${dirPathArg} && git add -A && git status)`);
done.resolve(dirPathArg); done.resolve(dirPathArg);
return done.promise; return done.promise;
}; };
exports.add = { exports.add = {
addAll: addAll addAll: addAll
}; };
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic21hcnRnaXQuYWRkLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vdHMvc21hcnRnaXQuYWRkLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxJQUFZLE9BQU8sV0FBTSxvQkFBb0IsQ0FBQyxDQUFBO0FBQzlDLElBQVksT0FBTyxXQUFNLG9CQUFvQixDQUFDLENBQUE7QUFFOUMsSUFBSSxNQUFNLEdBQUcsVUFBQyxVQUFpQjtJQUMzQixJQUFJLElBQUksR0FBRyxPQUFPLENBQUMsQ0FBQyxDQUFDLEtBQUssRUFBRSxDQUFDO0lBQzdCLEVBQUUsQ0FBQSxDQUFDLENBQUMsT0FBTyxDQUFDLGNBQWMsQ0FBQyxVQUFVLENBQUMsQ0FBQyxDQUFBLENBQUM7UUFDcEMsSUFBSSxHQUFHLEdBQUcsSUFBSSxLQUFLLENBQUMsNkNBQTZDLENBQUMsQ0FBQztRQUNuRSxPQUFPLENBQUMsU0FBUyxDQUFDLEtBQUssQ0FBQyxHQUFHLENBQUMsT0FBTyxDQUFDLENBQUM7U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UFBTSxDQUFDLElBQUksQ0FBQyxPQUFPLENBQUM7SUFDeEIsQ0FBQztJQUFBLENBQUM7SUFDRiw4QkFBOEI7SUFDOUIsT0FBTyxDQUFDLE9BQU8sQ0FBQyxJQUFJLENBQUMsT0FBTyxVQUFVLCtCQUErQixDQUFDLENBQUM7SUFDdkUsSUFBSSxDQUFDLE9BQU8sQ0FBQyxVQUFVLENBQUMsQ0FBQztJQUN6QixNQUFNLENBQUMsSUFBSSxDQUFDLE9BQU8sQ0FBQztBQUN4QixDQUFDLENBQUM7QUFFUyxRQUFBLEdBQUcsR0FBRztJQUNiLE1BQU0sRUFBRSxNQUFNO0NBQ2pCLENBQUEifQ==

View File

@ -1,10 +1,10 @@
"use strict"; "use strict";
var plugins = require("./smartgit.plugins"); const plugins = require("./smartgit.plugins");
exports.clone = function (optionsArg) { exports.clone = (optionsArg) => {
var done = plugins.Q.defer(); let done = plugins.Q.defer();
plugins.smartfile.fs.ensureDir(optionsArg.to); plugins.smartfile.fs.ensureDir(optionsArg.to);
plugins.shelljs.exec("git clone " + optionsArg.from + " " + optionsArg.to); plugins.shelljs.exec(`git clone ${optionsArg.from} ${optionsArg.to}`);
done.resolve(); done.resolve();
return done.promise; return done.promise;
}; };
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic21hcnRnaXQuY2xvbmUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi90cy9zbWFydGdpdC5jbG9uZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsSUFBTyxPQUFPLFdBQVcsb0JBQW9CLENBQUMsQ0FBQztBQUdwQyxhQUFLLEdBQUcsVUFBQyxVQU1uQjtJQUNHLElBQUksSUFBSSxHQUFHLE9BQU8sQ0FBQyxDQUFDLENBQUMsS0FBSyxFQUFFLENBQUM7SUFDN0IsT0FBTyxDQUFDLFNBQVMsQ0FBQyxFQUFFLENBQUMsU0FBUyxDQUFDLFVBQVUsQ0FBQyxFQUFFLENBQUMsQ0FBQztJQUM5QyxPQUFPLENBQUMsT0FBTyxDQUFDLElBQUksQ0FBQyxlQUFhLFVBQVUsQ0FBQyxJQUFJLFNBQUksVUFBVSxDQUFDLEVBQUksQ0FBQyxDQUFDO0lBQ3RFLElBQUksQ0FBQyxPQUFPLEVBQUUsQ0FBQztJQUNmLE1BQU0sQ0FBQyxJQUFJLENBQUMsT0FBTyxDQUFDO0FBQ3hCLENBQUMsQ0FBQyJ9 //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic21hcnRnaXQuY2xvbmUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi90cy9zbWFydGdpdC5jbG9uZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsOENBQStDO0FBR3BDLFFBQUEsS0FBSyxHQUFHLENBQUMsVUFNbkI7SUFDRyxJQUFJLElBQUksR0FBRyxPQUFPLENBQUMsQ0FBQyxDQUFDLEtBQUssRUFBRSxDQUFDO0lBQzdCLE9BQU8sQ0FBQyxTQUFTLENBQUMsRUFBRSxDQUFDLFNBQVMsQ0FBQyxVQUFVLENBQUMsRUFBRSxDQUFDLENBQUM7SUFDOUMsT0FBTyxDQUFDLE9BQU8sQ0FBQyxJQUFJLENBQUMsYUFBYSxVQUFVLENBQUMsSUFBSSxJQUFJLFVBQVUsQ0FBQyxFQUFFLEVBQUUsQ0FBQyxDQUFDO0lBQ3RFLElBQUksQ0FBQyxPQUFPLEVBQUUsQ0FBQztJQUNmLE1BQU0sQ0FBQyxJQUFJLENBQUMsT0FBTyxDQUFDO0FBQ3hCLENBQUMsQ0FBQyJ9

View File

@ -1,18 +1,18 @@
"use strict"; "use strict";
var plugins = require("./smartgit.plugins"); const plugins = require("./smartgit.plugins");
var helpers = require("./smartgit.helpers"); const helpers = require("./smartgit.helpers");
exports.commit = function (dirPathArg, commitMessage) { exports.commit = (dirPathArg, commitMessage) => {
var done = plugins.Q.defer(); let done = plugins.Q.defer();
if (!helpers.isGitDirectory(dirPathArg)) { if (!helpers.isGitDirectory(dirPathArg)) {
var err = new Error("smartgit.commit expects a valid git directory"); let err = new Error("smartgit.commit expects a valid git directory");
plugins.beautylog.error(err.message); plugins.beautylog.error(err.message);
done.reject(err); done.reject(err);
return done.promise; return done.promise;
} }
; ;
// if everything is all right proceed // if everything is all right proceed
plugins.shelljs.exec("(cd " + dirPathArg + " && git commit -m \"" + commitMessage + "\")"); plugins.shelljs.exec(`(cd ${dirPathArg} && git commit -m "${commitMessage}")`);
done.resolve(); done.resolve();
return done.promise; return done.promise;
}; };
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic21hcnRnaXQuY29tbWl0LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vdHMvc21hcnRnaXQuY29tbWl0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxJQUFZLE9BQU8sV0FBTSxvQkFBb0IsQ0FBQyxDQUFBO0FBQzlDLElBQVksT0FBTyxXQUFNLG9CQUFvQixDQUFDLENBQUE7QUFFbkMsY0FBTSxHQUFHLFVBQUMsVUFBaUIsRUFBQyxhQUFvQjtJQUN2RCxJQUFJLElBQUksR0FBRyxPQUFPLENBQUMsQ0FBQyxDQUFDLEtBQUssRUFBRSxDQUFDO0lBQzdCLEVBQUUsQ0FBQSxDQUFDLENBQUMsT0FBTyxDQUFDLGNBQWMsQ0FBQyxVQUFVLENBQUMsQ0FBQyxDQUFBLENBQUM7UUFDcEMsSUFBSSxHQUFHLEdBQUcsSUFBSSxLQUFLLENBQUMsK0NBQStDLENBQUMsQ0FBQztRQUNyRSxPQUFPLENBQUMsU0FBUyxDQUFDLEtBQUssQ0FBQyxHQUFHLENBQUMsT0FBTyxDQUFDLENBQUM7UUFDckMsSUFBSSxDQUFDLE1BQU0sQ0FBQyxHQUFHLENBQUMsQ0FBQztRQUNqQixN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TyxDQUFDLElBQUksQ0FBQyxPQUFPLFVBQVUsc0JBQXNCLGFBQWEsSUFBSSxDQUFDLENBQUM7SUFDL0UsSUFBSSxDQUFDLE9BQU8sRUFBRSxDQUFDO0lBQ2YsTUFBTSxDQUFDLElBQUksQ0FBQyxPQUFPLENBQUM7QUFDeEIsQ0FBQyxDQUFDIn0=

View File

@ -1,6 +1,6 @@
"use strict"; "use strict";
var plugins = require("./smartgit.plugins"); const plugins = require("./smartgit.plugins");
exports.isGitDirectory = function (dirPathArg) { exports.isGitDirectory = (dirPathArg) => {
try { try {
return plugins.smartfile.fs.isDirectory(plugins.path.join(dirPathArg, ".git")); return plugins.smartfile.fs.isDirectory(plugins.path.join(dirPathArg, ".git"));
} }
@ -8,4 +8,4 @@ exports.isGitDirectory = function (dirPathArg) {
return false; return false;
} }
}; };
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic21hcnRnaXQuaGVscGVycy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3RzL3NtYXJ0Z2l0LmhlbHBlcnMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLElBQVksT0FBTyxXQUFNLG9CQUFvQixDQUFDLENBQUE7QUFFbkMsc0JBQWMsR0FBRyxVQUFDLFVBQVU7SUFDbkMsSUFBSSxDQUFDO1FBQ0QsTUFBTSxDQUFDLE9BQU8sQ0FBQyxTQUFTLENBQUMsRUFBRSxDQUFDLFdBQVcsQ0FDbkMsT0FBTyxDQUFDLElBQUksQ0FBQyxJQUFJLENBQUMsVUFBVSxFQUFDLE1BQU0sQ0FBQyxDQUN2QyxDQUFDO0lBQ04sQ0FDQTtJQUFBLEtBQUssQ0FBQSxDQUFDLEdBQUcsQ0FBQyxDQUFBLENBQUM7UUFDUCxNQUFNLENBQUMsS0FBSyxDQUFDO0lBQ2pCLENBQUM7QUFDTCxDQUFDLENBQUEifQ== //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic21hcnRnaXQuaGVscGVycy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3RzL3NtYXJ0Z2l0LmhlbHBlcnMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLDhDQUE4QztBQUVuQyxRQUFBLGNBQWMsR0FBRyxDQUFDLFVBQVU7SUFDbkMsSUFBSSxDQUFDO1FBQ0QsTUFBTSxDQUFDLE9BQU8sQ0FBQyxTQUFTLENBQUMsRUFBRSxDQUFDLFdBQVcsQ0FDbkMsT0FBTyxDQUFDLElBQUksQ0FBQyxJQUFJLENBQUMsVUFBVSxFQUFDLE1BQU0sQ0FBQyxDQUN2QyxDQUFDO0lBQ04sQ0FDQTtJQUFBLEtBQUssQ0FBQSxDQUFDLEdBQUcsQ0FBQyxDQUFBLENBQUM7UUFDUCxNQUFNLENBQUMsS0FBSyxDQUFDO0lBQ2pCLENBQUM7QUFDTCxDQUFDLENBQUEifQ==

12
dist/smartgit.init.js vendored
View File

@ -1,17 +1,17 @@
"use strict"; "use strict";
var plugins = require("./smartgit.plugins"); const plugins = require("./smartgit.plugins");
exports.init = function (dirPathArg) { exports.init = (dirPathArg) => {
var done = plugins.Q.defer(); let done = plugins.Q.defer();
if (typeof dirPathArg == "undefined") { if (typeof dirPathArg == "undefined") {
var err = new Error("smartgit.init requires an absolute directory path!"); let err = new Error("smartgit.init requires an absolute directory path!");
plugins.beautylog.error(err.message); plugins.beautylog.error(err.message);
done.reject("err"); done.reject("err");
return done.promise; return done.promise;
} }
; ;
plugins.smartfile.fs.ensureDir(dirPathArg); plugins.smartfile.fs.ensureDir(dirPathArg);
plugins.shelljs.exec("(cd " + dirPathArg + " && git init)"); plugins.shelljs.exec(`(cd ${dirPathArg} && git init)`);
done.resolve(dirPathArg); done.resolve(dirPathArg);
return done.promise; return done.promise;
}; };
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJ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IjpbIi4uL3RzL3NtYXJ0Z2l0LmluaXQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLDhDQUErQztBQUVwQyxRQUFBLElBQUksR0FBRyxDQUFDLFVBQWlCO0lBQ2hDLElBQUksSUFBSSxHQUFHLE9BQU8sQ0FBQyxDQUFDLENBQUMsS0FBSyxFQUFFLENBQUM7SUFDN0IsRUFBRSxDQUFDLENBQUMsT0FBTyxVQUFVLElBQUksV0FBVyxDQUFDLENBQUMsQ0FBQztRQUNuQyxJQUFJLEdBQUcsR0FBRyxJQUFJLEtBQUssQ0FBQyxvREFBb0QsQ0FBQyxDQUFBO1FBQ3pFLE9BQU8sQ0FBQyxTQUFTLENBQUMsS0FBSyxDQUFDLEdBQUcsQ0FBQyxPQUFPLENBQUMsQ0FBQztRQUNyQyxJQUFJLENBQUMsTUFBTSxDQUFDLEtBQUssQ0FBQyxDQUFDO1FBQ25CLE1BQU0sQ0FBQyxJQUFJLENBQUMsT0FBTyxDQUFDO0lBQ3hCLENBQUM7SUFBQSxDQUFDO0lBQ0YsT0FBTyxDQUFDLFNBQVMsQ0FBQyxFQUFFLENBQUMsU0FBUyxDQUFDLFVBQVUsQ0FBQyxDQUFDO0lBQzNDLE9BQU8sQ0FBQyxPQUFPLENBQUMsSUFBSSxDQUFDLE9BQU8sVUFBVSxlQUFlLENBQUMsQ0FBQztJQUN2RCxJQUFJLENBQUMsT0FBTyxDQUFDLFVBQVUsQ0FBQyxDQUFDO0lBQ3pCLE1BQU0sQ0FBQyxJQUFJLENBQUMsT0FBTyxDQUFDO0FBQ3hCLENBQUMsQ0FBQyJ9

View File

@ -2,7 +2,7 @@ import "typings-global";
export import path = require("path"); export import path = require("path");
export import beautylog = require("beautylog"); export import beautylog = require("beautylog");
export import Q = require("q"); export import Q = require("q");
export declare let shelljs: any; export import shelljs = require("shelljs");
export import smartfile = require("smartfile"); export import smartfile = require("smartfile");
export import smartpath = require("smartpath"); export import smartpath = require("smartpath");
export import smartstring = require("smartstring"); export import smartstring = require("smartstring");

View File

@ -7,4 +7,4 @@ exports.shelljs = require("shelljs");
exports.smartfile = require("smartfile"); exports.smartfile = require("smartfile");
exports.smartpath = require("smartpath"); exports.smartpath = require("smartpath");
exports.smartstring = require("smartstring"); exports.smartstring = require("smartstring");
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic21hcnRnaXQucGx1Z2lucy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3RzL3NtYXJ0Z2l0LnBsdWdpbnMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLFFBQU8sZ0JBQWdCLENBQUMsQ0FBQTtBQUNWLFlBQUksV0FBVyxNQUFNLENBQUMsQ0FBQztBQUN2QixpQkFBUyxXQUFXLFdBQVcsQ0FBQyxDQUFDO0FBQ2pDLFNBQUMsV0FBVyxHQUFHLENBQUMsQ0FBQztBQUNwQixlQUFPLEdBQUcsT0FBTyxDQUFDLFNBQVMsQ0FBQyxDQUFDO0FBQzFCLGlCQUFTLFdBQVcsV0FBVyxDQUFDLENBQUM7QUFDakMsaUJBQVMsV0FBVyxXQUFXLENBQUMsQ0FBQztBQUNqQyxtQkFBVyxXQUFXLGFBQWEsQ0FBQyxDQUFDIn0= //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic21hcnRnaXQucGx1Z2lucy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3RzL3NtYXJ0Z2l0LnBsdWdpbnMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLDBCQUF1QjtBQUN2QiwrQkFBb0M7QUFDcEMseUNBQThDO0FBQzlDLHlCQUE4QjtBQUM5QixxQ0FBMEM7QUFDMUMseUNBQThDO0FBQzlDLHlDQUE4QztBQUM5Qyw2Q0FBa0QifQ==

16
dist/smartgit.pull.js vendored
View File

@ -1,20 +1,18 @@
"use strict"; "use strict";
var plugins = require("./smartgit.plugins"); const plugins = require("./smartgit.plugins");
var helpers = require("./smartgit.helpers"); const helpers = require("./smartgit.helpers");
exports.pull = function (dirPathArg, sourceArg, branchArg) { exports.pull = (dirPathArg, sourceArg = "", branchArg = "") => {
if (sourceArg === void 0) { sourceArg = ""; } let done = plugins.Q.defer();
if (branchArg === void 0) { branchArg = ""; }
var done = plugins.Q.defer();
if (!helpers.isGitDirectory(dirPathArg)) { if (!helpers.isGitDirectory(dirPathArg)) {
var err = new Error("smartgit.pull expects a valid git directory"); let err = new Error("smartgit.pull expects a valid git directory");
plugins.beautylog.error(err.message); plugins.beautylog.error(err.message);
done.reject(err); done.reject(err);
return done.promise; return done.promise;
} }
; ;
// if everything is allright proceed // if everything is allright proceed
plugins.shelljs.exec("(cd " + dirPathArg + " && git pull " + sourceArg + " " + branchArg + ")"); plugins.shelljs.exec(`(cd ${dirPathArg} && git pull ${sourceArg} ${branchArg})`);
done.resolve(dirPathArg); done.resolve(dirPathArg);
return done.promise; return done.promise;
}; };
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic21hcnRnaXQucHVsbC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3RzL3NtYXJ0Z2l0LnB1bGwudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLElBQVksT0FBTyxXQUFNLG9CQUFvQixDQUFDLENBQUE7QUFDOUMsSUFBWSxPQUFPLFdBQU0sb0JBQW9CLENBQUMsQ0FBQTtBQUVuQyxZQUFJLEdBQUcsVUFBQyxVQUFpQixFQUFDLFNBQXFCLEVBQUUsU0FBcUI7SUFBNUMseUJBQXFCLEdBQXJCLGNBQXFCO0lBQUUseUJBQXFCLEdBQXJCLGNBQXFCO0lBQzdFLElBQUksSUFBSSxHQUFHLE9BQU8sQ0FBQyxDQUFDLENBQUMsS0FBSyxFQUFFLENBQUM7SUFDN0IsRUF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QUMsY0FBYyxDQUFDLFVBQVUsQ0FBQyxDQUFDLENBQUEsQ0FBQztRQUNwQyxJQUFJLEdBQUcsR0FBRyxJQUFJLEtBQUssQ0FBQyw2Q0FBNkMsQ0FBQyxDQUFDO1FBQ25FLE9BQU8sQ0FBQyxTQUFTLENBQUMsS0FBSyxDQUFDLEdBQUcsQ0FBQyxPQUFPLENBQUMsQ0FBQztRQUNyQyxJQUFJLENBQUMsTUFBTSxDQUFDLEdBQUcsQ0FBQyxDQUFDO1FBQ2pCLE1BQU0sQ0FBQyxJQUFJLENBQUMsT0FBTyxDQUFDO0lBQ3hCLENBQUM7SUFBQSxDQUFDO0lBQ0Ysb0NBQW9DO0lBQ3BDLE9BQU8sQ0FBQyxPQUFPLENBQUMsSUFBSSxDQUFDLE9BQU8sVUFBVSxnQkFBZ0IsU0FBUyxJQUFJLFNBQVMsR0FBRyxDQUFDLENBQUM7SUFDakYsSUFBSSxDQUFDLE9BQU8sQ0FBQyxVQUFVLENBQUMsQ0FBQztJQUN6QixNQUFNLENBQUMsSUFBSSxDQUFDLE9BQU8sQ0FBQztBQUN4QixDQUFDLENBQUMifQ==

16
dist/smartgit.push.js vendored
View File

@ -1,19 +1,17 @@
"use strict"; "use strict";
var plugins = require("./smartgit.plugins"); const plugins = require("./smartgit.plugins");
var helpers = require("./smartgit.helpers"); const helpers = require("./smartgit.helpers");
exports.push = function (dirPathArg, remoteNameArg, remoteBranchArg) { exports.push = (dirPathArg, remoteNameArg = "", remoteBranchArg = "") => {
if (remoteNameArg === void 0) { remoteNameArg = ""; } let done = plugins.Q.defer();
if (remoteBranchArg === void 0) { remoteBranchArg = ""; }
var done = plugins.Q.defer();
if (!helpers.isGitDirectory(dirPathArg)) { if (!helpers.isGitDirectory(dirPathArg)) {
var err = new Error("smartgit.push expects a valid git directory"); let err = new Error("smartgit.push expects a valid git directory");
plugins.beautylog.error(err.message); plugins.beautylog.error(err.message);
done.reject(err); done.reject(err);
return done.promise; return done.promise;
} }
// if everything seems allright proceed // if everything seems allright proceed
plugins.shelljs.exec("(cd " + dirPathArg + " && git push " + remoteNameArg + " " + remoteBranchArg + ")"); plugins.shelljs.exec(`(cd ${dirPathArg} && git push ${remoteNameArg} ${remoteBranchArg})`);
done.resolve(); done.resolve();
return done.promise; return done.promise;
}; };
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic21hcnRnaXQucHVzaC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3RzL3NtYXJ0Z2l0LnB1c2gudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLElBQVksT0FBTyxXQUFNLG9CQUFvQixDQUFDLENBQUE7QUFDOUMsSUFBWSxPQUFPLFdBQU0sb0JBQW9CLENBQUMsQ0FBQTtBQUVuQyxZQUFJLEdBQUcsVUFBQyxVQUFpQixFQUFFLGFBQXlCLEVBQUUsZUFBMkI7SUFBdEQsNkJBQXlCLEdBQXpCLGtCQUF5QjtJQUFFLCtCQUEyQixHQUEzQixvQkFBMkI7SUFDeEYsSUFBSSxJQUFJLEdBQUcsT0FBTyxDQUFDLENBQUMsQ0FBQyxLQUFLLEVBQUUsQ0FBQztJQUM3QixFQUFFLENBQUEsQ0FBQyxDQUFDLE9BQU8sQ0FBQyxjQUFjLENBQUMsVUFBVSxDQUFDLENBQUMsQ0FBQSxDQUFDO1FBQ3BDLElBQUksR0FBRyxHQUFHLElBQUksS0FBSyxDQUFDLDZDQUE2QyxDQUFDLENBQUM7UUFDbkUsT0FBTyxDQUFDLFNBQVMsQ0FBQyxLQUFLLENBQUMsR0FBRyxDQUFDLE9BQU8sQ0FBQyxDQUFDO1FBQ3JDLElBQUksQ0FBQyxNQUFNLENBQUMsR0FBRyxDQUFDLENBQUM7UUFDakIsTUFBTSxDQUFDLElBQUksQ0FBQyxPQUFPLENBQUM7SUFDeEIsQ0FBQztJQUNELHVDQUF1QztJQUN2QyxPQUFPLENBQUMsT0FBTyxD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sQ0FBQyxDQUFDO0lBQzNGLElBQUksQ0FBQyxPQUFPLEVBQUUsQ0FBQztJQUNmLE1BQU0sQ0FBQyxJQUFJLENBQUMsT0FBTyxDQUFDO0FBQ3hCLENBQUMsQ0FBQyJ9

View File

@ -1,56 +1,56 @@
"use strict"; "use strict";
var plugins = require("./smartgit.plugins"); const plugins = require("./smartgit.plugins");
var helpers = require("./smartgit.helpers"); const helpers = require("./smartgit.helpers");
var add = function (dirPathArg, remoteNameArg, remoteLinkArg) { let add = (dirPathArg, remoteNameArg, remoteLinkArg) => {
var done = plugins.Q.defer(); let done = plugins.Q.defer();
if (!helpers.isGitDirectory(dirPathArg)) { if (!helpers.isGitDirectory(dirPathArg)) {
var err = new Error("smartgit.remote.add expects a valid git directory"); let err = new Error("smartgit.remote.add expects a valid git directory");
plugins.beautylog.error(err.message); plugins.beautylog.error(err.message);
done.reject(err); done.reject(err);
return done.promise; return done.promise;
} }
; ;
if (!remoteNameArg) { if (!remoteNameArg) {
var err = new Error("smartgit.remote.add expects a valid remote name"); let err = new Error("smartgit.remote.add expects a valid remote name");
plugins.beautylog.error(err.message); plugins.beautylog.error(err.message);
done.reject(err); done.reject(err);
return done.promise; return done.promise;
} }
; ;
if (!remoteLinkArg) { if (!remoteLinkArg) {
var err = new Error(); let err = new Error();
plugins.beautylog.error(err.message); plugins.beautylog.error(err.message);
done.reject(err); done.reject(err);
return done.promise; return done.promise;
} }
; ;
// if everything is all right proceed // if everything is all right proceed
plugins.shelljs.exec("cd " + dirPathArg + " && git remote add " + remoteNameArg + " " + remoteLinkArg); plugins.shelljs.exec(`cd ${dirPathArg} && git remote add ${remoteNameArg} ${remoteLinkArg}`);
exports.remote.list(dirPathArg); exports.remote.list(dirPathArg);
done.resolve(); done.resolve();
return done.promise; return done.promise;
}; };
var check = function (dirPathArg, remoteNameArg, remoteLinkArg) { let check = (dirPathArg, remoteNameArg, remoteLinkArg) => {
}; };
var list = function (dirPathArg) { let list = (dirPathArg) => {
var done = plugins.Q.defer(); let done = plugins.Q.defer();
var remotes = {}; let remotes = {};
if (!helpers.isGitDirectory(dirPathArg)) { if (!helpers.isGitDirectory(dirPathArg)) {
var err = new Error("smartgit.remote.list expects a valid git directory"); let err = new Error("smartgit.remote.list expects a valid git directory");
plugins.beautylog.error(err.message); plugins.beautylog.error(err.message);
done.reject(err); done.reject(err);
return done.promise; return done.promise;
} }
; ;
// if everything is all right proceed // if everything is all right proceed
plugins.shelljs.exec("cd " + dirPathArg + " && git remote -v").stdout; plugins.shelljs.exec(`cd ${dirPathArg} && git remote -v`).stdout;
done.resolve(remotes); done.resolve(remotes);
return done.promise; return done.promise;
}; };
var remove = function (dirPathArg) { let remove = (dirPathArg) => {
var done = plugins.Q.defer(); let done = plugins.Q.defer();
if (!helpers.isGitDirectory(dirPathArg)) { if (!helpers.isGitDirectory(dirPathArg)) {
var err = new Error("smartgit.remote.remove expects a valid git directory"); let err = new Error("smartgit.remote.remove expects a valid git directory");
plugins.beautylog.error(err.message); plugins.beautylog.error(err.message);
done.reject(err); done.reject(err);
return done.promise; return done.promise;
@ -63,4 +63,4 @@ exports.remote = {
list: list, list: list,
remove: remove remove: remove
}; };
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic21hcnRnaXQucmVtb3RlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vdHMvc21hcnRnaXQucmVtb3RlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxJQUFZLE9BQU8sV0FBTSxvQkFBb0IsQ0FBQyxDQUFBO0FBQzlDLElBQVksT0FBTyxXQUFNLG9CQUFvQixDQUFDLENBQUE7QUFFOUMsSUFBSSxHQUFHLEdBQUcsVUFBQyxVQUFVLEVBQUMsYUFBb0IsRUFBRSxhQUFvQjtJQUM1RCxJQUFJLElBQUksR0FBRyxPQUFPLENBQUMsQ0FBQyxDQUFDLEtBQUssRUFBRSxDQUFDO0lBQzdCLEVBQU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0lBQ2pFLElBQUksQ0FBQyxPQUFPLENBQUMsT0FBTyxDQUFDLENBQUM7SUFDdEIsTUFBTSxDQUFDLElBQUksQ0FBQyxPQUFPLENBQUM7QUFDeEIsQ0FBQyxDQUFDO0FBRUYsSUFBSSxNQUFNLEdBQUcsQ0FBQyxVQUFpQjtJQUMzQixJQUFJLElBQUksR0FBRyxPQUFPLENBQUMsQ0FBQyxDQUFDLEtBQUssRUFBRSxDQUFDO0lBQzdCLEVBQUUsQ0FBQSxDQUFDLENBQUMsT0FBTyxDQUFDLGNBQWMsQ0FBQyxVQUFVLENBQUMsQ0FBQyxDQUFBLENBQUM7UUFDcEMsSUFBSSxHQUFHLEdBQUcsSUFBSSxLQUFLLENBQUMsc0RBQXNELENBQUMsQ0FBQztRQUM1RSxPQUFPLENBQUMsU0FBUyxDQUFDLEtBQUssQ0FBQyxHQUFHLENBQUMsT0FBTyxDQUFDLENBQUM7UUFDckMsSUFBSSxDQUFDLE1BQU0sQ0FBQyxHQUFHLENBQUMsQ0FBQztRQUNqQixNQUFNLENBQUMsSUFBSSxDQUFDLE9BQU8sQ0FBQztJQUN4QixDQUFDO0lBQUEsQ0FBQztJQUNGLDhCQUE4QjtBQUNsQyxDQUFDLENBQUE7QUFFVSxRQUFBLE1BQU0sR0FBRztJQUNoQixHQUFHLEVBQUUsR0FBRztJQUNSLElBQUksRUFBRSxJQUFJO0lBQ1YsTUFBTSxFQUFFLE1BQU07Q0FDakIsQ0FBQSJ9

View File

@ -1,18 +1,18 @@
"use strict"; "use strict";
var plugins = require("./smartgit.plugins"); const plugins = require("./smartgit.plugins");
var helpers = require("./smartgit.helpers"); const helpers = require("./smartgit.helpers");
exports.status = function (dirPathArg) { exports.status = (dirPathArg) => {
var done = plugins.Q.defer(); let done = plugins.Q.defer();
if (!helpers.isGitDirectory(dirPathArg)) { if (!helpers.isGitDirectory(dirPathArg)) {
var err = new Error("smartgit.status expects a valid git directory"); let err = new Error("smartgit.status expects a valid git directory");
plugins.beautylog.error(err.message); plugins.beautylog.error(err.message);
done.reject(err); done.reject(err);
return done.promise; return done.promise;
} }
; ;
// if everything seems allright proceed // if everything seems allright proceed
plugins.shelljs.exec("(cd " + dirPathArg + " && git status)"); plugins.shelljs.exec(`(cd ${dirPathArg} && git status)`);
done.resolve(); done.resolve();
return done.promise; return done.promise;
}; };
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic21hcnRnaXQuc3RhdHVzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vdHMvc21hcnRnaXQuc3RhdHVzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxJQUFZLE9BQU8sV0FBTSxvQkFBb0IsQ0FBQyxDQUFBO0FBQzlDLElBQVksT0FBTyxXQUFNLG9CQUFvQixDQUFDLENBQUE7QUFFbkMsY0FBTSxHQUFHLFVBQUMsVUFBaUI7SUFDbEMsSUFBSSxJQUFJLEdBQUcsT0FBTyxDQUFDLENBQUMsQ0FBQyxLQUFLLEVBQUUsQ0FBQztJQUM3QixFQUFFLENBQUEsQ0FBQyxDQUFDLE9BQU8sQ0FBQyxjQUFjLENBQUMsVUFBVSxDQUFDLENBQUMsQ0FBQSxDQUFDO1FBQ3BDLElBQUksR0FBRyxHQUFHLElBQUksS0FBSyxDQUFDLCtDQUErQyxDQUFDLENBQUM7UUFDckUsT0FBTyxDQUFDLFNBQVMsQ0FBQyxLQUFLLENBQUMsR0FBRyxDQUFDLE9BQU8sQ0FBQyxDQUFDO1FBQ3JDLElBQUksQ0FBQyxNQUFNLENBQUMsR0FBRyxDQUFDLENBQUM7UUFDakIsTUFBTSxDQUFDLElBQUksQ0FBQyxPQUFPLENBQUM7SUFDeEIsQ0FBQztJQUFBLENBQUM7SUFDRix1Q0FBdUM7SUFDdkMsT0FBTyxDQUFDLE9BQU8sQ0FBQyxJQUFJLENBQUMsU0FBTyxVQUFVLG9CQUFpQixDQUFDLENBQUM7SUFDek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age": "https://gitlab.com/pushrocks/smartgit", "homepage": "https://gitlab.com/pushrocks/smartgit",
"dependencies": { "dependencies": {
"@types/minimatch": "*", "@types/minimatch": "*",
"beautylog": "^5.0.13", "@types/shelljs": "^0.3.32",
"beautylog": "^6.0.0",
"q": "^1.4.1", "q": "^1.4.1",
"shelljs": "^0.7.0", "shelljs": "^0.7.5",
"smartfile": "^4.0.10", "smartfile": "^4.1.0",
"smartpath": "^3.2.2", "smartpath": "^3.2.5",
"smartstring": "^2.0.10", "smartstring": "^2.0.22",
"typings-global": "^1.0.5" "typings-global": "^1.0.14"
}, },
"devDependencies": { "devDependencies": {
"npmts-g": "^5.2.6", "@types/should": "^8.1.30",
"should": "^9.0.2", "npmts-g": "^5.2.8",
"typings-test": "^1.0.1" "should": "^11.1.1",
"typings-test": "^1.0.3"
} }
} }

1
test/test.d.ts vendored
View File

@ -1,2 +1 @@
import "typings-test"; import "typings-test";
import "should";

View File

@ -1,10 +1,9 @@
"use strict"; "use strict";
require("typings-test"); require("typings-test");
var shelljs = require("shelljs"); let shelljs = require("shelljs");
var path = require("path"); const path = require("path");
require("should"); const smartgit = require("../dist/index");
var smartgit = require("../dist/index"); let paths = {
var paths = {
temp: path.resolve("./test/temp/"), temp: path.resolve("./test/temp/"),
temp2: path.resolve("./test/temp2/"), temp2: path.resolve("./test/temp2/"),
temp3: path.resolve("./test/temp3"), temp3: path.resolve("./test/temp3"),
@ -37,7 +36,7 @@ describe("smartgit", function () {
smartgit.add.addAll(paths.noGit); smartgit.add.addAll(paths.noGit);
}); });
it("should add a file to an existing repository", function () { it("should add a file to an existing repository", function () {
shelljs.exec("(cd " + paths.temp + " && cp ../test.js .)"); shelljs.exec(`(cd ${paths.temp} && cp ../test.js .)`);
smartgit.add.addAll(paths.temp); smartgit.add.addAll(paths.temp);
}); });
}); });
@ -90,4 +89,4 @@ describe("smartgit", function () {
}); });
}); });
}); });
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIj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ENBQUMsQ0FBQyxDQUFBO0lBQ04sQ0FBQyxDQUFDLENBQUM7SUFDSCxRQUFRLENBQUMsUUFBUSxFQUFDO1FBQ2QsRUFBRSxDQUFDLHdCQUF3QixFQUFDO1lBQ3hCLFFBQVEsQ0FBQyxNQUFNLENBQUMsR0FBRyxDQUFDLEtBQUssQ0FBQyxLQUFLLEVBQUMsSUFBSSxFQUFDLElBQUksQ0FBQyxDQUFDO1FBQy9DLENBQUMsQ0FBQyxDQUFDO1FBQ0gsRUFBRSxDQUFDLGlDQUFpQyxFQUFDO1lBQ2pDLFFBQVEsQ0FBQyxNQUFNLENBQUMsR0FBRyxDQUFDLEtBQUssQ0FBQyxJQUFJLEVBQUMsSUFBSSxFQUFDLElBQUksQ0FBQyxDQUFDO1FBQzlDLENBQUMsQ0FBQyxDQUFDO1FBQ0gsRUFBRSxDQUFDLGlDQUFpQyxFQUFDO1lBQ2pDLFFBQVEsQ0FBQyxNQUFNLENBQUMsR0FBRyxDQUFDLEtBQUssQ0FBQyxJQUFJLEVBQUMsUUFBUSxFQUFDLElBQUksQ0FBQyxDQUFDO1FBQ2xELENBQUMsQ0FBQyxDQUFDO1FBQ0gsRUFBRSxDQUFDLHFCQUFxQixFQUFDO1lBQ3JCLFFBQVEsQ0FBQyxNQUFNLENBQUMsR0FBRyxDQUFDLEtBQUssQ0FBQyxJQUFJLEVBQUMsU0FBUyxFQUFDLHVDQUF1QyxDQUFDLENBQUM7UUFDdEYsQ0FBQyxDQUFDLENBQUM7SUFDUCxDQUFDLENBQUMsQ0FBQztBQUNQLENBQUMsQ0FBQyxDQUFDIn0=

View File

@ -1,8 +1,8 @@
import "typings-test"; import "typings-test"
import beautylog = require("beautylog"); import beautylog = require("beautylog");
let shelljs = require("shelljs"); let shelljs = require("shelljs");
import path = require("path"); import path = require("path");
import "should" import * as should from "should"
import smartgit = require("../dist/index"); import smartgit = require("../dist/index");
let paths = { let paths = {

View File

@ -1,8 +1,8 @@
import "typings-global"; import "typings-global"
export import path = require("path"); export import path = require("path")
export import beautylog = require("beautylog"); export import beautylog = require("beautylog")
export import Q = require("q"); export import Q = require("q")
export let shelljs = require("shelljs"); export import shelljs = require("shelljs")
export import smartfile = require("smartfile"); export import smartfile = require("smartfile")
export import smartpath = require("smartpath"); export import smartpath = require("smartpath")
export import smartstring = require("smartstring"); export import smartstring = require("smartstring")