zurb foundation - How to build Modernizr with bower and brunch - missing main in bower.json -


i've read github issue stating:

there isn't main file in main.

i have modernizr 3.0.0 installed automatically dependency of foundation 5.5.2 , trying build project brunch.

when running brunch build following error:

error: component json file "/path/to/brunch-test/bower_components/modernizr/.bower.json" must havemainproperty. see https://github.com/paulmillr/read-components#readme

so following read-components issue, trying override modernizr's main in root bower.json not sure how go there's no simple compiled modernizr.js present.

i know modernizr meant customized, , indeed modernizr 3 release news state there a cool solution of dynamically creating custom package can installed via bower i'm unable find information this?

ok, figured out.

so directory tree along lines of (simplified):

/ |-- bower.json |-- bower_components   |-- modernizr     |-- bin       |-- modernizr 

i went bower_components/modernizr , ran npm install dependencies required run bin/modernizr builder.

then went website pick out features required: https://modernizr.com/download?setclasses

next, clicked build , downloaded command line config placed @ root directory of project modernizr-config.json.

then ran bin/modernizr -c ../../modernizr-config.json placed custom built modernizr.js in /bower_components/modernizr/modernizr.js

finally, in root bower.json, added (following read components issue:

"overrides": {   "modernizr": {     "main": "modernizr.js"   } } 

and brunch build running beautifully now.


Comments

Popular posts from this blog

1111. appearing after print sequence - php -

java - WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/board/] in DispatcherServlet with name 'appServlet' -

Ruby on Rails, ActiveRecord, Postgres, UTF-8 and ASCII-8BIT encodings -