From 3b2002a49cff67e31d87de2db3420726899d3d99 Mon Sep 17 00:00:00 2001 From: lmgyuan Date: Sat, 10 Aug 2024 14:40:58 -0700 Subject: [PATCH 1/5] add postinstall.js and a deprecation markdown --- apps/generator/docs/deprecate-cli.sj-ag.md | 85 ++++++++++++++++++++++ apps/generator/package.json | 3 +- apps/generator/scripts/postinstall.js | 29 ++++++++ 3 files changed, 116 insertions(+), 1 deletion(-) create mode 100644 apps/generator/docs/deprecate-cli.sj-ag.md create mode 100644 apps/generator/scripts/postinstall.js diff --git a/apps/generator/docs/deprecate-cli.sj-ag.md b/apps/generator/docs/deprecate-cli.sj-ag.md new file mode 100644 index 000000000..77fac6b6e --- /dev/null +++ b/apps/generator/docs/deprecate-cli.sj-ag.md @@ -0,0 +1,85 @@ +--- +title: "Deprecate Cli.js" +weight: 170 +--- + +# Migration Guide from “ag/asyncapi-generator” to AsyncAPI CLI + +## Overview +With the introduction of the AsyncAPI CLI, the use of `Cli.js` for documentation generation in the AsyncAPI generator repository is being deprecated. This guide provides detailed instructions on how to transition from `ag` to the new AsyncAPI CLI. + +## Why Migrate? +- **Enhanced Features:** The AsyncAPI CLI offers advanced features and improvements. +- **Consistency:** Ensures consistent command usage across different environments. +- **Support and Maintenance:** Future updates and support will focus on the AsyncAPI CLI. + +## Deprecated `ag/asyncapi-generator` Options and Their AsyncAPI CLI Equivalents +Here is a list of `ag/asyncapi-generator` options and their equivalents in the AsyncAPI CLI: + +- **-d, --disable-hook [hooks...]** + - **AsyncAPI CLI Equivalent:** `asyncapi generate fromTemplate