install jquery-bar-rating from npm (#6323)

pull/6340/head
Niklas Fiekas 2020-04-07 10:30:41 +02:00
parent cc5ce29798
commit c2598822b1
6 changed files with 27 additions and 5 deletions

1
.gitignore vendored
View File

@ -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

3
.gitmodules vendored
View File

@ -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

@ -1 +0,0 @@
Subproject commit 337bc3ba103750a59fb91461e0208112497f541b

View File

@ -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]));

View File

@ -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",

View File

@ -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"