FamousArchives / generator-famous

for those who hate doing things once
123 stars 26 forks source link

yo famous:view should update grunt paths #15

Closed AlessandroAnnini closed 10 years ago

AlessandroAnnini commented 10 years ago

hi, i used yo famous:view MyView to create a new view.. it works ok but when i launch 'grunt' command it exports everything but the view folder and another folder that i made by myself.

i think that view folder should be automatically added, it would be nice.

thanks

AlessandroAnnini commented 10 years ago

ok, i found out it is all minified inside main.js but still no image because my images are in this path:

C:\Users\myuser\famous\testapp\dist\content\images

while it tries to load images from:

file:///C:/Users/myuser/famous/testapp/content/images/image.png

MylesBorins commented 10 years ago

I'm not sure exactly why you are having the problem you are having but I figured it might be helpful to point out a few things.

If you are working in development you should be executing the command grunt serve to launch a local development server that can be used to view the app you are working on with live changes whenever you make a save.

When you are ready to move to production (on an external server) you can run the command grunt to prepare your dist folder which is ready for deployment. To test how that deployment folder look when running on a server you can run `grunt serve:dist.

It looks like the problem that you are seeing is a path issue, and it looks like it might be system specific as I am unable to recreate this bug on my own system.

I will be closing this issue but please feel free to keep commenting in here if you would like some more help. You should also pop into our irc channel #famous on irc.freenode.net for more one on one help from the community