Fix lessc commands in Makefile. Add less to package.json.

This commit is contained in:
William Boman 2014-12-13 20:03:28 +01:00
parent b85ea4b059
commit 6ff237a69a
3 changed files with 10 additions and 8 deletions

View File

@ -40,9 +40,11 @@
"url": "http://opensource.org/licenses/mit-license.html"
}
],
"dependencies": {
},
"dependencies": {},
"engines": {
"node": ">=0.10.3"
},
"devDependencies": {
"less": "~2"
}
}

View File

@ -1,6 +1,6 @@
---
---
PATH := ../node_modules/.bin:$(PATH)
LOCAL_LESSC = ../node_modules/.bin/lessc
FA_ROOT_DIRECTORY = assets/font-awesome
FA_LESS_DIRECTORY = assets/font-awesome/less
@ -23,11 +23,11 @@ build:
@echo "Compiling Less files"
@mkdir -p ${FA_CSS_DIRECTORY}
lessc ${FA_LESS_MODERN} > ${FA_CSS_MODERN}
lessc --compress ${FA_LESS_MODERN} > ${FA_CSS_MODERN_MIN}
node $(LOCAL_LESSC) ${FA_LESS_MODERN} > ${FA_CSS_MODERN}
node $(LOCAL_LESSC) --compress ${FA_LESS_MODERN} > ${FA_CSS_MODERN_MIN}
# sass ${FA_SCSS_MODERN} ${FA_CSS_MODERN}
lessc --yui-compress ${SITE_LESS} > ${SITE_CSS}
node $(LOCAL_LESSC) --compress ${SITE_LESS} > ${SITE_CSS}
cp -r ${FA_ROOT_DIRECTORY}/* ../
mv README.md-nobuild ../README.md
cd assets && mv font-awesome font-awesome-{{ site.fontawesome.version }} && zip -r9 font-awesome-{{ site.fontawesome.version }}.zip font-awesome-{{ site.fontawesome.version }} && mv font-awesome-{{ site.fontawesome.version }} font-awesome