Merge pull request #3327 from ahocevar/dist-css
Add css to dist directory
This commit is contained in:
+8
-2
@@ -64,13 +64,18 @@ assert_version_match() {
|
|||||||
#
|
#
|
||||||
# Build all of the distribution profiles.
|
# Build all of the distribution profiles.
|
||||||
#
|
#
|
||||||
build_profiles() {
|
build_js() {
|
||||||
for p in ${@}; do
|
for p in ${@}; do
|
||||||
echo building ${BUILDS}/${p}.js
|
echo building ${BUILDS}/${p}.js
|
||||||
node ./tasks/build.js config/${p}.json ${BUILDS}/${p}.js
|
node ./tasks/build.js config/${p}.json ${BUILDS}/${p}.js
|
||||||
done
|
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
|
# Check out the provided tag. This ensures that the tag has been pushed to
|
||||||
# the canonical remote.
|
# the canonical remote.
|
||||||
@@ -90,7 +95,8 @@ main() {
|
|||||||
checkout_tag ${1}
|
checkout_tag ${1}
|
||||||
assert_version_match ${1}
|
assert_version_match ${1}
|
||||||
rm -rf ${BUILDS}
|
rm -rf ${BUILDS}
|
||||||
build_profiles ${PROFILES}
|
build_js ${PROFILES}
|
||||||
|
build_css
|
||||||
npm publish
|
npm publish
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user