Skip to content
This repository has been archived by the owner on Sep 16, 2019. It is now read-only.

Grunt copies all JS files #165

Closed
Waqass opened this issue Dec 14, 2014 · 3 comments
Closed

Grunt copies all JS files #165

Waqass opened this issue Dec 14, 2014 · 3 comments

Comments

@Waqass
Copy link

Waqass commented Dec 14, 2014

Hi, I'm new to bower and grunt thing so need a little clarification here. Why does grunt copies all the filed in JS folder when using grunt build. The following task copies everything from bower components folder and maps folder. Where as per my understanding only three files are required to run theme successfuly 1. Jquery, 2.Modernizer 3. App.js which included custom script and foundation js.Shouldn't be this folder clean with only these three files. Last but not least why doesn't all these three filed have been concatenated to App.js.

copy: {
  scripts: {
    expand: true,
    cwd: 'bower_components/',
    src: '**/*.js',
    dest: 'js'
  },

  maps: {
    expand: true,
    cwd: 'bower_components/',
    src: '**/*.map',
    dest: 'js'
  }
},
@olefredrik
Copy link
Owner

Hi,
Please see the documentation for answers to your questions. Feel free to change the Grunt file so that it coincides with your requirements and needs.

@olefredrik
Copy link
Owner

I have worked a little further with FoundationPress tonight. Have changed the way you load scripts and files and made some improvements in Gruntfile.js. Have also updated the docs. Hopefully it's a little clearer now.

@Waqass
Copy link
Author

Waqass commented Dec 15, 2014

yup you have cleared up much of the clutter and files are now in a much more organized way. A major overhaul perhaps. Kudos on that!
Just one last question the vendor folder has fastclick.js and placeholder.js which haven't been employed anywhere in the theme. Are they for to be manually integrated or am I missing something?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants