feat!: migrate Dev Center CLI to TypeScript Heroku oclif plugin#50
Merged
Conversation
…nter:open/preview
…nforce c8 coverage on src/**/*.ts
…stored lib unit tests, components inventory, npm/GitHub Actions Dependabot, and plugin usage updates to README
…o netrc-parser reads them correctly
…ugh oclif’s this.debug
…feat/ruby-to-typescript-2
…etrc on Windows and .netrc elsewhere, matching netrc-parser
Co-authored-by: Katy Bowman <katy.bowman@salesforce.com> Signed-off-by: Michael Malave <michael.malave@salesforce.com>
…, use ux.stdout, stub browser opens via sinon, add nock init, switch to shared ESLint config, and align tsconfig/package.json with CLI
…indentation and camelcase issues in unit tests
…auto-generated command docs
…feat/ruby-to-typescript-3
…rride in CONTRIBUTING.md
feat: Implement devcenter pull and push commands in oclif v4
…dundant slug checks, and add test helpers
…pace-only bodies as {}, and move devcenter:push’s debug init below its imports (with tests).
…feat/integrate-credential-mgmt
… only content length (plus existing metadata lines)
…feat/integrate-credential-mgmt
… docs and components inventory
feat: ruby to typescript 3
… article-resolve for pull and open, remove netrc-parser and netrc test helpers, and add a bin/run → run.js symlink for local invocations
feat: integrate credential manager
chore: bump to v2.0.0 and refresh readme after publish
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Replaces the legacy Ruby gem CLI with the npm Heroku plugin
@heroku-cli/plugin-devcenter(oclif v4, ESM, TypeScript). Implementsdevcenter:open,devcenter:preview,devcenter:pull, anddevcenter:pushwith a TypeScript client, preview server, and shared article resolution.Authentication uses the Heroku CLI stack (
this.heroku.getAuth()/@heroku-cli/command) instead of standalone netrc parsing.Gemfile,lib/,bin/devcenter, etc.),bin/runtooling, CI (including coverage via c8), Dependabot/PR template updates,Type of Change
If you want a single primary checkbox, use feat! and note the rest in Additional Context.
Verification
Must be logged in with
heroku loginCI should run the same build/test/lint path (
pretestruns build;posttestruns lint).Additional Context
bin/devcenterworkflow are removed; users installheroku plugins:install @heroku-cli/plugin-devcenterand runheroku devcenter:*(Node ≥22).getAuth()), sharedarticle-resolvefor pull/open, client hardening (e.g.getJsoninvalid/empty body handling, pull debug logging without dumping full article JSON).@heroku-cli/plugin-devcenter,.c8rc/ 80% coverage expectations,.github/workflows, Dependabot, PR template; latest commit on branch aligns package.json / lockfile / README to v2.0.0 after publish.Related Issue
Closes W-20888419