Add svelte as a view engine to swaf #33
@ -99,11 +99,21 @@ export default abstract class Application implements Extendable<ApplicationCompo
|
|||||||
await this.init();
|
await this.init();
|
||||||
|
|
||||||
// Process command line
|
// Process command line
|
||||||
if (!this.ignoreCommandLine && await this.processCommandLine()) {
|
if (!this.ignoreCommandLine) {
|
||||||
|
let result: boolean;
|
||||||
|
try {
|
||||||
|
result = await this.processCommandLine();
|
||||||
|
} catch (err) {
|
||||||
|
logger.error(err);
|
||||||
|
process.exit(1);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (result) {
|
||||||
this.started = true;
|
this.started = true;
|
||||||
this.busy = false;
|
this.busy = false;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Security
|
// Security
|
||||||
if (process.env.NODE_ENV === 'production') {
|
if (process.env.NODE_ENV === 'production') {
|
||||||
|
Loading…
Reference in New Issue
Block a user