Theme development with Bower, Node.js, etc.
-
The theme check feature takes a lot of time when we use Bower and Node.js (Grunt) for theme development. The /bower_components/ and the /node_modules/ folders contains a lot of files. I guess the listdir function is scanning al these folders and files. Is there a way we can ignore these folders/files?
https://plugins.trac.www.ads-software.com/browser/theme-check/tags/20141222.1/checkbase.php#L153
I already developed a quick PHP 5.4+ fix, but it would be nice of something like this could integrated in this plugin.
$filter = array( 'bower_components', 'node_modules' ); $dir_iterator = new \RecursiveCallbackFilterIterator( $dir_iterator, function( $item ) use ( $filter ) { return ! in_array( $item->getBaseName(), $filter ); } );
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Theme development with Bower, Node.js, etc.’ is closed to new replies.