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)
- Unable to upgrade to the latest version, node version is v16.20.2 HOT 3
- Add an option to skip testing and linting packages/configurations when creating a new project. HOT 3
- Class generator creating file inside non specified folder on Windows 11 HOT 4
- Critical Security Vulnerability in formidable version used by superagent and supertest HOT 1
- SWC: NestCLI still starts the Nest server, even TypeCheck with TSC fails. HOT 1
- npm WARN deprecated [email protected] HOT 13
- Allow to generate type declaration files with `tsc` when the builder is `swc` or to skip building in `nest start`
- paths don't resolved when building with SWC HOT 2
- Ability to use node cli parameters in nest cli commands HOT 4
- Nest CLI Project version issue HOT 1
- Add option to restart Application on Asset change HOT 2
- Remove 'source-map-support' package in favor of Nodejs built-in source mapping feature HOT 1
- [discussion] Duplicates and rename resource structure command HOT 2
- NestJS with SWC has a different behavior than with TSC on monorepos HOT 1
- aviod compilation with swc + type-checking when there are type errors HOT 2
- Faster startup with -w parameter on Windows platform in monorepo mode HOT 1
- Hidden assets are not copied HOT 2
- Unblocking TypeScript project reference builds HOT 1
- nest generate command not working on [email protected] HOT 15
- nest generate command not working on node v22.5.1 and typescript v5.5.3 HOT 3
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.