From: Galen Charlton Date: Mon, 10 Jun 2019 20:09:08 +0000 (-0400) Subject: LP#1832897: add Glide as a Javascript dependency for the public catalog X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=b9895ac7de1eb14fa8a3a458c7d6d7df2aaee9b3;p=working%2FEvergreen.git LP#1832897: add Glide as a Javascript dependency for the public catalog Glide (https://glidejs.com) is an MIT-licensed library for rendering carousels. Similar to how jQuery is installed for the catalog, the additional dependency is specified in the AngularJS client's package.json and webpack.config.js. Signed-off-by: Galen Charlton Signed-off-by: Bill Erickson --- diff --git a/Open-ILS/web/js/ui/default/staff/package.json b/Open-ILS/web/js/ui/default/staff/package.json index 499e3945e9..83e9aff063 100644 --- a/Open-ILS/web/js/ui/default/staff/package.json +++ b/Open-ILS/web/js/ui/default/staff/package.json @@ -28,6 +28,7 @@ "build-prod": "webpack --env.prod" }, "dependencies": { + "@glidejs/glide": "^3.3.0", "angular": "~1.6.7", "angular-animate": "~1.6.7", "angular-cookies": "~1.6.7", diff --git a/Open-ILS/web/js/ui/default/staff/webpack.config.js b/Open-ILS/web/js/ui/default/staff/webpack.config.js index da66461b4a..f57c80fa79 100644 --- a/Open-ILS/web/js/ui/default/staff/webpack.config.js +++ b/Open-ILS/web/js/ui/default/staff/webpack.config.js @@ -56,7 +56,11 @@ const directCopyFiles = [ // jquery is copied to the common build location, up one directory. {from: './node_modules/jquery/dist/jquery.min.js', - to: __dirname + '/../common/build/js'} + to: __dirname + '/../common/build/js'}, + + // and likewise for glide + {from: './node_modules/@glidejs/glide/dist', + to: __dirname + '/../common/build/js/glide'} ]; CSS_FILES.forEach(file => directCopyFiles.push({from: file, to: './css'}));