update deps
This commit is contained in:
parent
dffc390637
commit
854598ab25
7
.gitignore
vendored
7
.gitignore
vendored
@ -1,12 +1,11 @@
|
||||
node_modules/
|
||||
.settings/
|
||||
.idea/
|
||||
test/temp/
|
||||
test/temp2/
|
||||
coverage/
|
||||
docs/
|
||||
public/
|
||||
pages/
|
||||
|
||||
#npm devug
|
||||
#npm debug
|
||||
npm-debug.log
|
||||
|
||||
ts/*.js
|
||||
|
2
dist/index.js
vendored
2
dist/index.js
vendored
@ -15,4 +15,4 @@ var smartgit_remote_1 = require("./smartgit.remote");
|
||||
exports.remote = smartgit_remote_1.remote;
|
||||
var smartgit_status_1 = require("./smartgit.status");
|
||||
exports.status = smartgit_status_1.status;
|
||||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi90cy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBRUEsNkJBQWtCLGdCQUFnQixDQUFDO0FBQTNCLGlDQUEyQjtBQUNuQywrQkFBb0Isa0JBQWtCLENBQUM7QUFBL0IsdUNBQStCO0FBQ3ZDLGdDQUFxQixtQkFBbUIsQ0FBQztBQUFqQywwQ0FBaUM7QUFDekMsOEJBQW1CLGlCQUFpQixDQUFDO0FBQTdCLG9DQUE2QjtBQUNyQyw4QkFBbUIsaUJBQWlCLENBQUM7QUFBN0Isb0NBQTZCO0FBQ3JDLDhCQUFtQixpQkFBaUIsQ0FBQztBQUE3QixvQ0FBNkI7QUFDckMsZ0NBQXFCLG1CQUFtQixDQUFDO0FBQWpDLDBDQUFpQztBQUN6QyxnQ0FBcUIsbUJBQW1CLENBQUM7QUFBakMsMENBQWlDIn0=
|
||||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi90cy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBRUEsK0NBQW1DO0FBQTNCLDZCQUFBLEdBQUcsQ0FBQTtBQUNYLG1EQUF1QztBQUEvQixpQ0FBQSxLQUFLLENBQUE7QUFDYixxREFBeUM7QUFBakMsbUNBQUEsTUFBTSxDQUFBO0FBQ2QsaURBQXFDO0FBQTdCLCtCQUFBLElBQUksQ0FBQTtBQUNaLGlEQUFxQztBQUE3QiwrQkFBQSxJQUFJLENBQUE7QUFDWixpREFBcUM7QUFBN0IsK0JBQUEsSUFBSSxDQUFBO0FBQ1oscURBQXlDO0FBQWpDLG1DQUFBLE1BQU0sQ0FBQTtBQUNkLHFEQUF5QztBQUFqQyxtQ0FBQSxNQUFNLENBQUEifQ==
|
2
dist/postinstall.js
vendored
2
dist/postinstall.js
vendored
@ -1,3 +1,3 @@
|
||||
"use strict";
|
||||
var shelljs = require("shelljs");
|
||||
let shelljs = require("shelljs");
|
||||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicG9zdGluc3RhbGwuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi90cy9wb3N0aW5zdGFsbC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsSUFBSSxPQUFPLEdBQUcsT0FBTyxDQUFDLFNBQVMsQ0FBQyxDQUFDIn0=
|
14
dist/smartgit.add.js
vendored
14
dist/smartgit.add.js
vendored
@ -1,21 +1,21 @@
|
||||
"use strict";
|
||||
var plugins = require("./smartgit.plugins");
|
||||
var helpers = require("./smartgit.helpers");
|
||||
var addAll = function (dirPathArg) {
|
||||
var done = plugins.Q.defer();
|
||||
const plugins = require("./smartgit.plugins");
|
||||
const helpers = require("./smartgit.helpers");
|
||||
let addAll = (dirPathArg) => {
|
||||
let done = plugins.Q.defer();
|
||||
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);
|
||||
done.reject(err);
|
||||
return done.promise;
|
||||
}
|
||||
;
|
||||
// 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);
|
||||
return done.promise;
|
||||
};
|
||||
exports.add = {
|
||||
addAll: addAll
|
||||
};
|
||||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic21hcnRnaXQuYWRkLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vdHMvc21hcnRnaXQuYWRkLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxJQUFZLE9BQU8sV0FBTSxvQkFBb0IsQ0FBQyxDQUFBO0FBQzlDLElBQVksT0FBTyxXQUFNLG9CQUFvQixDQUFDLENBQUE7QUFFOUMsSUFBSSxNQUFNLEdBQUcsVUFBQyxVQUFpQjtJQUMzQixJQUFJLElBQUksR0FBRyxPQUFPLENBQUMsQ0FBQyxDQUFDLEtBQUssRUFBRSxDQUFDO0lBQzdCLEVBQUUsQ0FBQSxDQUFDLENBQUMsT0FBTyxDQUFDLGNBQWMsQ0FBQyxVQUFVLENBQUMsQ0FBQyxDQUFBLENBQUM7UUFDcEMsSUFBSSxHQUFHLEdBQUcsSUFBSSxLQUFLLENBQUMsNkNBQTZDLENBQUMsQ0FBQztRQUNuRSxPQUFPLENBQUMsU0FBUyxDQUFDLEtBQUssQ0FBQyxHQUFHLENBQUMsT0FBTyxDQUFDLENBQUM7UUFDckMsSUFBSSxDQUFDLE1BQU0sQ0FBQyxHQUFHLENBQUMsQ0FBQztRQUNqQixNQUFNLENBQUMsSUFBSSxDQUFDLE9BQU8sQ0FBQztJQUN4QixDQUFDO0lBQUEsQ0FBQztJQUNGLDhCQUE4QjtJQUM5QixPQUFPL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DQUFDLENBQUM7SUFDdkUsSUFBSSxDQUFDLE9BQU8sQ0FBQyxVQUFVLENBQUMsQ0FBQztJQUN6QixNQUFNLENBQUMsSUFBSSxDQUFDLE9BQU8sQ0FBQztBQUN4QixDQUFDLENBQUM7QUFFUyxRQUFBLEdBQUcsR0FBRztJQUNiLE1BQU0sRUFBRSxNQUFNO0NBQ2pCLENBQUEifQ==
|
10
dist/smartgit.clone.js
vendored
10
dist/smartgit.clone.js
vendored
@ -1,10 +1,10 @@
|
||||
"use strict";
|
||||
var plugins = require("./smartgit.plugins");
|
||||
exports.clone = function (optionsArg) {
|
||||
var done = plugins.Q.defer();
|
||||
const plugins = require("./smartgit.plugins");
|
||||
exports.clone = (optionsArg) => {
|
||||
let done = plugins.Q.defer();
|
||||
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();
|
||||
return done.promise;
|
||||
};
|
||||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic21hcnRnaXQuY2xvbmUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi90cy9zbWFydGdpdC5jbG9uZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsSUFBTyxPQUFPLFdBQVcsb0JBQW9CLENBQUMsQ0FBQztBQUdwQyxhQUFLLEdBQUcsVUFBQyxVQU1uQjtJQUNHLElBQUksSUFBSSxHQUFHLE9BQU8sQ0FBQyxDQUFDLENBQUMsS0FBSyxFQUFFLENBQUM7SUFDN0IsT0FBTyxDQUFDLFNBQVMsQ0FBQyxFQUFFLENBQUMsU0FBUyxDQUFDLFVBQVUsQ0FBQyxFQUFFLENBQUMsQ0FBQztJQUM5QyxPQUFPLENBQUMsT0FBTyxDQUFDLElBQUksQ0FBQyxlQUFhLFVBQVUsQ0FBQyxJQUFJLFNBQUksVUFBVSxDQUFDLEVBQUksQ0FBQyxDQUFDO0lBQ3RFLElBQUksQ0FBQyxPQUFPLEVBQUUsQ0FBQztJQUNmLE1BQU0sQ0FBQyxJQUFJLENBQUMsT0FBTyxDQUFDO0FBQ3hCLENBQUMsQ0FBQyJ9
|
||||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic21hcnRnaXQuY2xvbmUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi90cy9zbWFydGdpdC5jbG9uZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsOENBQStDO0FBR3BDLFFBQUEsS0FBSyxHQUFHLENBQUMsVUFNbkI7SUFDRyxJQUFJLElBQUksR0FBRyxPQUFPLENBQUMsQ0FBQyxDQUFDLEtBQUssRUFBRSxDQUFDO0lBQzdCLE9BQU8sQ0FBQyxTQUFTLENBQUMsRUFBRSxDQUFDLFNBQVMsQ0FBQyxVQUFVLENBQUMsRUFBRSxDQUFDLENBQUM7SUFDOUMsT0FBTyxDQUFDLE9BQU8sQ0FBQyxJQUFJLENBQUMsYUFBYSxVQUFVLENBQUMsSUFBSSxJQUFJLFVBQVUsQ0FBQyxFQUFFLEVBQUUsQ0FBQyxDQUFDO0lBQ3RFLElBQUksQ0FBQyxPQUFPLEVBQUUsQ0FBQztJQUNmLE1BQU0sQ0FBQyxJQUFJLENBQUMsT0FBTyxDQUFDO0FBQ3hCLENBQUMsQ0FBQyJ9
|
14
dist/smartgit.commit.js
vendored
14
dist/smartgit.commit.js
vendored
@ -1,18 +1,18 @@
|
||||
"use strict";
|
||||
var plugins = require("./smartgit.plugins");
|
||||
var helpers = require("./smartgit.helpers");
|
||||
exports.commit = function (dirPathArg, commitMessage) {
|
||||
var done = plugins.Q.defer();
|
||||
const plugins = require("./smartgit.plugins");
|
||||
const helpers = require("./smartgit.helpers");
|
||||
exports.commit = (dirPathArg, commitMessage) => {
|
||||
let done = plugins.Q.defer();
|
||||
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);
|
||||
done.reject(err);
|
||||
return done.promise;
|
||||
}
|
||||
;
|
||||
// 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();
|
||||
return done.promise;
|
||||
};
|
||||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic21hcnRnaXQuY29tbWl0LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vdHMvc21hcnRnaXQuY29tbWl0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxJQUFZLE9BQU8sV0FBTSxvQkFBb0IsQ0FBQyxDQUFBO0FBQzlDLElBQVksT0FBTyxXQUFNLG9CQUFvQixDQUFDLENBQUE7QUFFbkMsY0FBTSxHQUFHLFVBQUMsVUFBaUIsRUFBQyxhQUFvQjtJQUN2RCxJQUFJLElBQUksR0FBRyxPQUFPLENBQUMsQ0FBQyxDQUFDLEtBQUssRUFBRSxDQUFDO0lBQzdCLEVBQUUsQ0FBQSxDQUFDLENBQUMsT0FBTyxDQUFDLGNBQWMsQ0FBQyxVQUFVLENBQUMsQ0FBQyxDQUFBLENBQUM7UUFDcEMsSUFBSSxHQUFHLEdBQUcsSUFBSSxLQUFLLENBQUMsK0NBQStDLENBQUMsQ0FBQztRQUNyRSxPQUFPLENBQUMsU0FBUyxDQUFDLEtBQUssQ0FBQyxHQUFHLENBQUMsT0FBTyxDQUFDLENBQUM7UUFDckMsSUFBSSxDQUFDLE1BQU0sQ0FBQyxHQUFHLENBQUMsQ0FBQztRQUNqQixNQUFNLENBQUM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QUFDLElBQUksQ0FBQyxPQUFPLFVBQVUsc0JBQXNCLGFBQWEsSUFBSSxDQUFDLENBQUM7SUFDL0UsSUFBSSxDQUFDLE9BQU8sRUFBRSxDQUFDO0lBQ2YsTUFBTSxDQUFDLElBQUksQ0FBQyxPQUFPLENBQUM7QUFDeEIsQ0FBQyxDQUFDIn0=
|
6
dist/smartgit.helpers.js
vendored
6
dist/smartgit.helpers.js
vendored
@ -1,6 +1,6 @@
|
||||
"use strict";
|
||||
var plugins = require("./smartgit.plugins");
|
||||
exports.isGitDirectory = function (dirPathArg) {
|
||||
const plugins = require("./smartgit.plugins");
|
||||
exports.isGitDirectory = (dirPathArg) => {
|
||||
try {
|
||||
return plugins.smartfile.fs.isDirectory(plugins.path.join(dirPathArg, ".git"));
|
||||
}
|
||||
@ -8,4 +8,4 @@ exports.isGitDirectory = function (dirPathArg) {
|
||||
return false;
|
||||
}
|
||||
};
|
||||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic21hcnRnaXQuaGVscGVycy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3RzL3NtYXJ0Z2l0LmhlbHBlcnMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLElBQVksT0FBTyxXQUFNLG9CQUFvQixDQUFDLENBQUE7QUFFbkMsc0JBQWMsR0FBRyxVQUFDLFVBQVU7SUFDbkMsSUFBSSxDQUFDO1FBQ0QsTUFBTSxDQUFDLE9BQU8sQ0FBQyxTQUFTLENBQUMsRUFBRSxDQUFDLFdBQVcsQ0FDbkMsT0FBTyxDQUFDLElBQUksQ0FBQyxJQUFJLENBQUMsVUFBVSxFQUFDLE1BQU0sQ0FBQyxDQUN2QyxDQUFDO0lBQ04sQ0FDQTtJQUFBLEtBQUssQ0FBQSxDQUFDLEdBQUcsQ0FBQyxDQUFBLENBQUM7UUFDUCxNQUFNLENBQUMsS0FBSyxDQUFDO0lBQ2pCLENBQUM7QUFDTCxDQUFDLENBQUEifQ==
|
||||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic21hcnRnaXQuaGVscGVycy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3RzL3NtYXJ0Z2l0LmhlbHBlcnMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLDhDQUE4QztBQUVuQyxRQUFBLGNBQWMsR0FBRyxDQUFDLFVBQVU7SUFDbkMsSUFBSSxDQUFDO1FBQ0QsTUFBTSxDQUFDLE9BQU8sQ0FBQyxTQUFTLENBQUMsRUFBRSxDQUFDLFdBQVcsQ0FDbkMsT0FBTyxDQUFDLElBQUksQ0FBQyxJQUFJLENBQUMsVUFBVSxFQUFDLE1BQU0sQ0FBQyxDQUN2QyxDQUFDO0lBQ04sQ0FDQTtJQUFBLEtBQUssQ0FBQSxDQUFDLEdBQUcsQ0FBQyxDQUFBLENBQUM7UUFDUCxNQUFNLENBQUMsS0FBSyxDQUFDO0lBQ2pCLENBQUM7QUFDTCxDQUFDLENBQUEifQ==
|
12
dist/smartgit.init.js
vendored
12
dist/smartgit.init.js
vendored
@ -1,17 +1,17 @@
|
||||
"use strict";
|
||||
var plugins = require("./smartgit.plugins");
|
||||
exports.init = function (dirPathArg) {
|
||||
var done = plugins.Q.defer();
|
||||
const plugins = require("./smartgit.plugins");
|
||||
exports.init = (dirPathArg) => {
|
||||
let done = plugins.Q.defer();
|
||||
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);
|
||||
done.reject("err");
|
||||
return done.promise;
|
||||
}
|
||||
;
|
||||
plugins.smartfile.fs.ensureDir(dirPathArg);
|
||||
plugins.shelljs.exec("(cd " + dirPathArg + " && git init)");
|
||||
plugins.shelljs.exec(`(cd ${dirPathArg} && git init)`);
|
||||
done.resolve(dirPathArg);
|
||||
return done.promise;
|
||||
};
|
||||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic21hcnRnaXQuaW5pdC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3RzL3NtYXJ0Z2l0LmluaXQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLElBQU8sT0FBTyxXQUFXLG9CQUFvQixDQUFDLENBQUM7QUFFcEMsWUFBSSxHQUFHLFVBQUMsVUFBaUI7SUFDaEMsSUFBSSxJQUFJLEdBQUcsT0FBTyxDQUFDLENBQUMsQ0FBQyxLQUFLLEVBQUUsQ0FBQztJQUM3QixFQUFFLENBQUMsQ0FBQyxPQUFPLFVBQVUsSUFBSSxXQUFXLENBQUMsQ0FBQyxDQUFDO1FBQ25DLElBQUksR0FBRyxHQUFHLElBQUksS0FBSyxDQUFDLG9EQUFvRCxDQUFDLENBQUE7UUFDekUsT0FBTyxDQUFDLFNBQVMsQ0FBQyxLQUFLLENBQUMsR0FBRyxDQUFDLE9BQU8sQ0FBQyxDQUFDO1FBQ3JDLElBQUksQ0FBQyxNQUFNLENBQUMsS0FBSyxDQUFDLENBQUM7UUFDbkIsTUFBTSxDQUFDLElBQUksQ0FBQyxPQUFPLENBQUM7SUFDeEIsQ0FBQztJQUFBLENBQUM7SUFDRixPQUFPLENBQUMsU0FBUyxDQUFDLEVBQUUsQ0FBQyxTQUFTLENBQUMsVUFBVSxDQUFDLENBQUM7SUFDM0MsT0FBTyxDQUFDLE9BQU8sQ0FBQyxJQUFJLENBQUMsU0FBTyxVQUFVLGtCQUFlLENBQUMsQ0FBQztJQUN2RCxJQUFJLENBQUMsT0FBTyxDQUFDLFVBQVUsQ0FBQyxDQUFDO0lBQ3pCLE1BQU0sQ0FBQyxJQUFJLENBQUMsT0FBTyxDQUFDO0FBQ3hCLENBQUMsQ0FBQyJ9
|
||||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic21hcnRnaXQuaW5pdC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3RzL3NtYXJ0Z2l0LmluaXQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLDhDQUErQztBQUVwQyxRQUFBLElBQUksR0FBRyxDQUFDLFVBQWlCO0lBQ2hDLElBQUksSUFBSSxHQUFHLE9BQU8sQ0FBQyxDQUFDLENBQUMsS0FBSyxFQUFFLENBQUM7SUFDN0IsRUFBRSxDQUFDLENBQUMsT0FBTyxVQUFVLElBQUksV0FBVyxDQUFDLENBQUMsQ0FBQztRQUNuQyxJQUFJLEdBQUcsR0FBRyxJQUFJLEtBQUssQ0FBQyxvREFBb0QsQ0FBQyxDQUFBO1FBQ3pFLE9BQU8sQ0FBQyxTQUFTLENBQUMsS0FBSyxDQUFDLEdBQUcsQ0FBQyxPQUFPLENBQUMsQ0FBQztRQUNyQyxJQUFJLENBQUMsTUFBTSxDQUFDLEtBQUssQ0FBQyxDQUFDO1FBQ25CLE1BQU0sQ0FBQyxJQUFJLENBQUMsT0FBTyxDQUFDO0lBQ3hCLENBQUM7SUFBQSxDQUFDO0lBQ0YsT0FBTyxDQUFDLFNBQVMsQ0FBQyxFQUFFLENBQUMsU0FBUyxDQUFDLFVBQVUsQ0FBQyxDQUFDO0lBQzNDLE9BQU8sQ0FBQyxPQUFPLENBQUMsSUFBSSxDQUFDLE9BQU8sVUFBVSxlQUFlLENBQUMsQ0FBQztJQUN2RCxJQUFJLENBQUMsT0FBTyxDQUFDLFVBQVUsQ0FBQyxDQUFDO0lBQ3pCLE1BQU0sQ0FBQyxJQUFJLENBQUMsT0FBTyxDQUFDO0FBQ3hCLENBQUMsQ0FBQyJ9
|
2
dist/smartgit.plugins.d.ts
vendored
2
dist/smartgit.plugins.d.ts
vendored
@ -2,7 +2,7 @@ import "typings-global";
|
||||
export import path = require("path");
|
||||
export import beautylog = require("beautylog");
|
||||
export import Q = require("q");
|
||||
export declare let shelljs: any;
|
||||
export import shelljs = require("shelljs");
|
||||
export import smartfile = require("smartfile");
|
||||
export import smartpath = require("smartpath");
|
||||
export import smartstring = require("smartstring");
|
||||
|
2
dist/smartgit.plugins.js
vendored
2
dist/smartgit.plugins.js
vendored
@ -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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic21hcnRnaXQucGx1Z2lucy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3RzL3NtYXJ0Z2l0LnBsdWdpbnMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLFFBQU8sZ0JBQWdCLENBQUMsQ0FBQTtBQUNWLFlBQUksV0FBVyxNQUFNLENBQUMsQ0FBQztBQUN2QixpQkFBUyxXQUFXLFdBQVcsQ0FBQyxDQUFDO0FBQ2pDLFNBQUMsV0FBVyxHQUFHLENBQUMsQ0FBQztBQUNwQixlQUFPLEdBQUcsT0FBTyxDQUFDLFNBQVMsQ0FBQyxDQUFDO0FBQzFCLGlCQUFTLFdBQVcsV0FBVyxDQUFDLENBQUM7QUFDakMsaUJBQVMsV0FBVyxXQUFXLENBQUMsQ0FBQztBQUNqQyxtQkFBVyxXQUFXLGFBQWEsQ0FBQyxDQUFDIn0=
|
||||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic21hcnRnaXQucGx1Z2lucy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3RzL3NtYXJ0Z2l0LnBsdWdpbnMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLDBCQUF1QjtBQUN2QiwrQkFBb0M7QUFDcEMseUNBQThDO0FBQzlDLHlCQUE4QjtBQUM5QixxQ0FBMEM7QUFDMUMseUNBQThDO0FBQzlDLHlDQUE4QztBQUM5Qyw2Q0FBa0QifQ==
|
16
dist/smartgit.pull.js
vendored
16
dist/smartgit.pull.js
vendored
@ -1,20 +1,18 @@
|
||||
"use strict";
|
||||
var plugins = require("./smartgit.plugins");
|
||||
var helpers = require("./smartgit.helpers");
|
||||
exports.pull = function (dirPathArg, sourceArg, branchArg) {
|
||||
if (sourceArg === void 0) { sourceArg = ""; }
|
||||
if (branchArg === void 0) { branchArg = ""; }
|
||||
var done = plugins.Q.defer();
|
||||
const plugins = require("./smartgit.plugins");
|
||||
const helpers = require("./smartgit.helpers");
|
||||
exports.pull = (dirPathArg, sourceArg = "", branchArg = "") => {
|
||||
let done = plugins.Q.defer();
|
||||
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);
|
||||
done.reject(err);
|
||||
return done.promise;
|
||||
}
|
||||
;
|
||||
// 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);
|
||||
return done.promise;
|
||||
};
|
||||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic21hcnRnaXQucHVsbC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3RzL3NtYXJ0Z2l0LnB1bGwudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLElBQVksT0FBTyxXQUFNLG9CQUFvQixDQUFDLENBQUE7QUFDOUMsSUFBWSxPQUFPLFdBQU0sb0JBQW9CLENBQUMsQ0FBQTtBQUVuQyxZQUFJLEdBQUcsVUFBQyxVQUFpQixFQ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LEdBQUcsQ0FBQyxVQUFpQixFQUFDLFlBQW1CLEVBQUUsRUFBRSxZQUFtQixFQUFFO0lBQzdFLElBQUksSUFBSSxHQUFHLE9BQU8sQ0FBQyxDQUFDLENBQUMsS0FBSyxFQUFFLENBQUM7SUFDN0IsRUFBRSxDQUFBLENBQUMsQ0FBQyxPQUFPLENBQUMsY0FBYyxDQUFDLFVBQVUsQ0FBQyxDQUFDLENBQUEsQ0FBQztRQUNwQyxJQUFJLEdBQUcsR0FBRyxJQUFJLEtBQUssQ0FBQyw2Q0FBNkMsQ0FBQyxDQUFDO1FBQ25FLE9BQU8sQ0FBQyxTQUFTLENBQUMsS0FBSyxDQUFDLEdBQUcsQ0FBQyxPQUFPLENBQUMsQ0FBQztRQUNyQyxJQUFJLENBQUMsTUFBTSxDQUFDLEdBQUcsQ0FBQyxDQUFDO1FBQ2pCLE1BQU0sQ0FBQyxJQUFJLENBQUMsT0FBTyxDQUFDO0lBQ3hCLENBQUM7SUFBQSxDQUFDO0lBQ0Ysb0NBQW9DO0lBQ3BDLE9BQU8sQ0FBQyxPQUFPLENBQUMsSUFBSSxDQUFDLE9BQU8sVUFBVSxnQkFBZ0IsU0FBUyxJQUFJLFNBQVMsR0FBRyxDQUFDLENBQUM7SUFDakYsSUFBSSxDQUFDLE9BQU8sQ0FBQyxVQUFVLENBQUMsQ0FBQztJQUN6QixNQUFNLENBQUMsSUFBSSxDQUFDLE9BQU8sQ0FBQztBQUN4QixDQUFDLENBQUMifQ==
|
16
dist/smartgit.push.js
vendored
16
dist/smartgit.push.js
vendored
@ -1,19 +1,17 @@
|
||||
"use strict";
|
||||
var plugins = require("./smartgit.plugins");
|
||||
var helpers = require("./smartgit.helpers");
|
||||
exports.push = function (dirPathArg, remoteNameArg, remoteBranchArg) {
|
||||
if (remoteNameArg === void 0) { remoteNameArg = ""; }
|
||||
if (remoteBranchArg === void 0) { remoteBranchArg = ""; }
|
||||
var done = plugins.Q.defer();
|
||||
const plugins = require("./smartgit.plugins");
|
||||
const helpers = require("./smartgit.helpers");
|
||||
exports.push = (dirPathArg, remoteNameArg = "", remoteBranchArg = "") => {
|
||||
let done = plugins.Q.defer();
|
||||
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);
|
||||
done.reject(err);
|
||||
return done.promise;
|
||||
}
|
||||
// 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();
|
||||
return done.promise;
|
||||
};
|
||||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic21hcnRnaXQucHVzaC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3RzL3NtYXJ0Z2l0LnB1c2gudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLElBQVksT0FBTyxXQUFNLG9CQUFvQixDQUFDLENBQUE7QUFDOUMsSUFBWSxPQUFPLFdBQU0sb0JBQW9CLENBQUMsQ0FBQTtBQUVuQyxZQUFJLEdBQUcsVUFBQyxVQUFpQixFQUFFLGFBQXlCLEVBQUUsZUFBMkI7SUFBdEQsNkJBQXlCLEdBQXpCLGtCQUF5QjtJQUFFLCtCQUEyQixHQUEzQixvQkFBMkI7SUFDeEYsSUFBSSxJQUFJLEdBQUcsT0FBTyxDQUFDLENBQUMsQ0FBQyxLQUFLLEVBQUUsQ0FBQztJQUM3QixFQUFFLENBQUEsQ0FBQyxDQUFDLE9BQU8sQ0FBQyxjQUFjLENBQUMsVUFBVSxDQUFDLENBQUMsQ0FBQSxDQUFDO1FBQ3BDLElBQUksR0FBRyxHQUFHLElBQUksS0FBSyxDQUFDLDZDQUE2QyxDQUFDLENBQU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LE9BQU8sQ0FBQyxDQUFDO1FBQ3JDLElBQUksQ0FBQyxNQUFNLENBQUMsR0FBRyxDQUFDLENBQUM7UUFDakIsTUFBTSxDQUFDLElBQUksQ0FBQyxPQUFPLENBQUM7SUFDeEIsQ0FBQztJQUNELHVDQUF1QztJQUN2QyxPQUFPLENBQUMsT0FBTyxDQUFDLElBQUksQ0FBQyxPQUFPLFVBQVUsZ0JBQWdCLGFBQWEsSUFBSSxlQUFlLEdBQUcsQ0FBQyxDQUFDO0lBQzNGLElBQUksQ0FBQyxPQUFPLEVBQUUsQ0FBQztJQUNmLE1BQU0sQ0FBQyxJQUFJLENBQUMsT0FBTyxDQUFDO0FBQ3hCLENBQUMsQ0FBQyJ9
|
36
dist/smartgit.remote.js
vendored
36
dist/smartgit.remote.js
vendored
@ -1,56 +1,56 @@
|
||||
"use strict";
|
||||
var plugins = require("./smartgit.plugins");
|
||||
var helpers = require("./smartgit.helpers");
|
||||
var add = function (dirPathArg, remoteNameArg, remoteLinkArg) {
|
||||
var done = plugins.Q.defer();
|
||||
const plugins = require("./smartgit.plugins");
|
||||
const helpers = require("./smartgit.helpers");
|
||||
let add = (dirPathArg, remoteNameArg, remoteLinkArg) => {
|
||||
let done = plugins.Q.defer();
|
||||
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);
|
||||
done.reject(err);
|
||||
return done.promise;
|
||||
}
|
||||
;
|
||||
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);
|
||||
done.reject(err);
|
||||
return done.promise;
|
||||
}
|
||||
;
|
||||
if (!remoteLinkArg) {
|
||||
var err = new Error();
|
||||
let err = new Error();
|
||||
plugins.beautylog.error(err.message);
|
||||
done.reject(err);
|
||||
return done.promise;
|
||||
}
|
||||
;
|
||||
// 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);
|
||||
done.resolve();
|
||||
return done.promise;
|
||||
};
|
||||
var check = function (dirPathArg, remoteNameArg, remoteLinkArg) {
|
||||
let check = (dirPathArg, remoteNameArg, remoteLinkArg) => {
|
||||
};
|
||||
var list = function (dirPathArg) {
|
||||
var done = plugins.Q.defer();
|
||||
var remotes = {};
|
||||
let list = (dirPathArg) => {
|
||||
let done = plugins.Q.defer();
|
||||
let remotes = {};
|
||||
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);
|
||||
done.reject(err);
|
||||
return done.promise;
|
||||
}
|
||||
;
|
||||
// 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);
|
||||
return done.promise;
|
||||
};
|
||||
var remove = function (dirPathArg) {
|
||||
var done = plugins.Q.defer();
|
||||
let remove = (dirPathArg) => {
|
||||
let done = plugins.Q.defer();
|
||||
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);
|
||||
done.reject(err);
|
||||
return done.promise;
|
||||
@ -63,4 +63,4 @@ exports.remote = {
|
||||
list: list,
|
||||
remove: remove
|
||||
};
|
||||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic21hcnRnaXQucmVtb3RlLmpzIiwic291cmNlUm9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EVBQUUsR0FBRztJQUNSLElBQUksRUFBRSxJQUFJO0lBQ1YsTUFBTSxFQUFFLE1BQU07Q0FDakIsQ0FBQSJ9
|
14
dist/smartgit.status.js
vendored
14
dist/smartgit.status.js
vendored
@ -1,18 +1,18 @@
|
||||
"use strict";
|
||||
var plugins = require("./smartgit.plugins");
|
||||
var helpers = require("./smartgit.helpers");
|
||||
exports.status = function (dirPathArg) {
|
||||
var done = plugins.Q.defer();
|
||||
const plugins = require("./smartgit.plugins");
|
||||
const helpers = require("./smartgit.helpers");
|
||||
exports.status = (dirPathArg) => {
|
||||
let done = plugins.Q.defer();
|
||||
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);
|
||||
done.reject(err);
|
||||
return done.promise;
|
||||
}
|
||||
;
|
||||
// if everything seems allright proceed
|
||||
plugins.shelljs.exec("(cd " + dirPathArg + " && git status)");
|
||||
plugins.shelljs.exec(`(cd ${dirPathArg} && git status)`);
|
||||
done.resolve();
|
||||
return done.promise;
|
||||
};
|
||||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic21hcnRnaXQuc3RhdHVzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vdHMvc21hcnRnaXQuc3RhdHVzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxJQUFZLE9BQU8sV0FBTSxvQkFBb0IsQ0FBQyxDQUFBO0FBQzlDLElBQVksT0FBTyxXQUFNLG9CQUFvQixDQUFDLENBQUE7QUFFbkMsY0FBTSxHQUFHLFVBQUMsVUFBaUI7SUFDbEMsSUFBSSxJQUFJLEdBQUcsT0FBTyxDQUFDLENBQUMsQ0FBQyxLQUFLLEVBQUUsQ0FBQztJQUM3QixFQUFFLENBQUEsQ0FBQyxDQUFDLE9BQU8sQ0FBQyxjQUF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QUFDLFNBQVMsQ0FBQyxLQUFLLENBQUMsR0FBRyxDQUFDLE9BQU8sQ0FBQyxDQUFDO1FBQ3JDLElBQUksQ0FBQyxNQUFNLENBQUMsR0FBRyxDQUFDLENBQUM7UUFDakIsTUFBTSxDQUFDLElBQUksQ0FBQyxPQUFPLENBQUM7SUFDeEIsQ0FBQztJQUFBLENBQUM7SUFDRix1Q0FBdUM7SUFDdkMsT0FBTyxDQUFDLE9BQU8sQ0FBQyxJQUFJLENBQUMsT0FBTyxVQUFVLGlCQUFpQixDQUFDLENBQUM7SUFDekQsSUFBSSxDQUFDLE9BQU8sRUFBRSxDQUFDO0lBQ2YsTUFBTSxDQUFDLElBQUksQ0FBQyxPQUFPLENBQUM7QUFDeEIsQ0FBQyxDQUFDIn0=
|
20
package.json
20
package.json
@ -26,17 +26,19 @@
|
||||
"homepage": "https://gitlab.com/pushrocks/smartgit",
|
||||
"dependencies": {
|
||||
"@types/minimatch": "*",
|
||||
"beautylog": "^5.0.13",
|
||||
"@types/shelljs": "^0.3.32",
|
||||
"beautylog": "^6.0.0",
|
||||
"q": "^1.4.1",
|
||||
"shelljs": "^0.7.0",
|
||||
"smartfile": "^4.0.10",
|
||||
"smartpath": "^3.2.2",
|
||||
"smartstring": "^2.0.10",
|
||||
"typings-global": "^1.0.5"
|
||||
"shelljs": "^0.7.5",
|
||||
"smartfile": "^4.1.0",
|
||||
"smartpath": "^3.2.5",
|
||||
"smartstring": "^2.0.22",
|
||||
"typings-global": "^1.0.14"
|
||||
},
|
||||
"devDependencies": {
|
||||
"npmts-g": "^5.2.6",
|
||||
"should": "^9.0.2",
|
||||
"typings-test": "^1.0.1"
|
||||
"@types/should": "^8.1.30",
|
||||
"npmts-g": "^5.2.8",
|
||||
"should": "^11.1.1",
|
||||
"typings-test": "^1.0.3"
|
||||
}
|
||||
}
|
||||
|
1
test/test.d.ts
vendored
1
test/test.d.ts
vendored
@ -1,2 +1 @@
|
||||
import "typings-test";
|
||||
import "should";
|
||||
|
13
test/test.js
13
test/test.js
@ -1,10 +1,9 @@
|
||||
"use strict";
|
||||
require("typings-test");
|
||||
var shelljs = require("shelljs");
|
||||
var path = require("path");
|
||||
require("should");
|
||||
var smartgit = require("../dist/index");
|
||||
var paths = {
|
||||
let shelljs = require("shelljs");
|
||||
const path = require("path");
|
||||
const smartgit = require("../dist/index");
|
||||
let paths = {
|
||||
temp: path.resolve("./test/temp/"),
|
||||
temp2: path.resolve("./test/temp2/"),
|
||||
temp3: path.resolve("./test/temp3"),
|
||||
@ -37,7 +36,7 @@ describe("smartgit", function () {
|
||||
smartgit.add.addAll(paths.noGit);
|
||||
});
|
||||
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);
|
||||
});
|
||||
});
|
||||
@ -90,4 +89,4 @@ describe("smartgit", function () {
|
||||
});
|
||||
});
|
||||
});
|
||||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGVzdC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbInRlc3QudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLFFBQU8sY0FBYyxDQUFDLENBQUE7QUFFdEIsSUFBSSxPQUFPLEdBQUcsT0FBTyxDQUFDLFNBQVMsQ0FBQyxDQUFDO0FBQ2pDLElBQU8sSUFBSSxXQUFXLE1BQU0sQ0FBQyxDQUFDO0FBQzlCLFFBQU8sUUFFUCxDQUFDLENBRmM7QUFFZixJQUFPLFFBQVEsV0FBVyxlQUFlLENBQUMsQ0FBQztBQUMzQyxJQUFJLEtBQUssR0FBRztJQUNSLElBQUksRUFBRSxJQUFJLENBQUMsT0FBTyxDQUFDLGNBQWMsQ0FBQztJQUNsQyxLQUFLLEVBQUUsSUFBSSxDQUFDLE9BQU8sQ0FBQyxlQUFlLENBQUM7SU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yxFQUFDO1lBQ2pDLFFBQVEsQ0FBQyxNQUFNLENBQUMsR0FBRyxDQUFDLEtBQUssQ0FBQyxJQUFJLEVBQUMsUUFBUSxFQUFDLElBQUksQ0FBQyxDQUFDO1FBQ2xELENBQUMsQ0FBQyxDQUFDO1FBQ0gsRUFBRSxDQUFDLHFCQUFxQixFQUFDO1lBQ3JCLFFBQVEsQ0FBQyxNQUFNLENBQUMsR0FBRyxDQUFDLEtBQUssQ0FBQyxJQUFJLEVBQUMsU0FBUyxFQUFDLHVDQUF1QyxDQUFDLENBQUM7UUFDdEYsQ0FBQyxDQUFDLENBQUM7SUFDUCxDQUFDLENBQUMsQ0FBQztBQUNQLENBQUMsQ0FBQyxDQUFDIn0=
|
@ -1,8 +1,8 @@
|
||||
import "typings-test";
|
||||
import "typings-test"
|
||||
import beautylog = require("beautylog");
|
||||
let shelljs = require("shelljs");
|
||||
import path = require("path");
|
||||
import "should"
|
||||
import * as should from "should"
|
||||
|
||||
import smartgit = require("../dist/index");
|
||||
let paths = {
|
||||
|
@ -1,8 +1,8 @@
|
||||
import "typings-global";
|
||||
export import path = require("path");
|
||||
export import beautylog = require("beautylog");
|
||||
export import Q = require("q");
|
||||
export let shelljs = require("shelljs");
|
||||
export import smartfile = require("smartfile");
|
||||
export import smartpath = require("smartpath");
|
||||
export import smartstring = require("smartstring");
|
||||
import "typings-global"
|
||||
export import path = require("path")
|
||||
export import beautylog = require("beautylog")
|
||||
export import Q = require("q")
|
||||
export import shelljs = require("shelljs")
|
||||
export import smartfile = require("smartfile")
|
||||
export import smartpath = require("smartpath")
|
||||
export import smartstring = require("smartstring")
|
||||
|
Loading…
Reference in New Issue
Block a user