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:
15
scripts/transform.js
Normal file
15
scripts/transform.js
Normal 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 );
|
||||
};
|
||||
Reference in New Issue
Block a user