Created
February 19, 2014 20:47
-
-
Save grigio/9101195 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Meteor Flat UI installer - ( with Less support ) | |
# | |
# brew install rename # on osx | |
cd meteor-app | |
FLATUI_VER=2.1.3 | |
echo "\n Download Flat UI.. "$FLATUI_VER | |
mkdir -p client/vendor | |
mkdir -p public/assets/vendor | |
wget "https://github.com/designmodo/Flat-UI/archive/"$FLATUI_VER".zip" | |
unzip $FLATUI_VER".zip" -d client/vendor | |
mv "client/vendor/Flat-UI-"$FLATUI_VER client/vendor/Flat-UI | |
mv client/vendor/Flat-UI/{images,fonts,js,css} public/assets/vendor | |
echo "\n Patching.." | |
find ./client/vendor/Flat-UI -type f -exec rename 's/\.less/\.lessimport/' {} \; | |
find ./client/vendor/Flat-UI -type f -exec rename 's/\.html/\.html.orig/' {} \; | |
sed -i '' 's/";/\.lessimport";/g' client/vendor/Flat-UI/less/flat-ui.lessimport | |
find ./client/vendor/Flat-UI/less/ -type f -exec sed -i '' 's|\.\./|\/assets\/vendor\/|' {} \; | |
mv client/vendor/Flat-UI/less/flat-ui.lessimport client/vendor/Flat-UI/less/flat-ui.less | |
echo "\n Cleaning.." | |
meteor add less | |
rm -f $FLATUI_VER".zip" | |
echo "\n Done" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
A porting in Grunt or Gulp JS is welcome :)