src/Site.js
/**
 * Finds plugins in the site's default plugin folder
 */
Finds plugins in the site's default plugin folder
Finds plugins in the site ' s default plugin folder
function findDefaultPlugins() {
  const globPath = path.join(__dirname, BUILT_IN_DEFAULT_PLUGIN_FOLDER_NAME);
  if (!fs.existsSync(globPath)) {
    return [];
  }
  return walkSync(globPath, {
    directories: false,
    globs: [`${MARKBIND_PLUGIN_PREFIX}*.js`],
  }).map(file => path.parse(file).name);
}
function findDefaultPlugins ( ) { const globPath = path . join ( __dirname , BUILT_IN_DEFAULT_PLUGIN_FOLDER_NAME ) ; if ( ! fs . existsSync ( globPath ) ) { return [ ] ; } return walkSync ( globPath , { directories : false , globs : [ ` ${ MARKBIND_PLUGIN_PREFIX } ` ] , } ) . map ( file => path . parse ( file ) . name ) ; }
Finds plugins in the site's default plugin folder
Finds plugins in the site ' s default plugin folder