now has .git

This commit is contained in:
2016-02-23 08:48:41 +01:00
parent e4ef9bf97a
commit 3c9dd787b3
9 changed files with 25 additions and 16 deletions

View File

@@ -6,7 +6,7 @@ class ProjectinfoNPM {
version:string;
status:string;
license:string;
repoUrl:string;
git;
constructor(cwdArg:string){
this.packageJson = plugins.smartfile.readFileToObject(
@@ -20,12 +20,9 @@ class ProjectinfoNPM {
this.status = "ok";
this.license = this.packageJson.license;
if (this.packageJson.repository){
this.repoUrl = this.packageJson.repository.url;
} else {
this.repoUrl = undefined;
this.git = plugins.smartstring.git(this.packageJson.repository.url);
};
}
}

View File

@@ -2,7 +2,8 @@
var plugins = {
path: require("path"),
Q: require("q"),
smartfile: require("smartfile")
smartfile: require("smartfile"),
smartstring: require("smartstring")
};
export = plugins;