GeezerVison is showing github.com — feat: migrate RTE plugin to cli-plugins monorepo · contentstack/cli-plugins@b66a599
File treeExpand file treeCollapse file tree Open diff view settings packages/contentstack-migrate-rte
Expand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboardExpand all lines: .github/config/release.json +2-1Lines changed: 2 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
| 10 | 10 | "seed": false, | 11 | 11 | "bootstrap": false, | 12 | 12 | "branches": false, | 13 | | - "apps-cli": false | | 13 | + "apps-cli": false, | | 14 | + "migrate-rte": false | 14 | 15 | } | 15 | 16 | } |
Collapse file Copy file name to clipboardExpand all lines: .github/workflows/release-v2-beta-plugins.yml +9Lines changed: 9 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -150,3 +150,12 @@ jobs: | 150 | 150 | token: ${{ secrets.NPM_TOKEN }} | 151 | 151 | package: ./packages/contentstack-apps-cli/package.json | 152 | 152 | tag: beta | | 153 | + | | 154 | + # Migrate RTE | | 155 | + - name: Publishing migrate-rte (Beta) | | 156 | + uses: JS-DevTools/npm-publish@v3 | | 157 | + with: | | 158 | + token: ${{ secrets.NPM_TOKEN }} | | 159 | + package: ./packages/contentstack-migrate-rte/package.json | | 160 | + access: public | | 161 | + tag: beta |
Collapse file Copy file name to clipboardExpand all lines: .github/workflows/unit-test.yml +4Lines changed: 4 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 70 | 70 | - name: Run tests for Contentstack Apps CLI | 71 | 71 | working-directory: ./packages/contentstack-apps-cli | 72 | 72 | run: npm run test:unit:report:json | | 73 | + | | 74 | + - name: Run tests for Contentstack Migrate RTE | | 75 | + working-directory: ./packages/contentstack-migrate-rte | | 76 | + run: npm test |
Collapse file Copy file name to clipboardExpand all lines: AGENTS.md +8-1Lines changed: 8 additions & 1 deletion - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
| 7 | 7 | | Field | Detail | | 8 | 8 | | --- | --- | | 9 | 9 | | **Name:** | Contentstack CLI plugins (pnpm monorepo; root package name `csdx`) | | 10 | | -| **Purpose:** | OCLIF plugins that extend the Contentstack CLI (import/export, clone, migration, seed, audit, variants, Developer Hub apps, etc.). | | | 10 | +| **Purpose:** | OCLIF plugins that extend the Contentstack CLI (import/export, clone, migration, migrate RTE, seed, audit, variants, Developer Hub apps, etc.). | | 11 | 11 | | **Out of scope (if any):** | The **core** CLI aggregation lives in the separate `cli` monorepo; this repo ships plugin packages only. | | 12 | 12 |
| 13 | 13 | ## Tech stack (at a glance) | @@ -48,6 +48,13 @@ CI: [.github/workflows/unit-test.yml](.github/workflows/unit-test.yml) and other | 48 | 48 | - **v1 / v2:** Maintain on `v1-dev` (1.x CLI deps) and `v2-dev` / `v2-beta` (2.x beta deps) branches; align `@contentstack/cli-command` and `@contentstack/cli-utilities` versions with the target CLI line. | 49 | 49 | - **Docs:** OCLIF / `app:*` commands → [contentstack-cli](skills/contentstack-cli/SKILL.md#apps-cli-commands-app); SDK, manifests, GraphQL, HTTP → [framework](skills/framework/SKILL.md#apps-cli-plugin-contentstackapps-cli) | 50 | 50 |
| | 51 | +## Migrate RTE plugin (`@contentstack/cli-cm-migrate-rte`) | | 52 | + | | 53 | +- **Package path:** [packages/contentstack-migrate-rte](packages/contentstack-migrate-rte) | | 54 | +- **npm name:** `@contentstack/cli-cm-migrate-rte` (unchanged) | | 55 | +- **Migrated from:** [contentstack/cli-cm-migrate-rte](https://github.com/contentstack/cli-cm-migrate-rte) — see [MIGRATE-RTE-MIGRATION.md](MIGRATE-RTE-MIGRATION.md) | | 56 | +- **Command:** `csdx cm:entries:migrate-html-rte` — JS sources in `src/`; `pnpm --filter @contentstack/cli-cm-migrate-rte run build` (`oclif manifest`) and `test` (see [dev-workflow](skills/dev-workflow/SKILL.md)) | | 57 | + | 51 | 58 | ## Using Cursor (optional) | 52 | 59 |
| 53 | 60 | If you use **Cursor**, [.cursor/rules/README.md](.cursor/rules/README.md) only points to **`AGENTS.md`**—same docs as everyone else. |
Collapse file Copy file name to clipboard +40Lines changed: 40 additions & 0 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
| | 1 | +# Migrate RTE migration: standalone repo → cli-plugins monorepo | | 2 | + | | 3 | +## Summary | | 4 | + | | 5 | +**@contentstack/cli-cm-migrate-rte** moved from [contentstack/cli-cm-migrate-rte](https://github.com/contentstack/cli-cm-migrate-rte) into [contentstack/cli-plugins](https://github.com/contentstack/cli-plugins) at **`packages/contentstack-migrate-rte`**. | | 6 | + | | 7 | +The npm package name and command **`csdx cm:entries:migrate-html-rte`** are unchanged. | | 8 | + | | 9 | +## Repository and issues | | 10 | + | | 11 | +| Before | After | | | 12 | +| --- | --- | | | 13 | +| `github.com/contentstack/cli-cm-migrate-rte` | `github.com/contentstack/cli-plugins` → `packages/contentstack-migrate-rte` | | | 14 | +| Issues on standalone repo | [cli-plugins issues](https://github.com/contentstack/cli-plugins/issues) | | | 15 | + | | 16 | +## Version lines (1.x vs 2.x) | | 17 | + | | 18 | +| CLI line | cli-plugins branch | Plugin notes | | | 19 | +| --- | --- | --- | | | 20 | +| **1.x** | `v1-dev` / `v1-beta` | 1.x-compatible `cli-command` / `cli-utilities` | | | 21 | +| **2.x beta** | `v2-dev` / `v2-beta` | e.g. `2.0.0-beta.x`; uses `@contentstack/json-rte-serializer`, jsdom | | | 22 | + | | 23 | +## Install | | 24 | + | | 25 | +```bash | | 26 | +csdx plugins:install @contentstack/cli-cm-migrate-rte | | 27 | +# or | | 28 | +npm install -g @contentstack/cli-cm-migrate-rte | | 29 | +``` | | 30 | + | | 31 | +## Local development | | 32 | + | | 33 | +```bash | | 34 | +cd cli-dev-workspace | | 35 | +pnpm install | | 36 | +pnpm --filter @contentstack/cli-cm-migrate-rte run build | | 37 | +pnpm --filter @contentstack/cli-cm-migrate-rte test | | 38 | +``` | | 39 | + | | 40 | +Core CLI: add `@contentstack/cli-cm-migrate-rte` to `cli/packages/contentstack` dependencies and `oclif.plugins` (use `workspace:*` in cli-dev-workspace). |
Collapse file Copy file name to clipboardExpand all lines: MIGRATION.md +2Lines changed: 2 additions & 0 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
@@ -158,6 +158,8 @@ npm install -g @contentstack/cli-cm-migrate-rte | 158 | 158 | | 159 | 159 | ``` | 160 | 160 |
| | 161 | +**Source repository:** Plugin code lives in [cli-plugins](https://github.com/contentstack/cli-plugins) at `packages/contentstack-migrate-rte` (formerly [cli-cm-migrate-rte](https://github.com/contentstack/cli-cm-migrate-rte)). See [MIGRATE-RTE-MIGRATION.md](./MIGRATE-RTE-MIGRATION.md). | | 162 | + | 161 | 163 | **Usage:** | 162 | 164 | After installation, RTE migration commands will be available through the CLI: | 163 | 165 | ```bash | |
Collapse file Copy file name to clipboard +3Lines changed: 3 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
| | 1 | +{ | | 2 | + "extends": "oclif" | | 3 | +} |
Collapse file Copy file name to clipboard +16Lines changed: 16 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
| | 1 | +*-debug.log | | 2 | +*-error.log | | 3 | +/.nyc_output | | 4 | +/dist | | 5 | +/tmp | | 6 | +/logs | | 7 | +/yarn.lock | | 8 | +node_modules | | 9 | +/coverage | | 10 | +.DS_Store | | 11 | +# Snyk Security Extension - AI Rules (auto-generated) | | 12 | +.cursor/rules/snyk_rules.mdc | | 13 | +oclif.manifest.json | | 14 | +# Husky 9 internal folder (created by "husky" on install; do not commit) | | 15 | +.husky/_ | | 16 | +*.log |
Collapse file Copy file name to clipboard +12Lines changed: 12 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
| | 1 | +{ | | 2 | + "all": true, | | 3 | + "extension": [".js"], | | 4 | + "include": ["src/**/*.js"], | | 5 | + "exclude": ["test/**", "node_modules/**"], | | 6 | + "reporter": ["text"], | | 7 | + "check-coverage": true, | | 8 | + "statements": 80, | | 9 | + "branches": 60, | | 10 | + "functions": 80, | | 11 | + "lines": 80 | | 12 | +} |
Collapse file Copy file name to clipboard +21Lines changed: 21 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
| | 1 | +MIT License | | 2 | + | | 3 | +Copyright (c) 2026 Contentstack | | 4 | + | | 5 | +Permission is hereby granted, free of charge, to any person obtaining a copy | | 6 | +of this software and associated documentation files (the "Software"), to deal | | 7 | +in the Software without restriction, including without limitation the rights | | 8 | +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | | 9 | +copies of the Software, and to permit persons to whom the Software is | | 10 | +furnished to do so, subject to the following conditions: | | 11 | + | | 12 | +The above copyright notice and this permission notice shall be included in all | | 13 | +copies or substantial portions of the Software. | | 14 | + | | 15 | +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | | 16 | +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | | 17 | +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | | 18 | +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | | 19 | +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | | 20 | +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | | 21 | +SOFTWARE. |
|