2024-01-20 05:18:18 -06:00
|
|
|
const FlecksDockerOutput = require('./plugin');
|
|
|
|
|
|
|
|
exports.hooks = {
|
2024-01-22 09:16:07 -06:00
|
|
|
'@flecks/build.config': (target, config, env, argv, flecks) => {
|
2024-01-20 05:18:18 -06:00
|
|
|
if ('server' !== target) {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
config.plugins.push(new FlecksDockerOutput({flecks}));
|
|
|
|
},
|
|
|
|
'@flecks/core.config': () => ({
|
|
|
|
/**
|
|
|
|
* Whether to run docker containers.
|
|
|
|
*/
|
|
|
|
enabled: true,
|
|
|
|
}),
|
|
|
|
};
|