Skip to content

Pulling in Foundation Updates

ashleykolodziej edited this page Jan 7, 2019 · 2 revisions

Since each child theme comes bundled with it's own version of Foundation (courtesy of Bower), it's on individual child theme developers to pull in these updates as needed.

Do I Need To?

In most cases updates to Foundation are opt-in -- they may add a few variables, or fix a minor bug. If your theme doesn't need the changes, you don't necessarily need to update Foundation right away. If for some reason an update is required we'll be sure to communicate it loud and clear.

Be sure to peruse the release notes and familiarize yourself with changes that have occurred since your current version, and always review the generated scripts and styles and test your theme after pulling in the updates.

Update Steps

When a new release of Foundation is announced, follow these steps to pull it in to your theme:

  1. Update package.json.

    {
        "name": "your-theme-name",
        "devDependencies": {
    	    "responsive-foundation": "git+ssh://[email protected]:bu-ist/responsive-foundation#X.X.X",
    	  },
    }

    Modify the version tag at the end of the repository path (X.X.X).

  2. Run npm install.

  3. Run grunt build.

Getting an error on npm install? Be sure you're trying to pull in a Foundation update, and not a Framework update. Foundation updates cover static assets, such as SASS and JS files. Framework updates cover parent theme files that your child theme depends on, such as PHP. If the update is made to the Framework - the parent theme - you don't need to do anything. You'll automatically be up to date.

If you get this error (exit code of #69 Agreeing to the Xcode/iOS license requires admin privileges, please re-run as root via sudo.), you need to open XCode and accept the agreement.

This will bring in updates to the node_modules directory as well as the generated stylesheets. Review and commit these changes:

"Pulling in Responsive Foundation X.X.X"

In order to see the changes, you'll need to upload the node_modules directory as well as the generated stylesheets to your development environment.

And if I don't?

Nothing, only if your theme is not affected by the change. So peruse the release notes!

Welcome to Responsive!

Get started

Configuration

Build child themes

Sass

Javascript

PHP

Shortcodes

Templates

GitHub

Tasks

Contribute to the framework

Code Examples

BU Developer Resources

Clone this wiki locally