diff --git a/.gitignore b/.gitignore index 28bdb32475..8186eacd4d 100644 --- a/.gitignore +++ b/.gitignore @@ -6,6 +6,7 @@ logs project/project project/target public/compiled +public/vendor/bar-rating public/vendor/hopscotch public/vendor/stockfish.wasm public/vendor/stockfish-mv.wasm diff --git a/.gitmodules b/.gitmodules index 041ba3cbb5..e6372b0e1b 100644 --- a/.gitmodules +++ b/.gitmodules @@ -7,6 +7,3 @@ [submodule "public/vendor/shepherd"] path = public/vendor/shepherd url = https://github.com/HubSpot/shepherd -[submodule "public/vendor/bar-rating"] - path = public/vendor/bar-rating - url = https://github.com/antennaio/jquery-bar-rating diff --git a/public/vendor/bar-rating b/public/vendor/bar-rating deleted file mode 160000 index 337bc3ba10..0000000000 --- a/public/vendor/bar-rating +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 337bc3ba103750a59fb91461e0208112497f541b diff --git a/ui/site/gulpfile.js b/ui/site/gulpfile.js index 2ec1fae25d..cbf2ead985 100644 --- a/ui/site/gulpfile.js +++ b/ui/site/gulpfile.js @@ -51,6 +51,13 @@ const hopscotch = () => gulp.src([ cwdbase: true }).pipe(gulp.dest('../../public/vendor/hopscotch/')); +const jqueryBarRating = () => gulp.src([ + 'dist/jquery.barrating.min.js' +], { + cwd: path.dirname(require.resolve('jquery-bar-rating/package.json')), + cwdbase: true +}).pipe(gulp.dest('../../public/vendor/bar-rating/')); + const stockfishJs = () => gulp.src([ require.resolve('stockfish.js/stockfish.wasm.js'), require.resolve('stockfish.js/stockfish.wasm'), @@ -142,7 +149,12 @@ const clas = singlePackage('./src/clas.js', 'clas.js'); const deps = makeDependencies('lichess.deps.js'); -const tasks = [gitSha, jqueryFill, ab, standalonesJs, userMod, clas, stockfishWasm, stockfishMvWasm, stockfishJs, deps, hopscotch]; +const tasks = [ + gitSha, jqueryFill, ab, standalonesJs, userMod, clas, + stockfishWasm, stockfishMvWasm, stockfishJs, + deps, + hopscotch, jqueryBarRating +]; const dev = gulp.series(tasks.concat([devSource])); diff --git a/ui/site/package.json b/ui/site/package.json index 461c856ee1..5cb1bea43c 100644 --- a/ui/site/package.json +++ b/ui/site/package.json @@ -23,6 +23,7 @@ }, "dependencies": { "hopscotch": "^0.3.1", + "jquery-bar-rating": "^1.2.2", "stockfish-mv.wasm": "^0.2.0", "stockfish.js": "^10.0.2", "stockfish.wasm": "^0.6.1", diff --git a/yarn.lock b/yarn.lock index 96ffaee0ee..22ad344bd2 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2621,6 +2621,18 @@ isstream@~0.1.2: resolved "https://registry.yarnpkg.com/isstream/-/isstream-0.1.2.tgz#47e63f7af55afa6f92e1500e690eb8b8529c099a" integrity sha1-R+Y/evVa+m+S4VAOaQ64uFKcCZo= +jquery-bar-rating@^1.2.2: + version "1.2.2" + resolved "https://registry.yarnpkg.com/jquery-bar-rating/-/jquery-bar-rating-1.2.2.tgz#9594d662cff9deb0fe7b372511bb2492a436f392" + integrity sha1-lZTWYs/53rD+ezclEbskkqQ285I= + dependencies: + jquery ">=1.7.2" + +jquery@>=1.7.2: + version "3.4.1" + resolved "https://registry.yarnpkg.com/jquery/-/jquery-3.4.1.tgz#714f1f8d9dde4bdfa55764ba37ef214630d80ef2" + integrity sha512-36+AdBzCL+y6qjw5Tx7HgzeGCzC81MDDgaUP8ld2zhx58HdqXGoBd+tHdrBMiyjGQs0Hxs/MLZTu/eHNJJuWPw== + js-base64@^2.1.8: version "2.5.2" resolved "https://registry.yarnpkg.com/js-base64/-/js-base64-2.5.2.tgz#313b6274dda718f714d00b3330bbae6e38e90209"