After creating a subtheme, the task to copy the bower files is not in the Gruntfile.js. Also, grunt-contrib-copy is missing from package.json. I see the plugin dependency and the task are both set in the zurb_foundation package.json and Gruntfile.js files, respectively.

The dependency and task just need to be added to the STARTER files.

Comments

shadybar’s picture

Status: Active » Needs review
StatusFileSize
new1.26 KB

Here is a patch to update the STARTER package.json and Gruntfile.js files.

kevinquillen’s picture

Status: Needs review » Postponed (maintainer needs more info)

Correct me if I'm wrong, but is it still necessary?

http://cgit.drupalcode.org/zurb-foundation/tree/STARTER/scss/STARTER.scs...

http://cgit.drupalcode.org/zurb-foundation/tree/STARTER/Gruntfile.js?h=7...

The STARTER.scss references these core assets in the parent zurb_foundation theme. When you run bower update from the zurb_foundation folder, those assets are replaced, and that should trigger a Grunt rebuild in your subtheme.

nmillin’s picture

Component: Code » Documentation
Status: Postponed (maintainer needs more info) » Needs review

I think I found the answer. Changing status to have another person look at issue and changing component to better specify the issue.

I wanted to update to the latest zurb_foundation version (5.5.1 instead of 5.5.0 that the theme ships with). To do this:

  1. Go to parent theme (zurb_foundation)
  2. run bower update - new folder (bower_components) is download, but .gitignored
  3. run grunt - copies code in bower_components to the correct folders (css, scss, js)
  4. Go to subtheme
  5. run grunt - complies new parent theme code (css, js)