Browse Source

Instaling Git hooks during dev-install, renamed npm script tests to test.

Szymon Kupś 10 years ago
parent
commit
20d539bef9
2 changed files with 5 additions and 2 deletions
  1. 3 0
      dev/tasks/utils/dev-install.js
  2. 2 2
      package.json

+ 3 - 0
dev/tasks/utils/dev-install.js

@@ -104,6 +104,9 @@ module.exports = ( ckeditor5Path, workspaceRoot, name, writeln ) => {
 
 			return json;
 		} );
+
+		writeln( `Installing Git hooks in ${ urlInfo.name }...` );
+		tools.installGitHooks( repositoryPath );
 	} else {
 		throw new Error( 'Please provide valid GitHub URL, NPM module name or path.' );
 	}

+ 2 - 2
package.json

@@ -44,7 +44,7 @@
     "url": "https://github.com/ckeditor/ckeditor5.git"
   },
   "scripts": {
-    "tests": "mocha dev/tests",
+    "test": "mocha dev/tests",
     "coverage": "istanbul cover _mocha dev/tests/"
   }
-}
+}