GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — feat: migrate RTE plugin to cli-plugins monorepo · contentstack/cli-plugins@b66a599

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • .github
    • config
      • release.json
    • workflows
      • release-v2-beta-plugins.yml
      • unit-test.yml
  • AGENTS.md
  • MIGRATE-RTE-MIGRATION.md
  • MIGRATION.md
  • packages/contentstack-migrate-rte
    • .eslintrc
    • .gitignore
    • .nycrc
    • LICENSE
    • README.md
    • SECURITY.md
    • bin
      • run.cmd
      • run.js
    • package.json
    • src
      • commands/cm/entries
        • migrate-html-rte.js
      • hooks/init
        • load-chalk.js
      • lib/util
        • config_schema.json
        • index.js
    • test
      • commands
        • json-migration.test.js
      • dummy
        • config
          • config-for-images-in-rte.json
          • config-locale-2.json
          • config-locale.json
          • config.json
          • configForGlobalField.json
          • configForInvalidContentType.json
          • configForMultipleRte.json
          • configWithEmptyPath.json
          • config_locale.json
          • invalidConfig.json
        • contentTypeResponse.json
        • defaultConfig.json
        • entriesResponse.json
        • expectedEntriesResponse.json
        • globalFieldResponse.json
      • mocha.opts
      • nock-setup.js
      • setup.js
      • utils
        • index.js
  • skills/dev-workflow
    • SKILL.md
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎.github/config/release.json‎

Copy file name to clipboardExpand all lines: .github/config/release.json
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
"seed": false,
1111
"bootstrap": false,
1212
"branches": false,
13-
"apps-cli": false
13+
"apps-cli": false,
14+
"migrate-rte": false
1415
}
1516
}
Collapse file

‎.github/workflows/release-v2-beta-plugins.yml‎

Copy file name to clipboardExpand all lines: .github/workflows/release-v2-beta-plugins.yml
+9Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,3 +150,12 @@ jobs:
150150
token: ${{ secrets.NPM_TOKEN }}
151151
package: ./packages/contentstack-apps-cli/package.json
152152
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

‎.github/workflows/unit-test.yml‎

Copy file name to clipboardExpand all lines: .github/workflows/unit-test.yml
+4Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,3 +70,7 @@ jobs:
7070
- name: Run tests for Contentstack Apps CLI
7171
working-directory: ./packages/contentstack-apps-cli
7272
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

‎AGENTS.md‎

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 numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
| Field | Detail |
88
| --- | --- |
99
| **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.). |
1111
| **Out of scope (if any):** | The **core** CLI aggregation lives in the separate `cli` monorepo; this repo ships plugin packages only. |
1212

1313
## Tech stack (at a glance)
@@ -48,6 +48,13 @@ CI: [.github/workflows/unit-test.yml](.github/workflows/unit-test.yml) and other
4848
- **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.
4949
- **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)
5050

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+
5158
## Using Cursor (optional)
5259

5360
If you use **Cursor**, [.cursor/rules/README.md](.cursor/rules/README.md) only points to **`AGENTS.md`**—same docs as everyone else.
Collapse file

‎MIGRATE-RTE-MIGRATION.md‎

Copy file name to clipboard
+40Lines changed: 40 additions & 0 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
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

‎MIGRATION.md‎

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 numberDiff line numberDiff line change
@@ -158,6 +158,8 @@ npm install -g @contentstack/cli-cm-migrate-rte
158158
csdx plugins:install @contentstack/[email protected]
159159
```
160160

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+
161163
**Usage:**
162164
After installation, RTE migration commands will be available through the CLI:
163165
```bash
Collapse file

‎packages/contentstack-migrate-rte/.eslintrc‎

Copy file name to clipboard
+3Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"extends": "oclif"
3+
}
Collapse file

‎packages/contentstack-migrate-rte/.gitignore‎

Copy file name to clipboard
+16Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
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

‎packages/contentstack-migrate-rte/.nycrc‎

Copy file name to clipboard
+12Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
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

‎packages/contentstack-migrate-rte/LICENSE‎

Copy file name to clipboard
+21Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
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.

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.