diff options
author | MCMXC <16797721+mcmxcdev@users.noreply.github.com> | 2024-02-10 18:19:14 -0700 |
---|---|---|
committer | Vijay A <vraravam@users.noreply.github.com> | 2024-02-13 06:59:44 +0530 |
commit | 7584d2d7a7110aef0331ebfa178b2295842c59fa (patch) | |
tree | 900cd71237e6231b57936fcce77ff229cd459041 /commands | |
parent | upgrade recipes submodule (diff) | |
download | ferdium-server-7584d2d7a7110aef0331ebfa178b2295842c59fa.tar.gz ferdium-server-7584d2d7a7110aef0331ebfa178b2295842c59fa.tar.zst ferdium-server-7584d2d7a7110aef0331ebfa178b2295842c59fa.zip |
refactor: project maintenance
- work in progress
Diffstat (limited to 'commands')
-rw-r--r-- | commands/index.ts | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/commands/index.ts b/commands/index.ts deleted file mode 100644 index d2ad5fb..0000000 --- a/commands/index.ts +++ /dev/null | |||
@@ -1,21 +0,0 @@ | |||
1 | import { listDirectoryFiles } from '@adonisjs/core/build/standalone'; | ||
2 | import Application from '@ioc:Adonis/Core/Application'; | ||
3 | |||
4 | /* | ||
5 | |-------------------------------------------------------------------------- | ||
6 | | Exporting an array of commands | ||
7 | |-------------------------------------------------------------------------- | ||
8 | | | ||
9 | | Instead of manually exporting each file from this directory, we use the | ||
10 | | helper `listDirectoryFiles` to recursively collect and export an array | ||
11 | | of filenames. | ||
12 | | | ||
13 | | Couple of things to note: | ||
14 | | | ||
15 | | 1. The file path must be relative from the project root and not this directory. | ||
16 | | 2. We must ignore this file to avoid getting into an infinite loop | ||
17 | | | ||
18 | */ | ||
19 | export default listDirectoryFiles(__dirname, Application.appRoot, [ | ||
20 | './commands/index', | ||
21 | ]); | ||