vite migration step x
This commit is contained in:
@@ -1,36 +0,0 @@
|
||||
|
||||
zero.plugins = zero.plugins || [];
|
||||
|
||||
// TODO correct path
|
||||
let plugins = require.context('@/../zero.Commerce/Plugins/zero.Commerce', true, /plugin\.js$/); // TODO dynPATH
|
||||
|
||||
plugins.keys().forEach(path =>
|
||||
{
|
||||
const routesDefinition = plugins(path);
|
||||
const definition = routesDefinition.default || routesDefinition;
|
||||
|
||||
definition.name = 'commerce'; // TODO
|
||||
zero.plugins.push(definition);
|
||||
});
|
||||
|
||||
//plugins = require.context('@/../zero.Debug', true, /plugin\.js$/); // TODO dynPATH
|
||||
|
||||
//plugins.keys().forEach(path =>
|
||||
//{
|
||||
// const routesDefinition = plugins(path);
|
||||
// const definition = routesDefinition.default || routesDefinition;
|
||||
|
||||
// definition.name = 'project'; // TODO
|
||||
// zero.plugins.push(definition);
|
||||
//});
|
||||
|
||||
|
||||
// run setup action directly
|
||||
|
||||
zero.plugins.forEach(plugin =>
|
||||
{
|
||||
if (typeof plugin.setup === 'function')
|
||||
{
|
||||
plugin.setup();
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user