-
Notifications
You must be signed in to change notification settings - Fork 5.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
minor documentation improvement - closes #7602 #7603
Conversation
minor update making the benefit of deps.ts even clearer - esp. for not so experienced developers
You need to run |
Maybe this is a good chance to bring up whether it should be added to the documentation about discouraging users from export from mod.ts export * from "dep url/mod.ts" You might be importing like 1000 different things when u only want a few things. Kinda like the npm problem where people started splitting up packages. This allowed them to only have the parts they wanted to be imported instead of 10k things. Eventually you will get dependencies that have dependencies and you are back to the old node_modules system of having tons of unused imports. Deno is awesome, because it allows you to pick & choose what you want for maximum efficiency. export { stuff, that, you, need, only } from "dep url/specific url" Which of the following would you recommend to someone? export { delay } from "https://deno.land/std@0.67.0/async/delay.ts";
export * from "https://deno.land/std@0.67.0/async/mod.ts"
// Imagine if the lib actually had a main mod.ts file like what most libs are doing
export * from "https://deno.land/std@0.67.0/mod.ts" |
Ref #6196 (review). |
@michael-spengler You have to use python 2 for now. See #3294 |
still figuring things out :) |
Did you clone submodules? |
Thank you @lucacasonato for your patience and sorry for not having checked this properly earlier: https://github.com/denoland/deno/blob/master/docs/contributing/building_from_source.md#cloning-the-repository After |
Formatting worked 👍 That issue happens because you don't have rust, cargo, or rustfmt installed. |
just a minor thing but it might help many devs to understand why some modules use deps.ts and some don't.