iron-meteor / iron-cli

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

iron cli creates routes.js outside project directory #239

Closed SudShekhar closed 7 years ago

SudShekhar commented 8 years ago

Hi,

I recently started using meteor and came across the iron-cli package after reading some books. Tried to create a new project using the command iron create ownapp. Following is the console output :

    created ownapp
created ownapp/.iron
....
Creating project  app... /
Meteor app created
created ownapp/app/client
....
/Users/sshekh1/Desktop/js already exists. Do you want to overwrite it? [yn]: n
created app/client/templates/home/home.css
/Users/sshekh1/Desktop/js already exists. Do you want to overwrite it? [yn]: n
updated /Users/sshekh1/Desktop/js
/Users/sshekh1/Desktop/js already exists. Do you want to overwrite it? [yn]: n
/Users/sshekh1/Desktop/js already exists. Do you want to overwrite it? [yn]: n
Installing the package  iron:router... /
Changes to your project's package version selections:

iron:controller        added, version 1.0.12
iron:core              added, version 1.0.11
iron:dynamic-template  added, version 1.0.12
iron:layout            added, version 1.0.12
iron:location          added, version 1.0.11
iron:middleware-stack  added, version 1.0.11
iron:router            added, version 1.0.12
iron:url               added, version 1.0.11

iron:router: Routing specifically designed for Meteor

✔ iron:router
created app/client/stylesheets/main.css

The application is being created inside a folder js_stuff inside desktop. However its placing the routes.js (that's what I think it is by inspecting the created js file) in the desktop itself.

When I generate new scaffolds, it updates this js file only.

chrisbutler commented 7 years ago

@SudShekhar this should be fixed in 1.8.0