Adonis js: Rename system folders
-
I have a question about the adonis js franchise-- the thing is, I need to change the folder.
resources
Totalsrc
And the folder is in it.views
Totalpages
so he can see the Rendering files.*.edge
And he's got the pages. How do I do that?
-
After a long search of the answer, I finally found the answer to my question: Turns out there's a file for that purpose.
adonisrc.json
♪ This code should be added:{ "typescript": true, "directories": { "config": "config", "public": "public", "contracts": "contracts", "providers": "providers", "database": "database", "migrations": "database/migrations", "seeds": "database/seeders", "resources": "src", "views": "src/pages", "start": "start", "tmp": "tmp", "tests": "tests" } }
Every key to the object is responsible for the director of the folder that should be. The only thing left to change the way in other files and web-pack.