nicholasjackson / protractor-cucumber-example

Small example of how to use protractor with cucumber for angular application testing.
MIT License
37 stars 16 forks source link

Something wrong with config in Gruntfile.js? #1

Open eduardoinnorway opened 9 years ago

eduardoinnorway commented 9 years ago

grunt serve

Output: Running "wiredep:app" (wiredep) task Warning: ENOENT, no such file or directory '/Users/eduardo/IdeaProjects/protractor-cucumber-example-master/app/bower.json' Use --force to continue.

michalpirgl commented 8 years ago

Hi, Isn't this just about changing cwd to parent folder? Works for me. /Michal P.S. Thanks for example

diff --git a/Gruntfile.js b/Gruntfile.js
index 6654397..d48dfec 100644
--- a/Gruntfile.js
+++ b/Gruntfile.js
@@ -163,7 +163,7 @@ module.exports = function (grunt) {
     // Automatically inject Bower components into the app
     wiredep: {
       options: {
-        cwd: '<%= yeoman.app %>'
+        cwd: '<%= yeoman.app %>/../'
       },
       app: {
         src: ['<%= yeoman.app %>/index.html'],