Update language-data

"Fixed" the build script by using a known working version.

Updating to 69074e24757a59ad9a20be4a28ddbe4285ae06a6.
This commit is contained in:
Niklas Laxström
2020-12-09 11:39:47 +02:00
parent dd8555bad4
commit 670585033e
3 changed files with 38 additions and 15 deletions

View File

@@ -18,14 +18,10 @@ then (
git clone "$UPSTREAM" "$CLONEDIR"
fi
if [ -d "$BASEDIR"/node_modules/browserify ]
then
echo "browserify already installed"
else (
echo "Installing browserify"
cd "$BASEDIR";
npm install --no-save browserify
) fi
# This re-installs it every time, but guarantees we have the right version
echo "Installing browserify"
cd "$BASEDIR";
npm install --no-save browserify@v16.5.2
echo "Transforming language-data"

View File

@@ -1,16 +1,18 @@
var through = require( 'through' );
const through = require( 'through' );
module.exports = function () {
var data, end, write;
data = '( function ( $ ) {\n\t$.uls = $.uls || {};\n\t$.uls.data = ';
write = function ( buf ) {
let data = '( function ( $ ) {\n\t$.uls = $.uls || {};\n\t$.uls.data = ';
const write = function ( buf ) {
data += buf;
return data;
};
end = function () {
const end = function () {
data += '\n} ( jQuery ) );';
this.queue( data );
return this.queue( null );
this.queue( null );
};
return through( write, end );
};