From 5d00afcdf0dace3042ab064085040bb1f1fd1ef2 Mon Sep 17 00:00:00 2001 From: Phil Kunz Date: Sun, 3 Jul 2016 04:37:03 +0200 Subject: [PATCH] new implementation --- dist/index.d.ts | 2 ++ dist/index.js | 6 +++++- dist/smartgit.add.d.ts | 5 +---- dist/smartgit.add.js | 17 +++++++++++++++-- dist/smartgit.commit.js | 5 +++-- dist/smartgit.interfaces.d.ts | 0 dist/smartgit.interfaces.js | 1 - dist/smartgit.pull.js | 2 +- dist/smartgit.remote.d.ts | 4 ++++ dist/smartgit.remote.js | 13 ++++++++++++- ts/index.ts | 2 ++ ts/smartgit.add.ts | 16 +++++++++++++--- ts/smartgit.commit.ts | 2 +- ts/smartgit.interfaces.ts | 0 ts/smartgit.pull.ts | 1 + ts/smartgit.remote.ts | 16 ++++++++++++++++ 16 files changed, 76 insertions(+), 16 deletions(-) delete mode 100644 dist/smartgit.interfaces.d.ts delete mode 100644 dist/smartgit.interfaces.js delete mode 100644 ts/smartgit.interfaces.ts diff --git a/dist/index.d.ts b/dist/index.d.ts index 751965a..7e33e14 100644 --- a/dist/index.d.ts +++ b/dist/index.d.ts @@ -1,5 +1,7 @@ +export { add } from "./smartgit.add"; export { clone } from "./smartgit.clone"; export { commit } from "./smartgit.commit"; export { init } from "./smartgit.init"; export { pull } from "./smartgit.pull"; export { push } from "./smartgit.push"; +export { remote } from "./smartgit.remote"; diff --git a/dist/index.js b/dist/index.js index 8cafcf0..4f28a4f 100644 --- a/dist/index.js +++ b/dist/index.js @@ -1,4 +1,6 @@ "use strict"; +var smartgit_add_1 = require("./smartgit.add"); +exports.add = smartgit_add_1.add; var smartgit_clone_1 = require("./smartgit.clone"); exports.clone = smartgit_clone_1.clone; var smartgit_commit_1 = require("./smartgit.commit"); @@ -9,4 +11,6 @@ var smartgit_pull_1 = require("./smartgit.pull"); exports.pull = smartgit_pull_1.pull; var smartgit_push_1 = require("./smartgit.push"); exports.push = smartgit_push_1.push; -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi90cy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBRUEsK0JBQW9CLGtCQUFrQixDQUFDO0FBQS9CLHVDQUErQjtBQUN2QyxnQ0FBcUIsbUJBQW1CLENBQUM7QUFBakMsMENBQWlDO0FBQ3pDLDhCQUFtQixpQkFBaUIsQ0FBQztBQUE3QixvQ0FBNkI7QUFDckMsOEJBQW1CLGlCQUFpQixDQUFDO0FBQTdCLG9DQUE2QjtBQUNyQyw4QkFBbUIsaUJBQWlCLENBQUM7QUFBN0Isb0NBQTZCIn0= \ No newline at end of file +var smartgit_remote_1 = require("./smartgit.remote"); +exports.remote = smartgit_remote_1.remote; +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi90cy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBRUEsNkJBQWtCLGdCQUFnQixDQUFDO0FBQTNCLGlDQUEyQjtBQUNuQywrQkFBb0Isa0JBQWtCLENBQUM7QUFBL0IsdUNBQStCO0FBQ3ZDLGdDQUFxQixtQkFBbUIsQ0FBQztBQUFqQywwQ0FBaUM7QUFDekMsOEJBQW1CLGlCQUFpQixDQUFDO0FBQTdCLG9DQUE2QjtBQUNyQyw4QkFBbUIsaUJBQWlCLENBQUM7QUFBN0Isb0NBQTZCO0FBQ3JDLDhCQUFtQixpQkFBaUIsQ0FBQztBQUE3QixvQ0FBNkI7QUFDckMsZ0NBQXFCLG1CQUFtQixDQUFDO0FBQWpDLDBDQUFpQyJ9 \ No newline at end of file diff --git a/dist/smartgit.add.d.ts b/dist/smartgit.add.d.ts index dbbb4e0..b5a1d26 100644 --- a/dist/smartgit.add.d.ts +++ b/dist/smartgit.add.d.ts @@ -1,4 +1 @@ -export declare let pull: (optionsArg: { - path: string; - ref?: string; -}) => void; +export declare let add: (dirPathArg: string) => any; diff --git a/dist/smartgit.add.js b/dist/smartgit.add.js index 1339160..95f25a4 100644 --- a/dist/smartgit.add.js +++ b/dist/smartgit.add.js @@ -1,4 +1,17 @@ "use strict"; -exports.pull = function (optionsArg) { +var plugins = require("./smartgit.plugins"); +var helpers = require("./smartgit.helpers"); +exports.add = function (dirPathArg) { + var done = plugins.Q.defer(); + if (!helpers.isGitDirectory(dirPathArg)) { + plugins.beautylog.error("smartgit.add expects a valif git directory!"); + done.reject(); + return done.promise; + } + ; + // if everything is ok proceed + plugins.shelljs.exec(""); + done.resolve(dirPathArg); + return done.promise; }; -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic21hcnRnaXQuYWRkLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vdHMvc21hcnRnaXQuYWRkLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFFVyxZQUFJLEdBQUcsVUFBQyxVQUFvQztBQUV2RCxDQUFDLENBQUEifQ== \ No newline at end of file +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic21hcnRnaXQuYWRkLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vdHMvc21hcnRnaXQuYWRkLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxJQUFZLE9BQU8sV0FBTSxvQkFBb0IsQ0FBQyxDQUFBO0FBQzlDLElBQVksT0FBTyxXQUFNLG9CQUFvQixDQUFDLENBQUE7QUFFbkMsV0FBRyxHQUFHLFVBQUMsVUFBaUI7SUFDL0IsSUFBSSxJQUFJLEdBQUcsT0FBTyxDQUFDLENBQUMsQ0FBQyxLQUFLLEVBQUUsQ0FBQztJQUM3QixFQUFFLENBQUEsQ0FBQyxDQUFDLE9BQU8sQ0FBQyxjQUFjLENBQUMsVUFBVSxDQUFDLENBQUMsQ0FBQSxDQUFDO1FBQ3BDLE9BQU8sQ0FBQyxTQUFTLENBQUMsS0FBSyxDQUFDLDZDQUE2QyxDQUFDLENBQUM7UUFDdkUsSUFBSSxDQUFDLE1BQU0sRUFBRSxDQUFDO1FBQ2QsTUFBTSxDQUFDLElBQUksQ0FBQyxPQUFPLENBQUM7SUFDeEIsQ0FBQztJQUFBLENBQUM7SUFDRiw4QkFBOEI7SUFDOUIsT0FBTyxDQUFDLE9BQU8sQ0FBQyxJQUFJLENBQUMsRUFBRSxDQUFDLENBQUM7SUFDekIsSUFBSSxDQUFDLE9BQU8sQ0FBQyxVQUFVLENBQUMsQ0FBQztJQUN6QixNQUFNLENBQUMsSUFBSSxDQUFDLE9BQU8sQ0FBQztBQUN4QixDQUFDLENBQUMifQ== \ No newline at end of file diff --git a/dist/smartgit.commit.js b/dist/smartgit.commit.js index 2e8cc4d..6118172 100644 --- a/dist/smartgit.commit.js +++ b/dist/smartgit.commit.js @@ -1,8 +1,9 @@ "use strict"; var plugins = require("./smartgit.plugins"); +var helpers = require("./smartgit.helpers"); exports.commit = function (dirPathArg, commitMessage) { var done = plugins.Q.defer(); - if (!plugins.smartfile.fs.isDirectory(plugins.path.join(dirPathArg, ".git"))) { + if (!helpers.isGitDirectory(dirPathArg)) { plugins.beautylog.error("smartgit.commit expects a valid git directory"); done.reject(); return done.promise; @@ -13,4 +14,4 @@ exports.commit = function (dirPathArg, commitMessage) { done.resolve(); return done.promise; }; -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic21hcnRnaXQuY29tbWl0LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vdHMvc21hcnRnaXQuY29tbWl0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxJQUFZLE9BQU8sV0FBTSxvQkFBb0IsQ0FBQyxDQUFBO0FBR25DLGNBQU0sR0FBR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UFPLENBQUMsQ0FBQyxDQUFDLEtBQUssRUFBRSxDQUFDO0lBQzdCLEVBQUUsQ0FBQSxDQUFDLENBQUMsT0FBTyxDQUFDLGNBQWMsQ0FBQyxVQUFVLENBQUMsQ0FBQyxDQUFBLENBQUM7UUFDcEMsT0FBTyxDQUFDLFNBQVMsQ0FBQyxLQUFLLENBQUMsK0NBQStDLENBQUMsQ0FBQztRQUN6RSxJQUFJLENBQUMsTUFBTSxFQUFFLENBQUM7UUFDZCxNQUFNLENBQUMsSUFBSSxDQUFDLE9BQU8sQ0FBQztJQUN4QixDQUFDO0lBQUEsQ0FBQztJQUNGLHFDQUFxQztJQUNyQyxPQUFPLENBQUMsT0FBTyxDQUFDLElBQUksQ0FBQyxxQkFBa0IsYUFBYSxPQUFHLENBQUMsQ0FBQztJQUN6RCxJQUFJLENBQUMsT0FBTyxFQUFFLENBQUM7SUFDZixNQUFNLENBQUMsSUFBSSxDQUFDLE9BQU8sQ0FBQztBQUN4QixDQUFDLENBQUMifQ== \ No newline at end of file diff --git a/dist/smartgit.interfaces.d.ts b/dist/smartgit.interfaces.d.ts deleted file mode 100644 index e69de29..0000000 diff --git a/dist/smartgit.interfaces.js b/dist/smartgit.interfaces.js deleted file mode 100644 index 78f8f9e..0000000 --- a/dist/smartgit.interfaces.js +++ /dev/null @@ -1 +0,0 @@ -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic21hcnRnaXQuaW50ZXJmYWNlcy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3RzL3NtYXJ0Z2l0LmludGVyZmFjZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiJ9 \ No newline at end of file diff --git a/dist/smartgit.pull.js b/dist/smartgit.pull.js index f9decad..89f8c08 100644 --- a/dist/smartgit.pull.js +++ b/dist/smartgit.pull.js @@ -15,4 +15,4 @@ exports.pull = function (dirPathArg, sourceArg, branchArg) { done.resolve(dirPathArg); return done.promise; }; -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic21hcnRnaXQucHVsbC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3RzL3NtYXJ0Z2l0LnB1bGwudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLElBQVksT0FBTyxXQUFNLG9CQUFvQixDQUFDLENBQUE7QUFDOUMsSUFBWSxPQUFPLFdBQU0sb0JBQW9CLENBQUMsQ0FBQTtBQUNuQyxZQUFJLEdBQUcsVUFBQyxVQUFpQixFQUFDLFNBQXFCLEVBQUUsU0FBcUI7SUFBNUMseUJBQXFCLEdBQXJCLGNBQXFCO0lBQUUseUJBQXFCLEdBQXJCLGNBQXFCO0lBQzdFLElBQUksSUFBSSxHQUFHLE9BQU8sQ0FBQyxDQUFDLENBQUMsS0FBSyxFQUFFLENBQUM7SUFDN0IsRUFBRSxDQUFBLENBQUMsQ0FBQyxPQUFPLENBQUMsY0FBYyxDQUFDLFVBQVUsQ0FBQyxDQUFDLENBQUEsQ0FBQztRQUNwQyxPQUFPLENBQUMsU0FBUyxDQUFDLEtBQUssQ0FBQyw2Q0FBNkMsQ0FBQyxDQUFDO1FBQ3ZFLElBQUksQ0FBQyxNQUFNLEVBQUUsQ0FBQztRQUNkLE1BQU0sQ0FBQyxJQUFJLENBQUMsTUFBTSxDQUFDO0lBQ3ZCLENBQUM7SUFBQSxDQUFDO0lBQ0YsT0FBTyxDQUFDLE9BQU8sQ0FBQyxJQUFJLENBQUMsU0FBTyxVQUFVLHFCQUFnQixTQUFTLFNBQUksU0FBUyxNQUFHLENBQUMsQ0FBQztJQUNqRixJQUFJLENBQUMsT0FBTyxDQUFDLFVBQVUsQ0FBQyxDQUFDO0lBQ3pCLE1BQU0sQ0FBQyxJQUFJLENBQUMsT0FBTyxDQUFDO0FBQ3hCLENBQUMsQ0FBQyJ9 \ No newline at end of file +//# sourceMappingURL=data:application/json;base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c 100644 --- a/dist/smartgit.remote.d.ts +++ b/dist/smartgit.remote.d.ts @@ -0,0 +1,4 @@ +export declare let remote: { + add: (dirPathArg: any) => void; + remove: () => void; +}; diff --git a/dist/smartgit.remote.js b/dist/smartgit.remote.js index 7bfbd11..dfc6e38 100644 --- a/dist/smartgit.remote.js +++ b/dist/smartgit.remote.js @@ -1 +1,12 @@ -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic21hcnRnaXQucmVtb3RlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vdHMvc21hcnRnaXQucmVtb3RlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIifQ== \ No newline at end of file +"use strict"; +var plugins = require("./smartgit.plugins"); +var addRemote = function (dirPathArg) { + var done = plugins.Q.defer(); +}; +var removeRemote = function () { +}; +exports.remote = { + add: addRemote, + remove: removeRemote +}; +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic21hcnRnaXQucmVtb3RlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vdHMvc21hcnRnaXQucmVtb3RlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxJQUFZLE9BQU8sV0FBTSxvQkFBb0IsQ0FBQyxDQUFBO0FBRzlDLElBQUksU0FBUyxHQUFHLFVBQUMsVUFBVTtJQUN2QixJQUFJLElBQUksR0FBRyxPQUFPLENBQUMsQ0FBQyxDQUFDLEtBQUssRUFBRSxDQUFDO0FBRWpDLENBQUMsQ0FBQztBQUVGLElBQUksWUFBWSxHQUFHO0FBRW5CLENBQUMsQ0FBQTtBQUVVLGNBQU0sR0FBRztJQUNoQixHQUFHLEVBQUUsU0FBUztJQUNkLE1BQU0sRUFBRSxZQUFZO0NBQ3ZCLENBQUEifQ== \ No newline at end of file diff --git a/ts/index.ts b/ts/index.ts index fc1ec07..dfe86c0 100644 --- a/ts/index.ts +++ b/ts/index.ts @@ -1,7 +1,9 @@ import plugins = require("./smartgit.plugins"); +export {add} from "./smartgit.add"; export {clone} from "./smartgit.clone"; export {commit} from "./smartgit.commit"; export {init} from "./smartgit.init"; export {pull} from "./smartgit.pull"; export {push} from "./smartgit.push"; +export {remote} from "./smartgit.remote"; diff --git a/ts/smartgit.add.ts b/ts/smartgit.add.ts index f88d28b..8e033bb 100644 --- a/ts/smartgit.add.ts +++ b/ts/smartgit.add.ts @@ -1,5 +1,15 @@ import * as plugins from "./smartgit.plugins"; +import * as helpers from "./smartgit.helpers"; -export let pull = (optionsArg:{path:string,ref?:string}) => { - -} +export let add = (dirPathArg:string) => { + let done = plugins.Q.defer(); + if(!helpers.isGitDirectory(dirPathArg)){ + plugins.beautylog.error("smartgit.add expects a valif git directory!"); + done.reject(); + return done.promise; + }; + // if everything is ok proceed + plugins.shelljs.exec(""); + done.resolve(dirPathArg); + return done.promise; +}; diff --git a/ts/smartgit.commit.ts b/ts/smartgit.commit.ts index 49b4957..e50b9b2 100644 --- a/ts/smartgit.commit.ts +++ b/ts/smartgit.commit.ts @@ -3,7 +3,7 @@ import * as helpers from "./smartgit.helpers"; export let commit = (dirPathArg:string,commitMessage:string) => { let done = plugins.Q.defer(); - if(!plugins.smartfile.fs.isDirectory(plugins.path.join(dirPathArg,".git"))){ + if(!helpers.isGitDirectory(dirPathArg)){ plugins.beautylog.error("smartgit.commit expects a valid git directory"); done.reject(); return done.promise; diff --git a/ts/smartgit.interfaces.ts b/ts/smartgit.interfaces.ts deleted file mode 100644 index e69de29..0000000 diff --git a/ts/smartgit.pull.ts b/ts/smartgit.pull.ts index 805d6ad..6253ede 100644 --- a/ts/smartgit.pull.ts +++ b/ts/smartgit.pull.ts @@ -1,5 +1,6 @@ import * as plugins from "./smartgit.plugins"; import * as helpers from "./smartgit.helpers"; + export let pull = (dirPathArg:string,sourceArg:string = "", branchArg:string = "") => { let done = plugins.Q.defer(); if(!helpers.isGitDirectory(dirPathArg)){ diff --git a/ts/smartgit.remote.ts b/ts/smartgit.remote.ts index e69de29..31eb0fa 100644 --- a/ts/smartgit.remote.ts +++ b/ts/smartgit.remote.ts @@ -0,0 +1,16 @@ +import * as plugins from "./smartgit.plugins"; +import * as helpers from "./smartgit.helpers"; + +let addRemote = (dirPathArg) => { + let done = plugins.Q.defer(); + +}; + +let removeRemote = () => { + +} + +export let remote = { + add: addRemote, + remove: removeRemote +} \ No newline at end of file