infusionsoft / bower-locker

Command line tool to create a pseudo-bower lock file.
Apache License 2.0
15 stars 8 forks source link

Feature request: Automate process of installing new bower item #9

Open shawnlonas opened 8 years ago

shawnlonas commented 8 years ago

From : https://github.com/infusionsoft/bower-locker/issues/5#issuecomment-259480191

What we need also that is after locking the file to write pre install script to be executed before installing new packages, so that it'll automate the process of:

unlock bower file. continue the installation of the new package. lock the bower file again.

AbdoDabbas commented 8 years ago

I think the steps to implement it will be like this:

  1. Check if .bowerrc file exists.
  2. Read it if exists and create if not.
  3. add scripts property or use the exists one.
  4. in preinstall and preuninstall add bower-locker unlock command.
  5. in postinstall and postuninstall add bower-locker lock command.
  6. make sure in 4, 5 to check if there's already commands written (and this will be tricky a little bit).