Nest: [Discussion] Need more informations on contribution guide

Created on 10 Sep 2018  路  8Comments  路  Source: nestjs/nest

I'm submitting a...


[ ] Regression 
[ ] Bug report
[ ] Feature request
[x] Documentation issue or request
[ ] Support request => Please do not submit support request here, instead post your question on Stack Overflow.

Current behavior


Today, I want to contribute to Nest. So I read the CONTRIBUTING.md and I didn't find any information about the commands to execute (npm link etc.) to contribute on NestJS.

Expected behavior


I would appreciate to have a real developer guide with examples to help me contribute to NestJS.

What is the motivation / use case for changing the behavior?

I think with a real guide and a presentation of the different packages available on the framework, it would be much easier for developers to contribute to this project.

Environment

Nest version: 5.3.6

For Tooling issues:

  • Node version: 10.10.0
  • Platform: Mac
build discussion 馃敟

Most helpful comment

I would appreciate to have a real developer guide with examples to help me contribute to NestJS.

Agree. There is not much information how you actually locally build, run and test nest locally.
I think we could improve and adapt a similar Contributing guideline as yarn since it is super simple and straight forward.

a presentation of the different packages available on the framework

A dependency graph similar to the one I drew for a different issue would be nice. Since I am a super lazy, DevOps-loving-guy, I do not want to redraw such graph for every release. I've found npm-dependencies.com which is open source, but does not have a good developer interface as far as I know.
It generates beautiful graphs though (ignore @nestjs/terminus & @nestjs/websocket).

Dependency Graph

Unfortunately I do not think this Graph will not be able to generate easily in a Pipeline without some hacky workaround with Puppeteer. So if anybody knows a better solution, please feel free to comment them down.

All 8 comments

I would appreciate to have a real developer guide with examples to help me contribute to NestJS.

Agree. There is not much information how you actually locally build, run and test nest locally.
I think we could improve and adapt a similar Contributing guideline as yarn since it is super simple and straight forward.

a presentation of the different packages available on the framework

A dependency graph similar to the one I drew for a different issue would be nice. Since I am a super lazy, DevOps-loving-guy, I do not want to redraw such graph for every release. I've found npm-dependencies.com which is open source, but does not have a good developer interface as far as I know.
It generates beautiful graphs though (ignore @nestjs/terminus & @nestjs/websocket).

Dependency Graph

Unfortunately I do not think this Graph will not be able to generate easily in a Pipeline without some hacky workaround with Puppeteer. So if anybody knows a better solution, please feel free to comment them down.

Yes - contributor developer documentation would be great. CONTRIBUTING.md has a reference to "developer documentation", but the link is dead (https://github.com/nestjs/nest/blob/master/docs/DEVELOPER.md)
:(

An Example of the Need
I pulled the source to try and create a PR with a minor update. When I run "npm install", it automatically triggers a gulp build step, which fails with multiple error messages (examples below), and makes me think I am missing something critical. Not sure what to do from here.

Example of the build errors

packages\core\adapters\express-adapter.ts(123,28): error TS2339: Property 'prefix' does not exist on type 'ServeStaticOptions'.
packages\core\adapters\express-adapter.ts(124,31): error TS2339: Property 'prefix' does not exist on type 'ServeStaticOptions'.
packages\core\injector\injector.ts(2,3): error TS2305: Module '"/nest/node_modules/@nestjs/common/constants"' has no exported member 'OPTIONAL_DEPS_METADATA'.
packages\core\injector\module.ts(8,39): error TS2307: Cannot find module '@nestjs/common/utils/random-string-generator.util'.
packages\core\nest-application-context.ts(5,3): error TS2305: Module '"/nest/node_modules/@nestjs/common/index"' has no exported member 'OnApplicationBootstrap'.
packages\core\scanner.ts(14,39): error TS2307: Cannot find module '@nestjs/common/utils/random-string-generator.util'.

Lets wait until #1060 is merged with the new developer.md file. It will change the processes anyway.
@ahrnee are you on latest? Maybe remove the node_modules folder and run npm install again.

@ahrnee the issue is that you need to build packages twice. Errors will disappear then.

Yep - building packages multiple times took care of the issue (three times was the lucky number). Thanks @BrunnerLivio and @kamilmysliwiec for the follow-up.

@kamilmysliwiec Lines 83-275 are not visible on github or in vs-code markdown preview. Presumably other markdown renderers too.

<!-- 1. Please sign our [Contributor License Agreement (CLA)](#cla) before sending PRs.
  We cannot accept code without this. -->

https://github.com/nestjs/nest/blame/ceabe7418a343617687d346bd8670ec018f12429/CONTRIBUTING.md#L81

this is breaking those lines. As a result your link above doesn't work.

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

rlesniak picture rlesniak  路  3Comments

anyx picture anyx  路  3Comments

FranciZ picture FranciZ  路  3Comments

2233322 picture 2233322  路  3Comments

tronginc picture tronginc  路  3Comments