Proposal: Easier debugging across related projects
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 25/100
- Issue type
- Feature
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- javascript
- Domain
- developer-experience, documentation, tooling
Research direction
Start by reproducing the local dependency failures described for donejs/donejs, donejs/generator-donejs, donejs/cli, and bit-docs/bit-docs. Inspect the linked issue and pull request, then trace the bit-docs/bin/bit-docs entry point and package.json handling. Done should mean local packages can be debugged without publishing to npm, with any required steps documented in the appropriate CONTRIBUTING.md.
Written by the indexing model from the issue text.
Description
I propose we make it easier to locally debug interdependent projects.
I've run into three instances so far (outlined below) where I've had to modify source code when, ideally, I should have just been able to add my local dependency to package.json and that's it.
We need to facilitate these common workflows (probably a couple if checks in the various source codes would suffice) and should document any additional steps in the appropriate CONTRIBUTING.md
1: donejs/donejs + donejs/generator-donejs
https://github.com/donejs/generator-donejs/issues/135#issuecomment-284203738
2: donejs/donejs + donejs/cli
https://github.com/donejs/cli/pull/82#issuecomment-289615878
3: bit-docs/bit-docs + project using bit-docs + local html generation plugin
I have to publish my package:
https://www.npmjs.com/package/bit-docs-website-theme
Just in order to use it locally. Seems like I should be able to do:
"bit-docs-website-theme": "file:///Users/leoj/src/bitovi/wip/bit-docs-website-theme"
In package.json, but that causes a 404 failure because some part of code insists on DLing from npm when I do ./node_modules/bit-docs/bin/bit-docs -fd.
So, I was forced to publish this package just to test it out, because I can't locate the bit of code that is attempting npm download, and making everything fail.
It's probably a similar case to that which I ran into when trying to locally debug the DoneJS CLI:
https://github.com/donejs/generator-donejs/issues/135#issuecomment-289917095
It seems like there must be some facility for debugging packages locally, without having to publish to npm constantly?
There must be a better way than adding INJECTING LOCAL COPY hacks (like I do in the link below), Right?
https://github.com/donejs/cli/pull/82#issuecomment-289615878
If not, a facility to allow local debugging would be a great thing to add into the frameworks in these places where it currently forces the use of remote npm.
- Dominant language
- JavaScript
- Stars
- 1
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from donejs/developer-relations
-
greenkeeper
Difficulty 4/5 3-5 days Newbie friendliness 25/100
-
developer relations
donejs/developer-relations#60 · 1 comment · 1 assignee ·
-
HTTP2 in DoneJS Open
Difficulty 4/5 3-5 days Newbie friendliness 35/100
donejs/developer-relations#58 · 1 comment ·
-
steal-push blog post Open
Difficulty 3/5 1-2 days Newbie friendliness 30/100
-
Difficulty 4/5 3-5 days Newbie friendliness 20/100
All issues in donejs/developer-relations
Similar issues
-
bug
Difficulty 1/5 Under an hour Newbie friendliness 90/100
apache/cloudstack#14222 ·
-
Browser Waiting for: Product Owner
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
getsentry/sentry-javascript#24577 · 1 comment ·
-
curation good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
amponce/archive-movie-browser#186 ·
-
light
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
aemdemos/patients-stryker#253 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
clerk/javascript#9852 ·