index.js
function entry() {
   const patterns = Array.from( arguments );
   const entry = {};
   patterns.forEach( globPattern => {
      // backwards compatibility:
      const pattern = globPattern.replace( '[name]', '**' );
      return glob.sync( pattern ).forEach( path => {
         const baseName = path.replace( /\.[^.]+$/, '' );
         entry[ baseName ] = path;
      } );
   } );
   return entry;
}
function entry() {
   const patterns = Array.from( arguments );
   const entry = {};
   patterns.forEach( globPattern => {
      // backwards compatibility:
      const pattern = globPattern.replace( '[name]', '**' );
      return glob.sync( pattern ).forEach( path => {
         const baseName = path.replace( /\.[^.]+$/, '' );
         entry[ baseName ] = path;
      } );
   } );
   return entry;
}
function entry ( ) { const patterns = Array . from ( arguments ) ; const entry = { } ; patterns . forEach ( globPattern => { // backwards compatibility: const pattern = globPattern . replace ( '[name]' , '**' ) ; return glob . sync ( pattern ) . forEach ( path => { const baseName = path . replace ( / \.[^.]+$ / , '' ) ; entry [ baseName ] = path ; } ) ; } ) ; return entry ; }
Generates webpack entry points suitable for use with the WebpackJasmineHtmlRunnerPlugin plugin.
Basically, each file matching one of the provided glob-patterns becomes an entry point which is named
like that file, but without the extension.

@param {...String} patterns
File patterns in glob-syntax (may contain * and **).

@return {Object} entry points for use as webpack `entry` configuration, as an object.
Generates webpack entry points suitable for use with the WebpackJasmineHtmlRunnerPlugin plugin . Basically each file matching one of the provided glob - patterns becomes an entry point which is named like that file but without the extension .