src/plugins.js
// the `plugins` path and loads them
the `plugins` path and loads them
the ` plugins ` path and loads them
@bind
  async loadAll() {
    const { getPlugins }  = this
    const { readdir, mkdir } = Files
    const exists    = await _stat(PLUGINS)
    if(!exists)       await mkdir(PLUGINS)
    const _plugins = getPlugins()
    for (let i = 0; i < _plugins.length; i++) {
      const name   = _plugins[i]
      await this.load(name)
    }
  }
@ bind async loadAll ( ) { const { getPlugins } = this const { readdir , mkdir } = Files const exists = await _stat ( PLUGINS ) if ( ! exists ) await mkdir ( PLUGINS ) const _plugins = getPlugins ( ) for ( let i = 0 ; i < _plugins . length ; i ++ ) { const name = _plugins [ i ] await this . load ( name ) } }
the `plugins` path and loads them
the ` plugins ` path and loads them
// Extract values from the interested objects // Check if the plugin folder exists // Related to #11 // Get plugins list from the config // Generate require path