marionettejs.com icon indicating copy to clipboard operation
marionettejs.com copied to clipboard

Dist folder needs to be deleted prior to deploy

Open paulfalgout opened this issue 9 years ago • 11 comments

create mode 100644 images/logos/stubhub.gif create mode 100644 images/logos/stubhub.png

That gif file doesn't exist anymore, and there are other files not in existence still getting deployed.

paulfalgout avatar Jan 07 '15 06:01 paulfalgout

:+1:

samccone avatar Jan 07 '15 14:01 samccone

@paulfalgout wait maybe I did not follow 100% as to what this issue was for.. care explaining a bit more

samccone avatar Jan 07 '15 19:01 samccone

So if I don't manually delete my dist folder before running npm run deploy it will get all of the files from previous compiles. So like my deploy the other night deployed gif files that were no longer in the repo, such as the stubhub.gif. So I missed that those two logos were broke, because running locally and on prod they worked just fine.

paulfalgout avatar Jan 08 '15 08:01 paulfalgout

BTW, whenever I pull down the latest master, I always have to delete my dist folder in order to have the site launch properly for some reason. Not sure if it's related to this.

jdaudier avatar Jan 08 '15 09:01 jdaudier

so I think what it is clean:dist is only run with grunt dev so if I make a bunch of changes and deploy after running grunt dev dist doesn't get cleaned up.

paulfalgout avatar Jan 08 '15 09:01 paulfalgout

meaning, the deployed files in dist are conflicting with what i should be seeing in dist during dev?

jdaudier avatar Jan 08 '15 09:01 jdaudier

so dist is a generate directory, mostly copied stuff from src. The dist file gets deleted when you run grunt dev, but if you delete a file from src/ and don't run grunt dev again, that file will remain in dist/ since the folder is never removed. So I'm not entirely sure what npm deploy is doing , but I don't think it's running clean:dist first, and it should.

paulfalgout avatar Jan 08 '15 09:01 paulfalgout

ping @trezy :arrow_heading_up:

jdaudier avatar Jan 08 '15 10:01 jdaudier

gotcha! np np

samccone avatar Jan 08 '15 13:01 samccone

We probably just need to set up separate clean tasks for each build step - e.g. Sass, Jade, copy assets, etc.

trezy avatar Jan 08 '15 18:01 trezy

yeeeeep simple simple fix

samccone avatar Jan 08 '15 18:01 samccone