Use wikimedia/language-data node module for data

Now that we have this node module, let us use that as upstream
for data
This commit is contained in:
Santhosh Thottingal
2017-08-21 19:00:10 +05:30
parent 71959b6a7c
commit 6d6a1326b5
8 changed files with 5500 additions and 7400 deletions

15
scripts/transform.js Normal file
View File

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