deepkit-framework
deepkit-framework copied to clipboard
[Feature] Tool to generate a new project
The idea behind this is to be able to start a project with all the files configured for the deepkit.
Some issues that arise with the implementation approach:
- How should this cli be integrated with the
app.tscli, which is used to start a project? - Should the cli just create the project and then the user use
app.ts?
Some inspirations to use in creating the tool:
- Laravel uses a website to create bash file for startup
- Nest has its in the cli
- Adonis uses npm init command
- Using deepkit library like
npx deepkit new my-project
Personally, looking at the current deepkit design, the best option is to use npm init. After initialization, everything can be done using app.ts.
But, if you have plans to extend the functionality of the deepkit cli without relying on app.ts, then using npx deepkit might be better.
First version has been added here https://github.com/deepkit/deepkit-framework/commit/3088e829c89e09d7621eb916501877344064e8a8
This is released. You can try it via
npm init @deepkit/app my-app
Let me know what you think💪