new implementation
This commit is contained in:
parent
011ac2d7b4
commit
5d00afcdf0
2
dist/index.d.ts
vendored
2
dist/index.d.ts
vendored
@ -1,5 +1,7 @@
|
|||||||
|
export { add } from "./smartgit.add";
|
||||||
export { clone } from "./smartgit.clone";
|
export { clone } from "./smartgit.clone";
|
||||||
export { commit } from "./smartgit.commit";
|
export { commit } from "./smartgit.commit";
|
||||||
export { init } from "./smartgit.init";
|
export { init } from "./smartgit.init";
|
||||||
export { pull } from "./smartgit.pull";
|
export { pull } from "./smartgit.pull";
|
||||||
export { push } from "./smartgit.push";
|
export { push } from "./smartgit.push";
|
||||||
|
export { remote } from "./smartgit.remote";
|
||||||
|
6
dist/index.js
vendored
6
dist/index.js
vendored
@ -1,4 +1,6 @@
|
|||||||
"use strict";
|
"use strict";
|
||||||
|
var smartgit_add_1 = require("./smartgit.add");
|
||||||
|
exports.add = smartgit_add_1.add;
|
||||||
var smartgit_clone_1 = require("./smartgit.clone");
|
var smartgit_clone_1 = require("./smartgit.clone");
|
||||||
exports.clone = smartgit_clone_1.clone;
|
exports.clone = smartgit_clone_1.clone;
|
||||||
var smartgit_commit_1 = require("./smartgit.commit");
|
var smartgit_commit_1 = require("./smartgit.commit");
|
||||||
@ -9,4 +11,6 @@ var smartgit_pull_1 = require("./smartgit.pull");
|
|||||||
exports.pull = smartgit_pull_1.pull;
|
exports.pull = smartgit_pull_1.pull;
|
||||||
var smartgit_push_1 = require("./smartgit.push");
|
var smartgit_push_1 = require("./smartgit.push");
|
||||||
exports.push = smartgit_push_1.push;
|
exports.push = smartgit_push_1.push;
|
||||||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi90cy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBRUEsK0JBQW9CLGtCQUFrQixDQUFDO0FBQS9CLHVDQUErQjtBQUN2QyxnQ0FBcUIsbUJBQW1CLENBQUM7QUFBakMsMENBQWlDO0FBQ3pDLDhCQUFtQixpQkFBaUIsQ0FBQztBQUE3QixvQ0FBNkI7QUFDckMsOEJBQW1CLGlCQUFpQixDQUFDO0FBQTdCLG9DQUE2QjtBQUNyQyw4QkFBbUIsaUJBQWlCLENBQUM7QUFBN0Isb0NBQTZCIn0=
|
var smartgit_remote_1 = require("./smartgit.remote");
|
||||||
|
exports.remote = smartgit_remote_1.remote;
|
||||||
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi90cy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBRUEsNkJBQWtCLGdCQUFnQixDQUFDO0FBQTNCLGlDQUEyQjtBQUNuQywrQkFBb0Isa0JBQWtCLENBQUM7QUFBL0IsdUNBQStCO0FBQ3ZDLGdDQUFxQixtQkFBbUIsQ0FBQztBQUFqQywwQ0FBaUM7QUFDekMsOEJBQW1CLGlCQUFpQixDQUFDO0FBQTdCLG9DQUE2QjtBQUNyQyw4QkFBbUIsaUJBQWlCLENBQUM7QUFBN0Isb0NBQTZCO0FBQ3JDLDhCQUFtQixpQkFBaUIsQ0FBQztBQUE3QixvQ0FBNkI7QUFDckMsZ0NBQXFCLG1CQUFtQixDQUFDO0FBQWpDLDBDQUFpQyJ9
|
5
dist/smartgit.add.d.ts
vendored
5
dist/smartgit.add.d.ts
vendored
@ -1,4 +1 @@
|
|||||||
export declare let pull: (optionsArg: {
|
export declare let add: (dirPathArg: string) => any;
|
||||||
path: string;
|
|
||||||
ref?: string;
|
|
||||||
}) => void;
|
|
||||||
|
17
dist/smartgit.add.js
vendored
17
dist/smartgit.add.js
vendored
@ -1,4 +1,17 @@
|
|||||||
"use strict";
|
"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==
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic21hcnRnaXQuYWRkLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vdHMvc21hcnRnaXQuYWRkLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxJQUFZLE9BQU8sV0FBTSxvQkFBb0IsQ0FBQyxDQUFBO0FBQzlDLElBQVksT0FBTyxXQUFNLG9CQUFvQixDQUFDLENBQUE7QUFFbkMsV0FBRyxHQUFHLFVBQUMsVUFBaUI7SUFDL0IsSUFBSSxJQUFJLEdBQUcsT0FBTyxDQUFDLENBQUMsQ0FBQyxLQUFLLEVBQUUsQ0FBQztJQUM3QixFQUFFLENBQUEsQ0FBQyxDQUFDLE9BQU8sQ0FBQyxjQUFjLENBQUMsVUFBVSxDQUFDLENBQUMsQ0FBQSxDQUFDO1FBQ3BDLE9BQU8sQ0FBQyxTQUFTLENBQUMsS0FBSyxDQUFDLDZDQUE2QyxDQUFDLENBQUM7UUFDdkUsSUFBSSxDQUFDLE1BQU0sRUFBRSxDQUFDO1FBQ2QsTUFBTSxDQUFDLElBQUksQ0FBQyxPQUFPLENBQUM7SUFDeEIsQ0FBQztJQUFBLENBQUM7SUFDRiw4QkFBOEI7SUFDOUIsT0FBTyxDQUFDLE9BQU8sQ0FBQyxJQUFJLENBQUMsRUFBRSxDQUFDLENBQUM7SUFDekIsSUFBSSxDQUFDLE9BQU8sQ0FBQyxVQUFVLENBQUMsQ0FBQztJQUN6QixNQUFNLENBQUMsSUFBSSxDQUFDLE9BQU8sQ0FBQztBQUN4QixDQUFDLENBQUMifQ==
|
5
dist/smartgit.commit.js
vendored
5
dist/smartgit.commit.js
vendored
@ -1,8 +1,9 @@
|
|||||||
"use strict";
|
"use strict";
|
||||||
var plugins = require("./smartgit.plugins");
|
var plugins = require("./smartgit.plugins");
|
||||||
|
var helpers = require("./smartgit.helpers");
|
||||||
exports.commit = function (dirPathArg, commitMessage) {
|
exports.commit = function (dirPathArg, commitMessage) {
|
||||||
var done = plugins.Q.defer();
|
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");
|
plugins.beautylog.error("smartgit.commit expects a valid git directory");
|
||||||
done.reject();
|
done.reject();
|
||||||
return done.promise;
|
return done.promise;
|
||||||
@ -13,4 +14,4 @@ exports.commit = function (dirPathArg, commitMessage) {
|
|||||||
done.resolve();
|
done.resolve();
|
||||||
return done.promise;
|
return done.promise;
|
||||||
};
|
};
|
||||||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic21hcnRnaXQuY29tbWl0LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vdHMvc21hcnRnaXQuY29tbWl0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUF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LFVBQUMsVUFBaUIsRUFBQyxhQUFvQjtJQUN2RCxJQUFJLElBQUksR0FBRyxPQUFPLENBQUMsQ0FBQyxDQUFDLEtBQUssRUFBRSxDQUFDO0lBQzdCLEVBQUUsQ0FBQSxDQUFDLENBQUMsT0FBTyxDQUFDLGNBQWMsQ0FBQyxVQUFVLENBQUMsQ0FBQyxDQUFBLENBQUM7UUFDcEMsT0FBTyxDQUFDLFNBQVMsQ0FBQyxLQUFLLENBQUMsK0NBQStDLENBQUMsQ0FBQztRQUN6RSxJQUFJLENBQUMsTUFBTSxFQUFFLENBQUM7UUFDZCxNQUFNLENBQUMsSUFBSSxDQUFDLE9BQU8sQ0FBQztJQUN4QixDQUFDO0lBQUEsQ0FBQztJQUNGLHFDQUFxQztJQUNyQyxPQUFPLENBQUMsT0FBTyxDQUFDLElBQUksQ0FBQyxxQkFBa0IsYUFBYSxPQUFHLENBQUMsQ0FBQztJQUN6RCxJQUFJLENBQUMsT0FBTyxFQUFFLENBQUM7SUFDZixNQUFNLENBQUMsSUFBSSxDQUFDLE9BQU8sQ0FBQztBQUN4QixDQUFDLENBQUMifQ==
|
0
dist/smartgit.interfaces.d.ts
vendored
0
dist/smartgit.interfaces.d.ts
vendored
1
dist/smartgit.interfaces.js
vendored
1
dist/smartgit.interfaces.js
vendored
@ -1 +0,0 @@
|
|||||||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic21hcnRnaXQuaW50ZXJmYWNlcy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3RzL3NtYXJ0Z2l0LmludGVyZmFjZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiJ9
|
|
2
dist/smartgit.pull.js
vendored
2
dist/smartgit.pull.js
vendored
@ -15,4 +15,4 @@ exports.pull = function (dirPathArg, sourceArg, branchArg) {
|
|||||||
done.resolve(dirPathArg);
|
done.resolve(dirPathArg);
|
||||||
return done.promise;
|
return done.promise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4 @@
|
|||||||
|
export declare let remote: {
|
||||||
|
add: (dirPathArg: any) => void;
|
||||||
|
remove: () => void;
|
||||||
|
};
|
13
dist/smartgit.remote.js
vendored
13
dist/smartgit.remote.js
vendored
@ -1 +1,12 @@
|
|||||||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic21hcnRnaXQucmVtb3RlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vdHMvc21hcnRnaXQucmVtb3RlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIifQ==
|
"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==
|
@ -1,7 +1,9 @@
|
|||||||
import plugins = require("./smartgit.plugins");
|
import plugins = require("./smartgit.plugins");
|
||||||
|
|
||||||
|
export {add} from "./smartgit.add";
|
||||||
export {clone} from "./smartgit.clone";
|
export {clone} from "./smartgit.clone";
|
||||||
export {commit} from "./smartgit.commit";
|
export {commit} from "./smartgit.commit";
|
||||||
export {init} from "./smartgit.init";
|
export {init} from "./smartgit.init";
|
||||||
export {pull} from "./smartgit.pull";
|
export {pull} from "./smartgit.pull";
|
||||||
export {push} from "./smartgit.push";
|
export {push} from "./smartgit.push";
|
||||||
|
export {remote} from "./smartgit.remote";
|
||||||
|
@ -1,5 +1,15 @@
|
|||||||
import * as plugins from "./smartgit.plugins";
|
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;
|
||||||
|
};
|
||||||
|
@ -3,7 +3,7 @@ import * as helpers from "./smartgit.helpers";
|
|||||||
|
|
||||||
export let commit = (dirPathArg:string,commitMessage:string) => {
|
export let commit = (dirPathArg:string,commitMessage:string) => {
|
||||||
let done = plugins.Q.defer();
|
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");
|
plugins.beautylog.error("smartgit.commit expects a valid git directory");
|
||||||
done.reject();
|
done.reject();
|
||||||
return done.promise;
|
return done.promise;
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
import * as plugins from "./smartgit.plugins";
|
import * as plugins from "./smartgit.plugins";
|
||||||
import * as helpers from "./smartgit.helpers";
|
import * as helpers from "./smartgit.helpers";
|
||||||
|
|
||||||
export let pull = (dirPathArg:string,sourceArg:string = "", branchArg:string = "") => {
|
export let pull = (dirPathArg:string,sourceArg:string = "", branchArg:string = "") => {
|
||||||
let done = plugins.Q.defer();
|
let done = plugins.Q.defer();
|
||||||
if(!helpers.isGitDirectory(dirPathArg)){
|
if(!helpers.isGitDirectory(dirPathArg)){
|
||||||
|
@ -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
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user