Skip to content

Commit

Permalink
install jquery-bar-rating from npm (lichess-org#6323)
Browse files Browse the repository at this point in the history
  • Loading branch information
niklasf committed Apr 7, 2020
1 parent cc5ce29 commit c259882
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 5 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 0 additions & 3 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -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 change: 0 additions & 1 deletion public/vendor/bar-rating
Submodule bar-rating deleted from 337bc3
14 changes: 13 additions & 1 deletion ui/site/gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'),
Expand Down Expand Up @@ -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]));

Expand Down
1 change: 1 addition & 0 deletions ui/site/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
12 changes: 12 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit c259882

Please sign in to comment.