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

Force Bower reinstall #37

Closed
neverfox opened this issue Apr 11, 2014 · 7 comments
Closed

Force Bower reinstall #37

neverfox opened this issue Apr 11, 2014 · 7 comments

Comments

@neverfox
Copy link

Maybe this is already possible somehow, but there should be a way to tell mimosa to force a bower reinstall even when it doesn't think there should be one. The only thing I seem to be able to do now is delete `.mimosa/bower', which is a bit of a pain. A command line arg would be ideal.

I'm not sure why this happens to me but sometimes, moving around git branches, I'll lose a vendor file (I don't check them in if they come from Bower) and mimosa still thinks things are cool because I haven't touched anything that normally triggers it. Those are times when a simple force reinstall would be good to have.

@zaceno
Copy link

zaceno commented Apr 11, 2014

I have the same issue. Running "mimosa bower:clean", it removes all bower installed assets. So you'd think that running "mimosa bower" thereafter would cause a full re-install of all bower deps. But it just says no bower installs are necessary, even though it just deleted them all from my assets folder.

Only way to get reinstall is to do a rm -rf .mimosa/bower, the run "mimosa bower". For me, at least.

@neverfox
Copy link
Author

Yes, and while it could be something like a bower:reinstall too, what I'd really like is something that's part of the watch command, like a -r flag, so that it force triggers this re-installation during app start, just like you might want to always do a -d.

@dbashford
Copy link
Owner

@zaceno I can't reproduce that. With latest mimosa

  • mimosa new foo -d
  • cd foo
  • mimosa watch
  • CNTL-C
  • mimosa bower:clean
  • mimosa watch

The last mimosa watch will install the bower stuff.

It works this way if I use mimosa bower instead of mimosa watch.

@dbashford
Copy link
Owner

I can get behind a reinstall. Its essentially a bower:clean followed by a bower.

I'm a little leery about introducing a top level flag for something specific to a module like this.

Maybe a -C/--cleanall that will essentially wipe out the .mimosa folder and force all modules that cache information there to rebuild?

Can't use -r as it has some specific connotations at the command line.

@dbashford
Copy link
Owner

Added the -C/--cleanall flag to watch, build and clean commands. I'll pass on adding reinstall for now.

@zaceno
Copy link

zaceno commented May 16, 2014

@dbashford : I was running an older Mimosa. With 2.2.5, I can't reproduce it either. So I withdraw my complaint :)

Even so: thumbs up on the --cleanall flag. I frequently find myself deleting the .mimosa folder when debugging things.

@neverfox
Copy link
Author

Thanks. I'll give this a shot.

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

3 participants