-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Prototype: npm run diff #6862
Prototype: npm run diff #6862
Conversation
3232b60
to
6af15ce
Compare
It seems this currently requires a separate physical clone of BCD. How about using some git command to load previous state, if it's possible? Edit: maybe |
This in fact requires two additional copies of BCD, or at least that's how I've been using it. In a CI setup, my thinking was to first check out the target branch and save the state of BCD there into a JSON file, and then check out the head branch merged with the target branch, treating that as the RHS. This will be easy enough to make work. For local use, however, it would be nice to be able to just run Accepting that limitation, then a bunch of |
Perhaps if we were careful, going forward, we could use the package version to guard against this sort of thing? e.g., bake in an assumption that |
@ddbeck yep, I think that would work. For transparency, I don't know when I can make time to work on this, so if someone has all the pieces in their head and wants to go implement it, don't let this WIP PR stand in your way. I think that https://github.com/mdn/yari/tree/master/client/src/document/ingredients/browser-compatibility-table is the new BCD table rendering for Yari, but I don't know if it can be used standalone. |
Thanks for the update, I implemented the git way in #7486. Still text-only. |
Thanks @saschanaz! I'll keep this open for the time being since I use it every day myself, but once the scaffolding is there I might rework some of this on top of your script. |
#7486 has now been merged -- thanks for getting the ball rolling on this script! |
No description provided.