Translated using Weblate (Slovenian)
[phpmyadmin.git] / scripts / sync-js-vendor-files.sh
blob433dceda9a5b623b70eaf106c21311d0677f7b70
1 #!/bin/sh
3 # vim: expandtab sw=4 ts=4 sts=4:
6 # This script will sync JS node_modules files with existing files in vendor folder.
7 # Warning: this will not add any more files, it uses existing files in vendor folder.
9 ROOT_DIR="$(realpath $(dirname $0)/../)"
10 echo "Using root dir: $ROOT_DIR"
12 cd ${ROOT_DIR}
14 # Uncomment when all the modules are in the package.json file
15 #echo 'Delete all files'
16 #find ./js/vendor/ -not -path './openlayers/*' -type f -delete
18 echo 'Updating codemirror'
19 cp ./node_modules/codemirror/addon/hint/sql-hint.js ./js/vendor/codemirror/addon/hint/sql-hint.js
20 cp ./node_modules/codemirror/addon/hint/show-hint.css ./js/vendor/codemirror/addon/hint/show-hint.css
21 cp ./node_modules/codemirror/addon/hint/show-hint.js ./js/vendor/codemirror/addon/hint/show-hint.js
22 cp ./node_modules/codemirror/addon/runmode/runmode.js ./js/vendor/codemirror/addon/runmode/runmode.js
23 cp ./node_modules/codemirror/addon/lint/lint.css ./js/vendor/codemirror/addon/lint/lint.css
24 cp ./node_modules/codemirror/addon/lint/lint.js ./js/vendor/codemirror/addon/lint/lint.js
25 cp ./node_modules/codemirror/lib/codemirror.js ./js/vendor/codemirror/lib/codemirror.js
26 cp ./node_modules/codemirror/lib/codemirror.css ./js/vendor/codemirror/lib/codemirror.css
27 cp ./node_modules/codemirror/mode/sql/sql.js ./js/vendor/codemirror/mode/sql/sql.js
28 cp ./node_modules/codemirror/mode/javascript/javascript.js ./js/vendor/codemirror/mode/javascript/javascript.js
29 cp ./node_modules/codemirror/mode/xml/xml.js ./js/vendor/codemirror/mode/xml/xml.js
30 cp ./node_modules/codemirror/LICENSE ./js/vendor/codemirror/LICENSE
31 echo 'Updating jquery'
32 cp ./node_modules/jquery/dist/jquery.min.js ./js/vendor/jquery/jquery.min.js
33 cp ./node_modules/jquery/dist/jquery.min.map ./js/vendor/jquery/jquery.min.map
34 cp ./node_modules/jquery/LICENSE.txt ./js/vendor/jquery/MIT-LICENSE.txt
35 echo 'Updating jquery-migrate'
36 cp ./node_modules/jquery-migrate/dist/jquery-migrate.js ./js/vendor/jquery/jquery-migrate.js
37 echo 'Updating jquery-mousewheel'
38 cp ./node_modules/jquery-mousewheel/jquery.mousewheel.js ./js/vendor/jquery/jquery.mousewheel.js
39 # echo 'Updating jquery-ui'
40 # Impossible to do, they do not distribute dist files in the package...
41 #echo 'Updating jquery.event.drag'
42 #cp ./node_modules/jquery.event.drag/jquery.event.drag.js ./js/vendor/jquery/jquery.event.drag-2.2.js
43 echo 'Updating jquery-validation'
44 cp ./node_modules/jquery-validation/dist/jquery.validate.js ./js/vendor/jquery/jquery.validate.js
45 cp ./node_modules/jquery-validation/dist/additional-methods.js ./js/vendor/jquery/additional-methods.js
46 echo 'Updating js-cookie'
47 cp ./node_modules/js-cookie/src/js.cookie.js ./js/vendor/js.cookie.js
48 echo 'Updating bootstrap'
49 cp ./node_modules/bootstrap/dist/js/bootstrap.bundle.min.js ./js/vendor/bootstrap/bootstrap.bundle.min.js
50 cp ./node_modules/bootstrap/dist/js/bootstrap.bundle.min.js.map ./js/vendor/bootstrap/bootstrap.bundle.min.js.map
51 echo 'Updating zxcvbn'
52 cp ./node_modules/zxcvbn/dist/zxcvbn.js ./js/vendor/zxcvbn.js
53 cp ./node_modules/zxcvbn/dist/zxcvbn.js.map ./js/vendor/zxcvbn.js.map
54 echo 'Updating tracekit'
55 cp ./node_modules/tracekit/tracekit.js ./js/vendor/tracekit.js
57 echo 'Done.'