From db7a75513404adcdddb4c8851581301ac26ad56d Mon Sep 17 00:00:00 2001 From: William Desportes Date: Sat, 18 Apr 2020 14:01:05 +0200 Subject: [PATCH] Make the sync script exclude some un-replaceable files and remove ll the other ones Signed-off-by: William Desportes --- scripts/sync-js-vendor-files.sh | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/scripts/sync-js-vendor-files.sh b/scripts/sync-js-vendor-files.sh index 7be3b4d4eb..a26caf00ed 100755 --- a/scripts/sync-js-vendor-files.sh +++ b/scripts/sync-js-vendor-files.sh @@ -11,9 +11,23 @@ echo "Using root dir: $ROOT_DIR" cd ${ROOT_DIR} -# Uncomment when all the modules are in the package.json file -#echo 'Delete all files' -#find ./js/vendor/ -not -path './openlayers/*' -type f -delete +# Remove each '-not -path' when a new package can be used from npm +echo 'Delete vendor files we can replace from source dists' +find ./js/vendor/ \ + -not -path './js/vendor/openlayers/*' \ + -not -path './js/vendor/sprintf.js' \ + -not -path './js/vendor/jqplot/jquery.jqplot.js' \ + -not -path './js/vendor/jqplot/plugins/jqplot.*.js' \ + -not -path './js/vendor/jquery/jquery-ui.min.js' \ + -not -path './js/vendor/jquery/jquery.uitablefilter.js' \ + -not -path './js/vendor/jquery/jquery.sortableTable.js' \ + -not -path './js/vendor/jquery/jquery.svg.js' \ + -not -path './js/vendor/jquery/jquery.fullscreen.js' \ + -not -path './js/vendor/jquery/jquery-ui-timepicker-addon.js' \ + -not -path './js/vendor/jquery/jquery.event.drag-2.2.js' \ + -not -path './js/vendor/jquery/jquery.debounce-1.0.6.js' \ + -not -path './js/vendor/jquery/jquery.ba-hashchange-1.3.js' \ + -type f -delete -print echo 'Updating codemirror' cp ./node_modules/codemirror/addon/hint/sql-hint.js ./js/vendor/codemirror/addon/hint/sql-hint.js