-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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
Discussion: About dependency management #6030
Comments
Any discussion about first party package management should be taken to #47. But if you'd just like to showcase and gather opinions on your project, a better place to do so would be the Discord https://discord.gg/deno. |
Thank you @nayeemrmn, I got it, but I really want to know what the attitude of the core members is, @ry was against to the centralized repositories and even a package.json file, but now there is a third party modules page on the deno official site, I think it's good for building the ecosystem around deno. Module contributors need a file to describe the info of their projects, and package.json is only a specification file for the module owners, deno or the dependency manager will never need to lookup or download any dependency by package.json. |
@acathur What are you proposing, then? If it's just for people to describe their projects and Deno won't need to look it up, how is this an actionable issue? Your title is as vague as it could possibly be and the description is, in clear terms, simply asking for feedback on your third party project. Please edit them. |
@nayeemrmn Sorry for my English, I'm not a native speaker, maybe made some mistakes in my sentences. I am not trying to introduce my project or asking feedback here, I mean I'm worrying about this solution is disapproved by the deno team, or do you have some guidelines or plans or suggestions on dependency management tool? |
I've created make-deno-edition to make npm packages written in typescript compatible with deno - is working on badges - usage proof of this here https://repl.it/@balupton/badges-deno - has been used now to make 32 node packages compatible with deno - you can use project to automatically generate the readme instructions for the deno edition - and can use boundation to automatically scaffold your projects to automate the entire process - start-of-week is an example where different entries are used for node, deno, and web browsers |
@acathur I do think that this is an acceptable approach for a third party dependency management tool. And I do like your approach. Also, I don’t think, that this should be part of Deno itself... As you’ve pointed out, the major problem with URL imports is that they would have to be maintained all over the place. With import maps, Deno already has a solution for that. The only difference is, that your tool automates and standardizes the import map creation and also creates a |
This can be closed as a duplicate of #47. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Nothing actionable here. Closing |
There're some discussions about dependency management. I think when we people started to use deno to build complex programs, a dependency manager is desired. Removing node_modules from the project folder is a brilliant revolutionary design, but I'm not sure whether the package.json file also should be deprecated. Currently, people use a
deps.ts
file orimport_map.json
to manage the external modules, it seems like a central specification file is necessary, and module versioning is another important thing in production environment. In my opinion, manage these modules manually is definitely a terrible development experience, so I built this stuff dep, a simple cli to manage project dependencies, but unfortunately, I used a file calledpkg.json
(maybe will change tospec.json
) to describe the information of the project, and a dependencies map likepackage.json
do, the program will automatically generate or update a import map after adding external modules, so you can import any module with a relative URL. Also I kept all the features below:I just want to know if this is an acceptable solution? What are your opinions on this?
The text was updated successfully, but these errors were encountered: