Replace bower with npm/parcel.

- Legacy-Id: 19709
This commit is contained in:
Lars Eggert 2021-11-24 15:10:39 +00:00
parent dd59b008b5
commit 089754d5f8

View file

@ -123,11 +123,6 @@ while true ; do
shift
done
# ----------------------------------------------------------------------
# Check some requirements
check bower "It is required to update web resources. Install with npm."
# ----------------------------------------------------------------------
# The program itself
@ -218,19 +213,15 @@ if [ -z "$PERMIT_MIGR_MIX" ]; then
fi
if [ -z "$IGNORE_RESOURCES" ]; then
note "Updating bower assets ..."
$do ietf/manage.py bower_install > .mkrelease-bower-install.log
$do rm .mkrelease-bower-install.log # This happens at once unless the previous command returns error
$do svn st ietf/externals/static | grep -v '^\?' || true
$do svn commit ietf/externals/static -m "Updated bower-managed static web assets"
# Get rid of bower-installed files which we don't use:
$do rm -rf ietf/externals/static/datatracker/
$do rm -rf ietf/externals/static/jquery.cookie/
$do rm -f $(svn st ietf/externals/ | grep '^\?' | awk '{print $2}')
note "Updating assets ..."
$do npm install > .mkrelease-npm-install.log
$do rm .mkrelease-npm-install.log # This happens at once unless the previous command returns error
$do npx parcel build > .mkrelease-parcel-build.log
$do rm .mkrelease-parcel-build.log # This happens at once unless the previous command returns error
fi
note "Collecting static files ..."
$do ietf/manage.py collectstatic --noinput --ignore=bower.json --ignore='README.*' --ignore=rev | grep -v "Found another file with the destination path"
$do ietf/manage.py collectstatic --noinput --ignore='README.*' --ignore=rev | grep -v "Found another file with the destination path"
#$do svn commit static/lib/ -m "Updated static files under static/lib/"
# note "Checking that there's a recent test-crawler log"
@ -344,5 +335,4 @@ cat ~/src/db/mail/release-mail-v$VER.txt | $do mail "${SEND_ARGS}" -s "New datat
# Removed at Henrik's suggestion
#$do toolsfeed control changelog /www/tools.ietf.org/tools/atomfeed.xml
#$do toolpush /www/tools.ietf.org/tools/atomfeed.xml
#$do toolpush /www/tools.ietf.org/tools/atomfeed.xml