Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
case 'cloud': {
await build(merge(defaultResolveConfig, appConfig, cloudConfig))
break
}
case 'start': {
await start(merge(defaultResolveConfig, appConfig, prodConfig))
break
}
case 'import-event-store': {
const resolveConfig = merge(defaultResolveConfig, appConfig, devConfig)
const importFile = process.argv[3]
await importEventStore(resolveConfig, { importFile })
break
}
case 'export-event-store': {
const resolveConfig = merge(defaultResolveConfig, appConfig, devConfig)
const exportFile = process.argv[3]
await exportEventStore(resolveConfig, { exportFile })
break
}
case 'test:functional': {
const resolveConfig = merge(
defaultResolveConfig,
appConfig,
adjustWebpackConfigs
)
break
}
case 'start': {
await start(merge(defaultResolveConfig, appConfig, prodConfig))
break
}
case 'import-event-store': {
const resolveConfig = merge(defaultResolveConfig, appConfig, devConfig)
const importFile = process.argv[3]
await importEventStore(resolveConfig, { importFile })
break
}
case 'export-event-store': {
const resolveConfig = merge(defaultResolveConfig, appConfig, devConfig)
const exportFile = process.argv[3]
await exportEventStore(resolveConfig, { exportFile })
break
}
case 'test:functional': {
const resolveConfig = merge(
defaultResolveConfig,
appConfig,
await reset(resolveConfig, {
dropEventStore: false,
dropSnapshots: true,
dropReadModels: true,
dropSagas: true
})
break
}
case 'import-event-store': {
const resolveConfig = merge(defaultResolveConfig, appConfig, devConfig)
const importFile = process.argv[3]
await importEventStore(resolveConfig, { importFile })
break
}
case 'export-event-store': {
const resolveConfig = merge(defaultResolveConfig, appConfig, devConfig)
const exportFile = process.argv[3]
await exportEventStore(resolveConfig, { exportFile })
break
}
case 'test:functional': {
const resolveConfig = merge(
defaultResolveConfig,
appConfig,
await reset(resolveConfig, {
dropEventStore: false,
dropSnapshots: true,
dropReadModels: true,
dropSagas: true
})
break
}
case 'import-event-store': {
const resolveConfig = merge(defaultResolveConfig, appConfig, devConfig)
const importFile = process.argv[3]
await importEventStore(resolveConfig, { importFile })
break
}
case 'export-event-store': {
const resolveConfig = merge(defaultResolveConfig, appConfig, devConfig)
const exportFile = process.argv[3]
await exportEventStore(resolveConfig, { exportFile })
break
}
case 'test:functional': {
const resolveConfig = merge(
defaultResolveConfig,
appConfig,
await start(resolveConfig)
break
}
case 'import-event-store': {
const resolveConfig = merge(
defaultResolveConfig,
appConfig,
testFunctionalConfig,
authModule
)
const importFile = process.argv[3]
await importEventStore(
resolveConfig,
{ importFile },
adjustWebpackConfigs({
resolveConfig,
commonPackages
})
)
break
}
case 'export-event-store': {
const resolveConfig = merge(
defaultResolveConfig,
appConfig,
testFunctionalConfig,
authModule
const resolveConfig = merge(baseConfig, devConfig)
await reset(resolveConfig, {
dropEventStore: true,
dropSnapshots: true,
dropReadModels: true,
dropSagas: true
})
break
}
case 'import-event-store': {
const resolveConfig = merge(baseConfig, devConfig)
const importFile = process.argv[3]
await importEventStore(resolveConfig, { importFile })
break
}
case 'export-event-store': {
const resolveConfig = merge(baseConfig, devConfig)
const exportFile = process.argv[3]
await exportEventStore(resolveConfig, { exportFile })
break
}
case 'test:functional': {
const resolveConfig = merge(baseConfig, testFunctionalConfig)
await reset(resolveConfig, {
case 'cloud': {
await build(merge(defaultResolveConfig, appConfig, cloudConfig))
break
}
case 'start': {
await start(merge(defaultResolveConfig, appConfig, prodConfig))
break
}
case 'import-event-store': {
const resolveConfig = merge(defaultResolveConfig, appConfig, devConfig)
const importFile = process.argv[3]
await importEventStore(resolveConfig, { importFile })
break
}
case 'export-event-store': {
const resolveConfig = merge(defaultResolveConfig, appConfig, devConfig)
const exportFile = process.argv[3]
await exportEventStore(resolveConfig, { exportFile })
break
}
case 'test:functional': {
const resolveConfig = merge(
defaultResolveConfig,
appConfig,