diff --git a/tasks/publish.sh b/tasks/publish.sh index faf24b502a..1e36e6064d 100755 --- a/tasks/publish.sh +++ b/tasks/publish.sh @@ -64,13 +64,18 @@ assert_version_match() { # # Build all of the distribution profiles. # -build_profiles() { +build_js() { for p in ${@}; do echo building ${BUILDS}/${p}.js node ./tasks/build.js config/${p}.json ${BUILDS}/${p}.js done } +build_css() { + ./node_modules/clean-css/bin/cleancss css/ol.css -o ${BUILDS}/ol.css + cp css/ol.css ${BUILDS}/ol-debug.css +} + # # Check out the provided tag. This ensures that the tag has been pushed to # the canonical remote. @@ -90,7 +95,8 @@ main() { checkout_tag ${1} assert_version_match ${1} rm -rf ${BUILDS} - build_profiles ${PROFILES} + build_js ${PROFILES} + build_css npm publish }