cleanup an add typings
This commit is contained in:
parent
1aae44a0ec
commit
760b5557f3
1
.gitignore
vendored
1
.gitignore
vendored
@ -2,6 +2,7 @@ node_modules/
|
|||||||
.settings/
|
.settings/
|
||||||
.idea/
|
.idea/
|
||||||
test/temp/
|
test/temp/
|
||||||
|
test/temp2/
|
||||||
coverage/
|
coverage/
|
||||||
docs/
|
docs/
|
||||||
|
|
||||||
|
4
dist/smartgit.add.d.ts
vendored
4
dist/smartgit.add.d.ts
vendored
@ -1 +1,5 @@
|
|||||||
import "typings-global";
|
import "typings-global";
|
||||||
|
export declare let pull: (optionsArg: {
|
||||||
|
path: string;
|
||||||
|
ref?: string;
|
||||||
|
}) => void;
|
||||||
|
8
dist/smartgit.add.js
vendored
8
dist/smartgit.add.js
vendored
@ -1,4 +1,10 @@
|
|||||||
"use strict";
|
"use strict";
|
||||||
require("typings-global");
|
require("typings-global");
|
||||||
|
var plugins = require("./smartgit.plugins");
|
||||||
|
exports.pull = function (optionsArg) {
|
||||||
|
if (!optionsArg.ref)
|
||||||
|
optionsArg.ref = "master";
|
||||||
|
plugins.nodegit.Repository.open(optionsArg.path);
|
||||||
|
};
|
||||||
|
|
||||||
//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNtYXJ0Z2l0LmFkZC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsUUFBTyxnQkFBZ0IsQ0FBQyxDQUFEIiwiZmlsZSI6InNtYXJ0Z2l0LmFkZC5qcyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBcInR5cGluZ3MtZ2xvYmFsXCIiXX0=
|
//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNtYXJ0Z2l0LmFkZC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsUUFBTyxnQkFBZ0IsQ0FBQyxDQUFBO0FBQ3hCLElBQVksT0FBTyxXQUFNLG9CQUFvQixDQUFDLENBQUE7QUFFbkMsWUFBSSxHQUFHLFVBQUMsVUFBb0M7SUFDbkQsRUFBRSxDQUFBLENBQUMsQ0FBQyxVQUFVLENBQUMsR0FBRyxDQUFDO1FBQUMsVUFBVSxDQUFDLEdBQUcsR0FBRyxRQUFRLENBQUM7SUFDOUMsT0FBTyxDQUFDLE9BQU8sQ0FBQyxVQUFVLENBQUMsSUFBSSxDQUFDLFVBQVUsQ0FBQyxJQUFJLENBQUMsQ0FBQztBQUNyRCxDQUFDLENBQUEiLCJmaWxlIjoic21hcnRnaXQuYWRkLmpzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IFwidHlwaW5ncy1nbG9iYWxcIjtcbmltcG9ydCAqIGFzIHBsdWdpbnMgZnJvbSBcIi4vc21hcnRnaXQucGx1Z2luc1wiO1xuXG5leHBvcnQgbGV0IHB1bGwgPSAob3B0aW9uc0FyZzp7cGF0aDpzdHJpbmcscmVmPzpzdHJpbmd9KSA9PiB7XG4gICAgaWYoIW9wdGlvbnNBcmcucmVmKSBvcHRpb25zQXJnLnJlZiA9IFwibWFzdGVyXCI7XG4gICAgcGx1Z2lucy5ub2RlZ2l0LlJlcG9zaXRvcnkub3BlbihvcHRpb25zQXJnLnBhdGgpO1xufVxuIl19
|
||||||
|
@ -3,6 +3,7 @@
|
|||||||
"version": "0.0.10",
|
"version": "0.0.10",
|
||||||
"description": "an easy wrapper for nodegit",
|
"description": "an easy wrapper for nodegit",
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
|
"typings":"dist/index.d.ts",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "(npmts)"
|
"test": "(npmts)"
|
||||||
},
|
},
|
||||||
@ -22,7 +23,7 @@
|
|||||||
},
|
},
|
||||||
"homepage": "https://github.com/pushrocks/smartgit",
|
"homepage": "https://github.com/pushrocks/smartgit",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"beautylog": "^5.0.10",
|
"beautylog": "^5.0.12",
|
||||||
"nodegit": "^0.13.2",
|
"nodegit": "^0.13.2",
|
||||||
"q": "^1.4.1",
|
"q": "^1.4.1",
|
||||||
"typings-global": "^1.0.3"
|
"typings-global": "^1.0.3"
|
||||||
|
@ -1 +0,0 @@
|
|||||||
Subproject commit 2313d2e4d5791cdc4d175425e3eb88c876ceb8bf
|
|
Loading…
Reference in New Issue
Block a user