yeoman / generator-karma

Yeoman generator for Karma
http://yeoman.io
BSD 2-Clause "Simplified" License
172 stars 48 forks source link

Gruntfile doesn't load karma which causes `Task "karma" not found.` #60

Closed facultymatt closed 10 years ago

facultymatt commented 10 years ago

Overview

Running the generator with the option --gruntfile-path . creates broken gruntfile. The file is missing the loadNpmTasks tasks command, which means that karma is not loaded and is not usable.

Proposed fix:

Add to gruntfile: grunt.loadNpmTasks('grunt-karma');

eddiemonge commented 10 years ago

Is that the path to gruntfile relative to the project root?

eddiemonge commented 10 years ago

Did you get a conflict when running the generator? It should have asked to overwrite the existing Gruntfile.js

eddiemonge commented 10 years ago

Sorry, fixed in 0.8.3

facultymatt commented 10 years ago

Thanks!