mirror of
https://github.com/FortAwesome/Font-Awesome.git
synced 2025-01-15 09:40:27 +08:00
Fix lessc commands in Makefile. Add less to package.json.
This commit is contained in:
parent
b85ea4b059
commit
6ff237a69a
2
css/font-awesome.min.css
vendored
2
css/font-awesome.min.css
vendored
File diff suppressed because one or more lines are too long
@ -40,9 +40,11 @@
|
|||||||
"url": "http://opensource.org/licenses/mit-license.html"
|
"url": "http://opensource.org/licenses/mit-license.html"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"dependencies": {
|
"dependencies": {},
|
||||||
|
"engines": {
|
||||||
|
"node": ">=0.10.3"
|
||||||
},
|
},
|
||||||
"engines" : {
|
"devDependencies": {
|
||||||
"node" : ">=0.10.3"
|
"less": "~2"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
---
|
---
|
||||||
PATH := ../node_modules/.bin:$(PATH)
|
LOCAL_LESSC = ../node_modules/.bin/lessc
|
||||||
|
|
||||||
FA_ROOT_DIRECTORY = assets/font-awesome
|
FA_ROOT_DIRECTORY = assets/font-awesome
|
||||||
FA_LESS_DIRECTORY = assets/font-awesome/less
|
FA_LESS_DIRECTORY = assets/font-awesome/less
|
||||||
@ -23,11 +23,11 @@ build:
|
|||||||
@echo "Compiling Less files"
|
@echo "Compiling Less files"
|
||||||
@mkdir -p ${FA_CSS_DIRECTORY}
|
@mkdir -p ${FA_CSS_DIRECTORY}
|
||||||
|
|
||||||
lessc ${FA_LESS_MODERN} > ${FA_CSS_MODERN}
|
node $(LOCAL_LESSC) ${FA_LESS_MODERN} > ${FA_CSS_MODERN}
|
||||||
lessc --compress ${FA_LESS_MODERN} > ${FA_CSS_MODERN_MIN}
|
node $(LOCAL_LESSC) --compress ${FA_LESS_MODERN} > ${FA_CSS_MODERN_MIN}
|
||||||
# sass ${FA_SCSS_MODERN} ${FA_CSS_MODERN}
|
# 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}/* ../
|
cp -r ${FA_ROOT_DIRECTORY}/* ../
|
||||||
mv README.md-nobuild ../README.md
|
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
|
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
|
||||||
|
Loading…
Reference in New Issue
Block a user