Bower

The Sass version of JointsWP supports Bower, which allows you to update the included libraries (under vendor/) with a single command. If you’re new to Bower and don’t have it installed, see Bower.io for installation instructions.

From the command line, navigate to your main theme directory. Then run: bower update

This will create a bower_components directory with updated versions of all your vendor files.

That’s it! You should see bower go through and update your packages to their newest version.

Using Gulp?

Simply run gulp bower to update all vendor files. This will create a bower_components directory with updated versions of the vendor files and automatically move these into the vendor/ directory.

  • RubenAmado

    Hello, does this already support updating foundation 6 ?

    • Jeremy Englert

      I believe F6 uses a different package name than F5, so it may not be possible to update via Bower. Also, there were a few major changes made in F6, so it “upgrading” may not be the best option – it may be best to start from a fresh install.

      • RubenAmado

        Like I thought, thanks Jeremy. Congrats for the good work.

  • Roberto Costa

    Hi Jeremy,

    Nice work. I use Codekit, latest version. How can I make Codekit “see” the vendor directory instead of the default bower_components? This way your vendor js will never get updated as far as I understand.

    • Jeremy Englert

      When I use CodeKit, I update enqueue-scripts.php to call directly from the bower_components folder.

      Another option would be to simply have CodeKit update the bower_components files, then manually move them into the vendor directory.

      It’s been awhile since I’ve used CodeKit, but I’m going to be playing with it this weekend and potentially making a video about how to get started with CodeKit and JointsWP.

      • Roberto Costa

        Thank you Jeremy. That’ll be awesome. I wish the folks at Zurb would adopt an oficial barebones theme for Foundation. This onde might well be yours.

  • http://gabrielbajada.com Gabriel Bajada

    Hi Jeremy,

    Stupid question, but if I’m using Gulp, do I still need to have Bower installed?

    Thanks again for the awesome work, as always.

    • Jeremy Englert

      That’s actually a great question.

      I would assume you wouldn’t need to have Bower installed, since it should install when you run “npm install”. I’ve never tested it though. Are you having issues?

      • http://gabrielbajada.com Gabriel Bajada

        I’ve attached the result. Looks like it worked to me.