forked from Qortal/qortal-ui
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
733 B
35 lines
733 B
const PLUGINS = 'plugins' |
|
const BUILD = 'build' |
|
const WATCH = 'watch' |
|
|
|
|
|
/** |
|
* @package Plugins Controller |
|
* @param { String } type |
|
*/ |
|
|
|
const pluginsController = (type) => { |
|
switch (type) { |
|
case PLUGINS: |
|
const path = require('path') |
|
const plugins = [ |
|
{ |
|
folder: path.join(__dirname, 'plugins/core'), |
|
name: 'core' |
|
} |
|
] |
|
return plugins |
|
case BUILD: |
|
const build = require('./build.js') |
|
return build |
|
case WATCH: |
|
const watch = require('./watch.js') |
|
return watch |
|
default: |
|
return |
|
} |
|
|
|
} |
|
|
|
|
|
module.exports = pluginsController
|
|
|