Skip to content

How can I create a folder structure with default files using command in adonis? #1329

Answered by McSneaky
hkmsadek asked this question in Help
Discussion options

You must be logged in to vote

To create files and populate them you can use NodeJS FS:
https://nodejs.org/api/fs.html

fs.promises are worth a look at: https://nodejs.org/api/fs.html#fs_fs_promises_api can use await for them

To make custom ace command follow the docs:
https://adonisjs.com/docs/4.1/ace#_creating_commands

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@hkmsadek
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by thetutlage
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
3 participants