Repository: deepforge-dev/deepforge (js)

Issue:
Add "repository" field to package.json
Also need to update the cli update functionality

Pull request description:
Added 'repository' to package.json. Fixes #973

Patch:
diff --git a/bin/deepforge b/bin/deepforge
index 369f55b..5842f29 100755
--- a/bin/deepforge
+++ b/bin/deepforge
@@ -8,7 +8,8 @@ var Command = require('commander').Command,
     execSync = childProcess.execSync,
     path = require('path'),
     fs = require('fs'),
-    version = require('../package.json').version,
+    pkgJson = require('../package.json'),
+    version = pkgJson.version,
     exists = require('exists-file'),
     DEFAULT_CONFIG = require('./config.json'),
     merge = require('lodash.merge'),
@@ -334,7 +335,7 @@ program
         if (!args.torch || args.server) {
 
             if (args.git) {
-                pkg = 'dfst/deepforge';
+                pkg = pkgJson.repository.url;
             } else {
                 // Check the version
                 try {
diff --git a/package.json b/package.json
index 5016083..4dc968f 100644
--- a/package.json
+++ b/package.json
@@ -1,5 +1,9 @@
 {
   "name": "deepforge",
+  "repository": {
+      "type": "git",
+      "url": "https://github.com/deepforge-dev/deepforge.git"
+  },
   "bin": {
     "deepforge": "./bin/deepforge"
   },


Test patch:
diff --git a/test/cli/cli.spec.js b/test/cli/cli.spec.js
index 1df65ee..b4d2194 100644
--- a/test/cli/cli.spec.js
+++ b/test/cli/cli.spec.js
@@ -181,9 +181,11 @@ describe('cli', function() {
         });
 
         it('should update deepforge from git if --git set w/ npm', function() {
+            var repo = require('../../package.json').repository.url;
             mocks.childProcess.spawn = (cmd, args) => {
+                // check for the git repo
                 if (cmd === 'npm') {
-                    assert.notEqual(args.indexOf('dfst/deepforge'), -1);
+                    assert.notEqual(args.indexOf(repo), -1);
                 }
             };
             cli('update --git');