| 47 | */ |
| 48 | async make(appRoot: URL, options?: IgnitorOptions): Promise<Kernel> |
| 49 | async make(ignitorOrAppRoot: URL | Ignitor, options?: IgnitorOptions): Promise<Kernel> { |
| 50 | if (ignitorOrAppRoot instanceof Ignitor) { |
| 51 | const app = ignitorOrAppRoot.createApp('console') |
| 52 | await app.init() |
| 53 | return createAceKernel(app) |
| 54 | } |
| 55 | |
| 56 | const app = new IgnitorFactory() |
| 57 | .withCoreConfig() |
| 58 | .withCoreProviders() |
| 59 | .create(ignitorOrAppRoot, options!) |
| 60 | .createApp('console') |
| 61 | |
| 62 | await app.init() |
| 63 | return createAceKernel(app) |
| 64 | } |
| 65 | } |