mirror of
https://github.com/qlik-oss/nebula.js.git
synced 2025-12-19 09:48:18 -05:00
refactor: remove ACCEPT_EULA option from nebula serve due to qlikcore engine deprecation (#724)
This commit is contained in:
@@ -3,21 +3,15 @@
|
||||
const yargs = require('yargs');
|
||||
|
||||
const mashupServer = require('../test/mashup/server');
|
||||
const useEngine = require('../commands/serve/lib/engine');
|
||||
|
||||
const args = yargs
|
||||
.option('start', {
|
||||
default: true,
|
||||
type: 'boolean',
|
||||
describe: 'Start the mashup server',
|
||||
})
|
||||
.option('engine', {
|
||||
default: false,
|
||||
type: 'boolean',
|
||||
describe: 'Start the engine',
|
||||
}).argv;
|
||||
|
||||
const { start, engine } = args;
|
||||
const { start } = args;
|
||||
|
||||
let hasCleanedUp = false;
|
||||
const services = [];
|
||||
@@ -36,23 +30,6 @@ if (start) {
|
||||
});
|
||||
}
|
||||
|
||||
if (engine) {
|
||||
let e;
|
||||
services.push({
|
||||
name: 'Qlik Engine',
|
||||
start: async () => {
|
||||
e = await useEngine({
|
||||
ACCEPT_EULA: true,
|
||||
files: ['./test/fixtures/docker/docker-compose.yml'],
|
||||
cwd: process.cwd(),
|
||||
});
|
||||
},
|
||||
stop: async () => {
|
||||
e && (await e());
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
function cleanup() {
|
||||
if (hasCleanedUp) {
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user