-
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
Modelling devDependencies and scripts #3861
Comments
This looks great, having to import anything considered a 'built in' feature seems wrong, importing all the dev dependencies in one file up at the top looks good to me. Easy to read and reason about. I use the VS Code |
FWIW I have a (rough) task runner I've been working on that somewhat resembles the patterns being suggested here. Might be of interest. https://github.com/iAmNathanJ/devo |
I think this is something that is better developed outside of std for now (like @iAmNathanJ has done) - since it's experimenting with new patterns. I can imagine this developing into a pattern that many people use and it then making sense to merge into std, but we have finite bandwidth to maintain std and I'd rather focus that on stuff we know we need. So maybe a good idea - but not something I want to take on right now :) |
There will never be a need for a project to explicitly tell Deno about its dev dependencies. There is no package manager and this is all handled naturally by imports. However, we should have a convention that documents all of a project's dev dependencies in one place. A
dev_deps.ts
mirroring thedeps.ts
.There was also discussion about how to model the "scripts" field in package.json. We should try to solve this in a way that naturally introduces the above. i.e. combine the "scripts" and "devDependencies" fields into one convention.
The closest suggestion that exists for this, from #2584 (comment), is to have a top-level
tools.ts
which looks likeThe webpack dev dependency is "documented" in that string.
One suggestion is to rethink this so that
https://deno.land/x/webpack/mod.ts
is a static import oftools.ts
. We could tell authors of tools to export something like amain(args: String[])
. This function could be accepted as a value in the object given toregister()
instead of just accepting strings. Also, maybe it shouldn't depend on something fromstd
?The text was updated successfully, but these errors were encountered: