now has .git
This commit is contained in:
@@ -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);
|
||||
};
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -2,7 +2,8 @@
|
||||
var plugins = {
|
||||
path: require("path"),
|
||||
Q: require("q"),
|
||||
smartfile: require("smartfile")
|
||||
smartfile: require("smartfile"),
|
||||
smartstring: require("smartstring")
|
||||
};
|
||||
|
||||
export = plugins;
|
Reference in New Issue
Block a user