improve reamde
This commit is contained in:
parent
e07f5717c8
commit
4e12b7ee3b
12
README.md
12
README.md
@ -12,6 +12,12 @@ This limits options but reduces errors (TypeScript) and speeds up usage.
|
|||||||
|
|
||||||
Features:
|
Features:
|
||||||
|
|
||||||
* easily clone a git repo
|
* clone a git repo
|
||||||
* easily create a new git repo
|
* init a new repo
|
||||||
* easily add all changes and make a new commit
|
* create a new git repo
|
||||||
|
* add changes and make a new commit
|
||||||
|
* commit changes
|
||||||
|
* push changes
|
||||||
|
* add/remove remotes
|
||||||
|
|
||||||
|
Tip: use smartssh to setup your SSH environment
|
3
dist/smartgit.pull.js
vendored
3
dist/smartgit.pull.js
vendored
@ -11,8 +11,9 @@ exports.pull = function (dirPathArg, sourceArg, branchArg) {
|
|||||||
return done.promse;
|
return done.promse;
|
||||||
}
|
}
|
||||||
;
|
;
|
||||||
|
// 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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic21hcnRnaXQucHVsbC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3RzL3NtYXJ0Z2l0LnB1bGwudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLElBQVksT0FBTyxXQUFNLG9CQUFvQixDQUFDLENBQUE7QUFDOUMsSUFBWSxPQUFPLFdBQU0sb0JBQW9CLENBQUMsQ0FBQTtBQUVuQyxZQUFJLEdBQUcsVUFBQyxVQUFpQixFQUFDLFNBQXFCLEVBQUUsU0FBcUI7SUFBNUMseUJBQXFCLEdBQXJCLGNBQXFCO0lBQUUseUJBQXFCLEdBQXJCLGNB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sQ0FBQyxDQUFDLENBQUMsS0FBSyxFQUFFLENBQUM7SUFDN0IsRUFBRSxDQUFBLENBQUMsQ0FBQyxPQUFPLENBQUMsY0FBYyxDQUFDLFVBQVUsQ0FBQyxDQUFDLENBQUEsQ0FBQztRQUNwQyxPQUFPLENBQUMsU0FBUyxDQUFDLEtBQUssQ0FBQyw2Q0FBNkMsQ0FBQyxDQUFDO1FBQ3ZFLElBQUksQ0FBQyxNQUFNLEVBQUUsQ0FBQztRQUNkLE1BQU0sQ0FBQyxJQUFJLENBQUMsTUFBTSxDQUFDO0lBQ3ZCLENBQUM7SUFBQSxDQUFDO0lBQ0Ysb0NBQW9DO0lBQ3BDLE9BQU8sQ0FBQyxPQUFPLENBQUMsSUFBSSxDQUFDLFNBQU8sVUFBVSxxQkFBZ0IsU0FBUyxTQUFJLFNBQVMsTUFBRyxDQUFDLENBQUM7SUFDakYsSUFBSSxDQUFDLE9BQU8sQ0FBQyxVQUFVLENBQUMsQ0FBQztJQUN6QixNQUFNLENBQUMsSUFBSSxDQUFDLE9BQU8sQ0FBQztBQUN4QixDQUFDLENBQUMifQ==
|
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "smartgit",
|
"name": "smartgit",
|
||||||
"version": "0.1.5",
|
"version": "0.1.5",
|
||||||
"description": "an easy wrapper for nodegit",
|
"description": "an easy wrapper for git",
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
"typings": "dist/index.d.ts",
|
"typings": "dist/index.d.ts",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
@ -11,7 +11,7 @@
|
|||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/pushrocks/smartgit.git"
|
"url": "https://gitlab.com/pushrocks/smartgit.git"
|
||||||
},
|
},
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"json",
|
"json",
|
||||||
@ -21,9 +21,9 @@
|
|||||||
"author": "Smart Coordination GmbH <office@push.rocks> (https://push.rocks)",
|
"author": "Smart Coordination GmbH <office@push.rocks> (https://push.rocks)",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"bugs": {
|
"bugs": {
|
||||||
"url": "https://github.com/pushrocks/smartgit/issues"
|
"url": "https://gitlab.com/pushrocks/smartgit/issues"
|
||||||
},
|
},
|
||||||
"homepage": "https://github.com/pushrocks/smartgit",
|
"homepage": "https://gitlab.com/pushrocks/smartgit",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@types/minimatch": "*",
|
"@types/minimatch": "*",
|
||||||
"beautylog": "^5.0.13",
|
"beautylog": "^5.0.13",
|
||||||
|
@ -58,7 +58,7 @@ describe("smartgit", function () {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
describe("pull", function () {
|
describe("pull", function () {
|
||||||
this.timeout(10000);
|
this.timeout(20000);
|
||||||
it("should error for noGit", function () {
|
it("should error for noGit", function () {
|
||||||
smartgit.pull(paths.noGit);
|
smartgit.pull(paths.noGit);
|
||||||
});
|
});
|
||||||
|
@ -60,7 +60,7 @@ describe("smartgit",function(){
|
|||||||
})
|
})
|
||||||
});
|
});
|
||||||
describe("pull",function(){
|
describe("pull",function(){
|
||||||
this.timeout(10000);
|
this.timeout(20000);
|
||||||
it("should error for noGit",function(){
|
it("should error for noGit",function(){
|
||||||
smartgit.pull(paths.noGit);
|
smartgit.pull(paths.noGit);
|
||||||
});
|
});
|
||||||
|
@ -8,6 +8,7 @@ export let pull = (dirPathArg:string,sourceArg:string = "", branchArg:string = "
|
|||||||
done.reject();
|
done.reject();
|
||||||
return done.promse;
|
return done.promse;
|
||||||
};
|
};
|
||||||
|
// 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;
|
||||||
|
Loading…
Reference in New Issue
Block a user