iron-meteor / iron-cli

A scaffolding command line tool for Meteor applications.
639 stars 82 forks source link

[bug] scaffold generator say nonexistent files exists #113

Closed lirbank closed 9 years ago

lirbank commented 9 years ago

Iron asks if it may overwrite some files, but these files do not exist.

$ iron g:scaffold test_resource
created app/lib/collections/test_resource.js
created app/client/templates/test_resource
created app/client/templates/test_resource/test_resource.html
created app/client/templates/test_resource/test_resource.js
created app/client/templates/test_resource/test_resource.css
created app/lib/controllers/test_resource_controller.js
updated /Users/mikael/Git/lirbank/airlab/app/lib/routes.js
/Users/mikael/Git/lirbank/airlab/app/lib/controllers/test_resource_controller.js already exists. Do you want to overwrite it? [yn]: y
created app/lib/controllers/test_resource_controller.js
/Users/mikael/Git/lirbank/airlab/app/client/templates/test_resource/test_resource.html already exists. Do you want to overwrite it? [yn]: y
created app/client/templates/test_resource/test_resource.html
/Users/mikael/Git/lirbank/airlab/app/client/templates/test_resource/test_resource.js already exists. Do you want to overwrite it? [yn]: y
created app/client/templates/test_resource/test_resource.js
/Users/mikael/Git/lirbank/airlab/app/client/templates/test_resource/test_resource.css already exists. Do you want to overwrite it? [yn]: y
created app/client/templates/test_resource/test_resource.css
updated /Users/mikael/Git/lirbank/airlab/app/server/publish.js
cmather commented 9 years ago

I think this is due to the partially completed route generator invoking the controller and template generators. I'm going to roll back that feature until it's complete and put out a quick patch for this. Thanks for reporting.

cmather commented 9 years ago

fixed

cmather commented 9 years ago

install 1.1.1