update-gem.sh in foundation-rails-5.5.1.0 vs update-gem.sh in foundation-rails-5.5.1.1
- old
+ new
@@ -1,13 +1,18 @@
#! /bin/sh
+# clean old version
+rm -rf vendor
+mkdir -p vendor/assets/javascripts/vendor vendor/assets/stylesheets
+
+# update assets
bower install
-rm -rf vendor/assets/javascripts/vendor
-rm -rf vendor/assets/stylesheets
-mkdir -p vendor/assets/javascripts/vendor
-mkdir -p vendor/assets/stylesheets
cp bower_components/modernizr/modernizr.js vendor/assets/javascripts/vendor/.
cp -R bower_components/foundation/js/foundation/ vendor/assets/javascripts/foundation/
-cp -R bower_components/foundation/scss/ vendor/assets/stylesheets/
-cp bower_components/foundation/scss/foundation/_settings.scss vendor/assets/.
+cp -R bower_components/foundation/scss/* vendor/assets/stylesheets/
-# echo "Now update version.rb"
\ No newline at end of file
+# create vendor/assets/javascripts/foundation.js (rails inclusions //=require foundation, ...)
+cd vendor/assets/javascripts
+for f in foundation/*.js; do echo "//= require $f" | sed 's/.js//' >> foundation.js ; done
+
+# echo "Now update version.rb"
+