Skip to content

Commit

Permalink
Upgrade skin cli
Browse files Browse the repository at this point in the history
  • Loading branch information
jdlrobson committed Feb 3, 2024
1 parent e94e970 commit b5a8d76
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 12 deletions.
17 changes: 9 additions & 8 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"@babel/node": "^7.18.10",
"less": "4.1.0",
"mediawiki-skins-cli": "0.5.6",
"mediawiki-skins-cli-latest": "npm:mediawiki-skins-cli@1.40.2",
"mediawiki-skins-cli-latest": "npm:mediawiki-skins-cli@1.42.0",
"mustache": "4.1.0",
"node-fetch": "3.2.10",
"vue": "2.6.12",
Expand Down
6 changes: 3 additions & 3 deletions src/pages/Add.vue
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ import { PARTIALS, getLessVarsCode, getLessVarsRaw, JQUERY,
buildDefaultAssets,
getResourceLoaderSkinModuleStylesFromStylesheet,
SCRIPTS, messages } from 'mediawiki-skins-cli';
import { buildSkin as buildSkin140 } from 'mediawiki-skins-cli-latest';
import { buildSkin as buildSkinLatest } from 'mediawiki-skins-cli-latest';
import api from '../api.js';
import { TEST_ARTICLES, HOST, LESS_RENDER_OPTIONS } from '../constants';
import { render } from 'mustache';
Expand Down Expand Up @@ -236,8 +236,8 @@ export default {
},
download() {
let fn = buildSkin;
if ( this.skinOutputVersion === '1.40' ) {
fn = buildSkin140;
if ( parseFloat( this.skinOutputVersion ) >= 1.41 ) {
fn = buildSkinLatest;
}
fn( this.skinname, this.mustache, this.less, this.js, this.variables );
},
Expand Down

0 comments on commit b5a8d76

Please sign in to comment.