* Use eslint and stylelint, fix all errors * Remove jshint, jsbeautify * Use Object.keys directly since that is available in all major browsers * Fixes for eslint, stylelint errors * stylelint is not included in grunt test yet because jquery.uls.mobile.css has so many !important and need to figure out whether they are really needed
17 lines
408 B
JavaScript
17 lines
408 B
JavaScript
var through = require( 'through' ); // eslint-disable-line no-implicit-globals
|
|
|
|
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 );
|
|
};
|