1
1
mirror of https://github.com/primer/css.git synced 2024-09-21 05:39:15 +03:00

build: make backwards-compatible build/ directory

This commit is contained in:
Shawn Allen 2019-02-11 21:04:36 -08:00
parent 48b62d8912
commit 460800741c
2 changed files with 8 additions and 0 deletions

View File

@ -13,3 +13,5 @@ if [[ -f $file ]]; then
cat $file | xargs rm -rfv
rm $file
fi
rm -rf build/

View File

@ -8,6 +8,12 @@ npx action-status --context="$PUBLISH_STATUS_CONTEXT" \
# generate the build directory
npm run dist
# TODO: remove this in v13
mkdir -p build
cp dist/primer.css build/build.css
cp dist/stats/primer.json build/build.json
echo "module.exports = {cssstats: require('./build.json')}" > build/index.js
files=$(git ls-files src | sed -e 's#^src/##' | sed -e 's#/.*$##' | sort -u)
echo $files > publish-files.log
cd src