Files
jquery.uls/scripts/transform.js
Ed Sanders d53beca719 Update linters
* Update eslint and stylelint config
* Fix Gruntfile.js to actually run stylelint
2019-11-13 04:14:16 +02:00

17 lines
365 B
JavaScript

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