Merge pull request #3327 from ahocevar/dist-css
Add css to dist directory
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user