Comments (16)
This is a very useful feature in Rails for me. Commenting here to show support.
from nest-cli.
Hey @MonsieurMan !
I love your idea !
- Maybe something like
nest tree
to list routes with module hierarchy should be awesome ! - For Guards maybe use colors on route tree ;-)
- For JSDoc swagger integration should be enough don't you think ?
- Async / Not like previous point as return type
from nest-cli.
OK cool ! I'll add tree command to the development plan !
from nest-cli.
I'm willing to implement this if you can point me in the right direction @thomrick @kamilmysliwiec
Right now it's not clear what was agreed on
from nest-cli.
Something like adonis node ace list:routes
will be awesome.
from nest-cli.
I could see it being made as a standalone command (nest-routes
or something). With the current setup of the Nest CLI it wouldn't be possible to add this in as a plugin for the CLI so you could do nest route
.
from nest-cli.
@Neosoulink I believe you can do that if you manage to replicate nestjs core router.
from nest-cli.
Any some news?
from nest-cli.
crawling the .controler.ts files
If you implement it this way then you will display routes from not used modules.
If you use monorepo and have multiple apps, you won't have a clue which app is using which routes.
from nest-cli.
@MonsieurMan ! Great Idea :)
from nest-cli.
@thomrick Hey, just checked out swagger, it pretty much make this idea useless as for routes, but the nest tree
idea is really nice.
We could build up a tree as JSON then displaying it to the CLI or anywhere else.
from nest-cli.
Any updates on this?
from nest-cli.
@kamilmysliwiec Don't you want to include it in the CLI? I still though that it should be possible to achieve it by static analysis similar to what we are doing here https://github.com/valueadd-poland/ng-packages/tree/master/packages/linking-tool
from nest-cli.
Is there any option to provide it as a plugin?
from nest-cli.
it should be possible to achieve it by static analysis
I don't think we can implement such feature without running the app, which ins't good because I don't want to start the app just to list all the routes 😞 Not easily, at least
That is because when we use the versioning feature, it's defined at runtime below
from nest-cli.
Any update for this one?
I mean, can we just at least read the controllers and display the routes, without having to run the app... or something like that?
from nest-cli.
Related Issues (20)
- Nest start failling when path has spaces HOT 4
- Integrate Docker Support in NestJS CLI through --with-docker Flag HOT 1
- Nest CLI Assets Property Fails to Copy Files on Windows Due to Path Format HOT 8
- Unknown OS Version on newer os versions HOT 16
- The application won't reload after compiled OS X HOT 5
- Errors in default webpack config file (webpack.config.json) are silently ignored HOT 1
- Regression > Copying assets is broken on Windows devices
- Facing module unavailability error on changing the bundler to swc HOT 1
- odd behavior when the config file can't be read HOT 5
- Add remove command to delete a non-root project from monorepo and auto-update nest-cli.json HOT 2
- false-positive warning message for `@nestjs/schematics` HOT 1
- [Feature] - nestCLI option to generate Command and Events HOT 1
- Update gitignore to include more common files or folders HOT 5
- The `roodDir` compiler option not being respected when using SWC HOT 7
- add "compilerOptions.sourceMaps" option is nest-cli-json HOT 1
- Assets only works on top level project. HOT 1
- Clean up dependencies HOT 1
- Listing all the routes/endpoints with their types and middleware in project HOT 2
- Error cause is not logged in dev:watch mode HOT 1
- broken path in build output HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nest-cli.