Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Grunt Not copying src #17

Open
jensengar opened this issue Aug 4, 2014 · 3 comments
Open

Grunt Not copying src #17

jensengar opened this issue Aug 4, 2014 · 3 comments

Comments

@jensengar
Copy link

When I run

grunt dev

it doesn't copy the src folder over to www. I probably have a set up issue, but I followed the readme word for word with other than after running the

cordova platform add ios

command I copied the ng-phonegap files (all of them) into app/. I didn't get any errors along the way, what did I miss? I am also getting errors on the page:

Failed to load resource: the server responded with a status of 404 (Not Found) http://0.0.0.0:9001/cordova.js
Uncaught ReferenceError: angular is not defined 0.0.0.0:9001/js/app.js:10
Uncaught ReferenceError: angular is not defined 0.0.0.0:9001/js/config.js:7
Uncaught ReferenceError: angular is not defined 0.0.0.0:9001/js/controllers.js:1
Uncaught ReferenceError: angular is not defined 0.0.0.0:9001/js/pg.js:32

Here is the output from the grunt command:

Running "build:development" (build) task

Running "clean:development" (clean) task
Cleaning tmp...OK
Cleaning app/www...OK

Running "less:development" (less) task
File app/www/css/app.css created: 0 B → 221 B

Running "concat:angular" (concat) task
File tmp/js/config.js created.
File tmp/js/modules.js created.
File tmp/js/controllers.js created.
File tmp/js/directives.js created.
File tmp/js/filters.js created.
File tmp/js/services.js created.

Running "ngmin:routers" (ngmin) task
ngminifying 

Running "ngmin:controllers" (ngmin) task
ngminifying tmp/js/controllers.js

Running "ngmin:directives" (ngmin) task
ngminifying tmp/js/directives.js

Running "ngmin:modules" (ngmin) task
ngminifying tmp/js/modules.js

Running "ngmin:filters" (ngmin) task
ngminifying tmp/js/filters.js

Running "ngmin:services" (ngmin) task
ngminifying tmp/js/services.js

Running "ngmin:vendor" (ngmin) task
ngminifying 

Running "concat:vendor" (concat) task
File tmp/css/vendor.css created.
File tmp/js/vendor.js created.

Running "copy:development" (copy) task
Copied 1 files

Running "copy:config" (copy) task
Copied 2 files

Running "copy:partials" (copy) task
Created 2 directories, copied 1 files

Running "copy:img" (copy) task
Created 1 directories

Running "copy:fonts" (copy) task


Running "copy:vendor" (copy) task
Copied 2 files

Running "copy:tmp_to_build" (copy) task
Created 1 directories, copied 9 files

Running "config:development" (config) task
Generating app/www/config.xml...OK

Running "layouts:development" (layouts) task
Generating app/www/index.html...OK

Running "connect:server" (connect) task
Started connect web server on http://0.0.0.0:9001

Running "watch" task
Waiting...
@calvinl
Copy link
Owner

calvinl commented Aug 6, 2014

It's okay to ignore cordova.js.

Can you show me what your /src folder structure looks like?

@jensengar
Copy link
Author

So I was digging around and i figured out the problem. In the grunt.js there is this line:

bowerDir: 'vendor',

which does not match what cordova/bower was creating. my actual project had a 'bower_components' directory where all my 3rd party stuff was. After I changed the directory it worked correctly.

@calvinl
Copy link
Owner

calvinl commented Aug 15, 2014

If you want to update the README to make this a bit more clear, I think it would be helpful to others.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants