Bogdan-Lyashenko / codecrumbs

Learn, design or document codebase by putting breadcrumbs in source code. Live updates, multi-language support and more.
https://codecrumbs.io
BSD 3-Clause "New" or "Revised" License
2.71k stars 101 forks source link

Support Nodejs #28

Closed joshuaalpuerto closed 5 years ago

joshuaalpuerto commented 5 years ago

Hi,

This project looks really cool! Sorry if am being dumb or not looking for more info. But I can't seems to work this with my node-boilerplate. I added it as dependency and running it with this syntax.

$ npx codecrumbs -d src -e index.js

Environment

Bogdan-Lyashenko commented 5 years ago

Hi, thanks for reporting) I will check, must be something simple, most likely with -e index.index (it’s ouside src directory)

Bogdan-Lyashenko commented 5 years ago

Hey, @joshuaalpuerto can you please try to pull the latest version of codecrumbs and also use ‘container.js’(you have there) as entry point. So, run codecrumbs -d src -e src/container.js

joshuaalpuerto commented 5 years ago

@Bogdan-Lyashenko It works! May I know the reason why it needs to point to my container.js? Is it because thats where I wired app most of the code? Why it wont work on index? just curious.

Thanks!

screen shot 2019-02-26 at 10 02 44 am
Bogdan-Lyashenko commented 5 years ago

Hi there, because index.js was not child item of src. Everything there is built around tree-like data structure,src is root of the tree and all files (as well as entry point) must be inside of it in order to work ;)