Skip to content
Permalink
Browse files
CB-7349 Tell users to run npm install
when browserify/jasmine-node are missing
  • Loading branch information
jsoref committed Aug 21, 2014
1 parent 0b5a3a8 commit 58e9d6cd0b5ff63e6ba566a49cdedcaea897c3db
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
@@ -16,6 +16,13 @@
* specific language governing permissions and limitations
* under the License.
*/
try {
require('browserify');
} catch (e) {
console.error("\nbrowserify is not installed, you need to:\n\trun `npm install` from " + require('path').dirname(__dirname)+"\n");
process.exit(1);
}

var generate = require('./lib/packager-browserify');

module.exports = function(grunt) {
@@ -16,6 +16,13 @@
* specific language governing permissions and limitations
* under the License.
*/
try {
require('jasmine-node');
} catch (e) {
console.error("\njasmine-node is not installed, you need to:\n\trun `npm install` from " + require('path').dirname(__dirname)+"\n");
process.exit(1);
}

module.exports = function(grunt) {
grunt.registerTask('_test', 'Runs test in node', function() {
var done = this.async();

0 comments on commit 58e9d6c

Please sign in to comment.