diff options
Diffstat (limited to 'ace')
-rw-r--r-- | ace | 19 |
1 files changed, 7 insertions, 12 deletions
@@ -1,21 +1,16 @@ | |||
1 | 'use strict' | ||
2 | |||
3 | /* | 1 | /* |
4 | |-------------------------------------------------------------------------- | 2 | |-------------------------------------------------------------------------- |
5 | | Ace Commands | 3 | | Ace Commands |
6 | |-------------------------------------------------------------------------- | 4 | |-------------------------------------------------------------------------- |
7 | | | 5 | | |
8 | | The ace file is just a regular Javascript file but with no extension. You | 6 | | This file is the entry point for running ace commands. |
9 | | can call `node ace` followed by the command name and it just works. | ||
10 | | | ||
11 | | Also you can use `adonis` followed by the command name, since the adonis | ||
12 | | global proxies all the ace commands. | ||
13 | | | 7 | | |
14 | */ | 8 | */ |
15 | 9 | ||
16 | const { Ignitor } = require('@adonisjs/ignitor') | 10 | require('reflect-metadata') |
11 | require('source-map-support').install({ handleUncaughtExceptions: false }) | ||
17 | 12 | ||
18 | new Ignitor(require('@adonisjs/fold')) | 13 | const { Ignitor } = require('@adonisjs/core/build/standalone') |
19 | .appRoot(__dirname) | 14 | new Ignitor(__dirname) |
20 | .fireAce() | 15 | .ace() |
21 | .catch(console.error) | 16 | .handle(process.argv.slice(2)) |