diff --git a/docs/recipes/dotnet/migratetonet6.md b/docs/recipes/dotnet/migratetonet6.md index 1a7e2103a4..614a408978 100644 --- a/docs/recipes/dotnet/migratetonet6.md +++ b/docs/recipes/dotnet/migratetonet6.md @@ -45,110 +45,8 @@ recipeList: This recipe has no required configuration options. It can be activated by adding a dependency on `org.openrewrite.recipe:rewrite-dotnet:{{VERSION_REWRITE_DOTNET}}` in your build file or by running a shell command (in which case no build changes are needed): - -1. Add the following to your `build.gradle` file: -```groovy title="build.gradle" -plugins { - id("org.openrewrite.rewrite") version("{{VERSION_REWRITE_GRADLE_PLUGIN}}") -} - -rewrite { - activeRecipe("org.openrewrite.dotnet.MigrateToNet6") - setExportDatatables(true) -} - -repositories { - mavenCentral() -} - -dependencies { - rewrite("org.openrewrite.recipe:rewrite-dotnet:{{VERSION_REWRITE_DOTNET}}") -} -``` - -2. Run `gradle rewriteRun` to run the recipe. - - - - -1. Create a file named `init.gradle` in the root of your project. - -```groovy title="init.gradle" -initscript { - repositories { - maven { url "https://plugins.gradle.org/m2" } - } - dependencies { classpath("org.openrewrite:plugin:{{VERSION_REWRITE_GRADLE_PLUGIN}}") } -} -rootProject { - plugins.apply(org.openrewrite.gradle.RewritePlugin) - dependencies { - rewrite("org.openrewrite.recipe:rewrite-dotnet:{{VERSION_REWRITE_DOTNET}}") - } - rewrite { - activeRecipe("org.openrewrite.dotnet.MigrateToNet6") - setExportDatatables(true) - } - afterEvaluate { - if (repositories.isEmpty()) { - repositories { - mavenCentral() - } - } - } -} -``` - -2. Run the recipe. - -```shell title="shell" -gradle --init-script init.gradle rewriteRun -``` - - - - -1. Add the following to your `pom.xml` file: - -```xml title="pom.xml" - - - - - org.openrewrite.maven - rewrite-maven-plugin - {{VERSION_REWRITE_MAVEN_PLUGIN}} - - true - - org.openrewrite.dotnet.MigrateToNet6 - - - - - org.openrewrite.recipe - rewrite-dotnet - {{VERSION_REWRITE_DOTNET}} - - - - - - -``` - -2. Run `mvn rewrite:run` to run the recipe. - - - -You will need to have [Maven](https://maven.apache.org/download.cgi) installed on your machine before you can run the following command. - -```shell title="shell" -mvn -U org.openrewrite.maven:rewrite-maven-plugin:run -Drewrite.recipeArtifactCoordinates=org.openrewrite.recipe:rewrite-dotnet:RELEASE -Drewrite.activeRecipes=org.openrewrite.dotnet.MigrateToNet6 -Drewrite.exportDatatables=true -``` - You will need to have configured the [Moderne CLI](https://docs.moderne.io/user-documentation/moderne-cli/getting-started/cli-intro) on your machine before you can run the following command. diff --git a/docs/recipes/dotnet/migratetonet7.md b/docs/recipes/dotnet/migratetonet7.md index 3ccce077cf..37627fb811 100644 --- a/docs/recipes/dotnet/migratetonet7.md +++ b/docs/recipes/dotnet/migratetonet7.md @@ -45,110 +45,8 @@ recipeList: This recipe has no required configuration options. It can be activated by adding a dependency on `org.openrewrite.recipe:rewrite-dotnet:{{VERSION_REWRITE_DOTNET}}` in your build file or by running a shell command (in which case no build changes are needed): - -1. Add the following to your `build.gradle` file: -```groovy title="build.gradle" -plugins { - id("org.openrewrite.rewrite") version("{{VERSION_REWRITE_GRADLE_PLUGIN}}") -} - -rewrite { - activeRecipe("org.openrewrite.dotnet.MigrateToNet7") - setExportDatatables(true) -} - -repositories { - mavenCentral() -} - -dependencies { - rewrite("org.openrewrite.recipe:rewrite-dotnet:{{VERSION_REWRITE_DOTNET}}") -} -``` - -2. Run `gradle rewriteRun` to run the recipe. - - - - -1. Create a file named `init.gradle` in the root of your project. - -```groovy title="init.gradle" -initscript { - repositories { - maven { url "https://plugins.gradle.org/m2" } - } - dependencies { classpath("org.openrewrite:plugin:{{VERSION_REWRITE_GRADLE_PLUGIN}}") } -} -rootProject { - plugins.apply(org.openrewrite.gradle.RewritePlugin) - dependencies { - rewrite("org.openrewrite.recipe:rewrite-dotnet:{{VERSION_REWRITE_DOTNET}}") - } - rewrite { - activeRecipe("org.openrewrite.dotnet.MigrateToNet7") - setExportDatatables(true) - } - afterEvaluate { - if (repositories.isEmpty()) { - repositories { - mavenCentral() - } - } - } -} -``` - -2. Run the recipe. - -```shell title="shell" -gradle --init-script init.gradle rewriteRun -``` - - - - -1. Add the following to your `pom.xml` file: - -```xml title="pom.xml" - - - - - org.openrewrite.maven - rewrite-maven-plugin - {{VERSION_REWRITE_MAVEN_PLUGIN}} - - true - - org.openrewrite.dotnet.MigrateToNet7 - - - - - org.openrewrite.recipe - rewrite-dotnet - {{VERSION_REWRITE_DOTNET}} - - - - - - -``` - -2. Run `mvn rewrite:run` to run the recipe. - - - -You will need to have [Maven](https://maven.apache.org/download.cgi) installed on your machine before you can run the following command. - -```shell title="shell" -mvn -U org.openrewrite.maven:rewrite-maven-plugin:run -Drewrite.recipeArtifactCoordinates=org.openrewrite.recipe:rewrite-dotnet:RELEASE -Drewrite.activeRecipes=org.openrewrite.dotnet.MigrateToNet7 -Drewrite.exportDatatables=true -``` - You will need to have configured the [Moderne CLI](https://docs.moderne.io/user-documentation/moderne-cli/getting-started/cli-intro) on your machine before you can run the following command. diff --git a/docs/recipes/dotnet/migratetonet8.md b/docs/recipes/dotnet/migratetonet8.md index 568be2fff3..d54deb51b4 100644 --- a/docs/recipes/dotnet/migratetonet8.md +++ b/docs/recipes/dotnet/migratetonet8.md @@ -45,110 +45,8 @@ recipeList: This recipe has no required configuration options. It can be activated by adding a dependency on `org.openrewrite.recipe:rewrite-dotnet:{{VERSION_REWRITE_DOTNET}}` in your build file or by running a shell command (in which case no build changes are needed): - -1. Add the following to your `build.gradle` file: -```groovy title="build.gradle" -plugins { - id("org.openrewrite.rewrite") version("{{VERSION_REWRITE_GRADLE_PLUGIN}}") -} - -rewrite { - activeRecipe("org.openrewrite.dotnet.MigrateToNet8") - setExportDatatables(true) -} - -repositories { - mavenCentral() -} - -dependencies { - rewrite("org.openrewrite.recipe:rewrite-dotnet:{{VERSION_REWRITE_DOTNET}}") -} -``` - -2. Run `gradle rewriteRun` to run the recipe. - - - - -1. Create a file named `init.gradle` in the root of your project. - -```groovy title="init.gradle" -initscript { - repositories { - maven { url "https://plugins.gradle.org/m2" } - } - dependencies { classpath("org.openrewrite:plugin:{{VERSION_REWRITE_GRADLE_PLUGIN}}") } -} -rootProject { - plugins.apply(org.openrewrite.gradle.RewritePlugin) - dependencies { - rewrite("org.openrewrite.recipe:rewrite-dotnet:{{VERSION_REWRITE_DOTNET}}") - } - rewrite { - activeRecipe("org.openrewrite.dotnet.MigrateToNet8") - setExportDatatables(true) - } - afterEvaluate { - if (repositories.isEmpty()) { - repositories { - mavenCentral() - } - } - } -} -``` - -2. Run the recipe. - -```shell title="shell" -gradle --init-script init.gradle rewriteRun -``` - - - - -1. Add the following to your `pom.xml` file: - -```xml title="pom.xml" - - - - - org.openrewrite.maven - rewrite-maven-plugin - {{VERSION_REWRITE_MAVEN_PLUGIN}} - - true - - org.openrewrite.dotnet.MigrateToNet8 - - - - - org.openrewrite.recipe - rewrite-dotnet - {{VERSION_REWRITE_DOTNET}} - - - - - - -``` - -2. Run `mvn rewrite:run` to run the recipe. - - - -You will need to have [Maven](https://maven.apache.org/download.cgi) installed on your machine before you can run the following command. - -```shell title="shell" -mvn -U org.openrewrite.maven:rewrite-maven-plugin:run -Drewrite.recipeArtifactCoordinates=org.openrewrite.recipe:rewrite-dotnet:RELEASE -Drewrite.activeRecipes=org.openrewrite.dotnet.MigrateToNet8 -Drewrite.exportDatatables=true -``` - You will need to have configured the [Moderne CLI](https://docs.moderne.io/user-documentation/moderne-cli/getting-started/cli-intro) on your machine before you can run the following command. diff --git a/docs/recipes/dotnet/migratetonet9.md b/docs/recipes/dotnet/migratetonet9.md index d6f6e79cb9..e4e0466d04 100644 --- a/docs/recipes/dotnet/migratetonet9.md +++ b/docs/recipes/dotnet/migratetonet9.md @@ -45,110 +45,8 @@ recipeList: This recipe has no required configuration options. It can be activated by adding a dependency on `org.openrewrite.recipe:rewrite-dotnet:{{VERSION_REWRITE_DOTNET}}` in your build file or by running a shell command (in which case no build changes are needed): - -1. Add the following to your `build.gradle` file: -```groovy title="build.gradle" -plugins { - id("org.openrewrite.rewrite") version("{{VERSION_REWRITE_GRADLE_PLUGIN}}") -} - -rewrite { - activeRecipe("org.openrewrite.dotnet.MigrateToNet9") - setExportDatatables(true) -} - -repositories { - mavenCentral() -} - -dependencies { - rewrite("org.openrewrite.recipe:rewrite-dotnet:{{VERSION_REWRITE_DOTNET}}") -} -``` - -2. Run `gradle rewriteRun` to run the recipe. - - - - -1. Create a file named `init.gradle` in the root of your project. - -```groovy title="init.gradle" -initscript { - repositories { - maven { url "https://plugins.gradle.org/m2" } - } - dependencies { classpath("org.openrewrite:plugin:{{VERSION_REWRITE_GRADLE_PLUGIN}}") } -} -rootProject { - plugins.apply(org.openrewrite.gradle.RewritePlugin) - dependencies { - rewrite("org.openrewrite.recipe:rewrite-dotnet:{{VERSION_REWRITE_DOTNET}}") - } - rewrite { - activeRecipe("org.openrewrite.dotnet.MigrateToNet9") - setExportDatatables(true) - } - afterEvaluate { - if (repositories.isEmpty()) { - repositories { - mavenCentral() - } - } - } -} -``` - -2. Run the recipe. - -```shell title="shell" -gradle --init-script init.gradle rewriteRun -``` - - - - -1. Add the following to your `pom.xml` file: - -```xml title="pom.xml" - - - - - org.openrewrite.maven - rewrite-maven-plugin - {{VERSION_REWRITE_MAVEN_PLUGIN}} - - true - - org.openrewrite.dotnet.MigrateToNet9 - - - - - org.openrewrite.recipe - rewrite-dotnet - {{VERSION_REWRITE_DOTNET}} - - - - - - -``` - -2. Run `mvn rewrite:run` to run the recipe. - - - -You will need to have [Maven](https://maven.apache.org/download.cgi) installed on your machine before you can run the following command. - -```shell title="shell" -mvn -U org.openrewrite.maven:rewrite-maven-plugin:run -Drewrite.recipeArtifactCoordinates=org.openrewrite.recipe:rewrite-dotnet:RELEASE -Drewrite.activeRecipes=org.openrewrite.dotnet.MigrateToNet9 -Drewrite.exportDatatables=true -``` - You will need to have configured the [Moderne CLI](https://docs.moderne.io/user-documentation/moderne-cli/getting-started/cli-intro) on your machine before you can run the following command. diff --git a/docs/recipes/dotnet/upgradeassistant.md b/docs/recipes/dotnet/upgradeassistant.md index 854319728e..1d2ce0a6aa 100644 --- a/docs/recipes/dotnet/upgradeassistant.md +++ b/docs/recipes/dotnet/upgradeassistant.md @@ -38,62 +38,8 @@ recipeList: Now that `com.yourorg.UpgradeAssistantExample` has been defined, activate it and take a dependency on `org.openrewrite.recipe:rewrite-dotnet:{{VERSION_REWRITE_DOTNET}}` in your build file: - -1. Add the following to your `build.gradle` file: -```groovy title="build.gradle" -plugins { - id("org.openrewrite.rewrite") version("{{VERSION_REWRITE_GRADLE_PLUGIN}}") -} - -rewrite { - activeRecipe("com.yourorg.UpgradeAssistantExample") - setExportDatatables(true) -} - -repositories { - mavenCentral() -} - -dependencies { - rewrite("org.openrewrite.recipe:rewrite-dotnet:{{VERSION_REWRITE_DOTNET}}") -} -``` -2. Run `gradle rewriteRun` to run the recipe. - - - -1. Add the following to your `pom.xml` file: - -```xml title="pom.xml" - - - - - org.openrewrite.maven - rewrite-maven-plugin - {{VERSION_REWRITE_MAVEN_PLUGIN}} - - true - - com.yourorg.UpgradeAssistantExample - - - - - org.openrewrite.recipe - rewrite-dotnet - {{VERSION_REWRITE_DOTNET}} - - - - - - -``` -2. Run `mvn rewrite:run` to run the recipe. - You will need to have configured the [Moderne CLI](https://docs.moderne.io/user-documentation/moderne-cli/getting-started/cli-intro) on your machine before you can run the following command. diff --git a/docs/recipes/dotnet/upgradeassistantanalyze.md b/docs/recipes/dotnet/upgradeassistantanalyze.md index b6001a8bcb..ca08160fa7 100644 --- a/docs/recipes/dotnet/upgradeassistantanalyze.md +++ b/docs/recipes/dotnet/upgradeassistantanalyze.md @@ -40,62 +40,8 @@ recipeList: Now that `com.yourorg.UpgradeAssistantAnalyzeExample` has been defined, activate it and take a dependency on `org.openrewrite.recipe:rewrite-dotnet:{{VERSION_REWRITE_DOTNET}}` in your build file: - -1. Add the following to your `build.gradle` file: -```groovy title="build.gradle" -plugins { - id("org.openrewrite.rewrite") version("{{VERSION_REWRITE_GRADLE_PLUGIN}}") -} - -rewrite { - activeRecipe("com.yourorg.UpgradeAssistantAnalyzeExample") - setExportDatatables(true) -} - -repositories { - mavenCentral() -} - -dependencies { - rewrite("org.openrewrite.recipe:rewrite-dotnet:{{VERSION_REWRITE_DOTNET}}") -} -``` -2. Run `gradle rewriteRun` to run the recipe. - - - -1. Add the following to your `pom.xml` file: - -```xml title="pom.xml" - - - - - org.openrewrite.maven - rewrite-maven-plugin - {{VERSION_REWRITE_MAVEN_PLUGIN}} - - true - - com.yourorg.UpgradeAssistantAnalyzeExample - - - - - org.openrewrite.recipe - rewrite-dotnet - {{VERSION_REWRITE_DOTNET}} - - - - - - -``` -2. Run `mvn rewrite:run` to run the recipe. - You will need to have configured the [Moderne CLI](https://docs.moderne.io/user-documentation/moderne-cli/getting-started/cli-intro) on your machine before you can run the following command. diff --git a/docs/recipes/nodejs/dependencyvulnerabilitycheck.md b/docs/recipes/nodejs/dependencyvulnerabilitycheck.md index 54d55f3456..61216651e4 100644 --- a/docs/recipes/nodejs/dependencyvulnerabilitycheck.md +++ b/docs/recipes/nodejs/dependencyvulnerabilitycheck.md @@ -26,110 +26,8 @@ _This software composition analysis (SCA) tool detects and upgrades dependencies This recipe has no required configuration options. It can be activated by adding a dependency on `org.openrewrite.recipe:rewrite-nodejs:{{VERSION_REWRITE_NODEJS}}` in your build file or by running a shell command (in which case no build changes are needed): - -1. Add the following to your `build.gradle` file: -```groovy title="build.gradle" -plugins { - id("org.openrewrite.rewrite") version("{{VERSION_REWRITE_GRADLE_PLUGIN}}") -} - -rewrite { - activeRecipe("org.openrewrite.nodejs.DependencyVulnerabilityCheck") - setExportDatatables(true) -} - -repositories { - mavenCentral() -} - -dependencies { - rewrite("org.openrewrite.recipe:rewrite-nodejs:{{VERSION_REWRITE_NODEJS}}") -} -``` - -2. Run `gradle rewriteRun` to run the recipe. - - - - -1. Create a file named `init.gradle` in the root of your project. - -```groovy title="init.gradle" -initscript { - repositories { - maven { url "https://plugins.gradle.org/m2" } - } - dependencies { classpath("org.openrewrite:plugin:{{VERSION_REWRITE_GRADLE_PLUGIN}}") } -} -rootProject { - plugins.apply(org.openrewrite.gradle.RewritePlugin) - dependencies { - rewrite("org.openrewrite.recipe:rewrite-nodejs:{{VERSION_REWRITE_NODEJS}}") - } - rewrite { - activeRecipe("org.openrewrite.nodejs.DependencyVulnerabilityCheck") - setExportDatatables(true) - } - afterEvaluate { - if (repositories.isEmpty()) { - repositories { - mavenCentral() - } - } - } -} -``` - -2. Run the recipe. - -```shell title="shell" -gradle --init-script init.gradle rewriteRun -``` - - - - -1. Add the following to your `pom.xml` file: - -```xml title="pom.xml" - - - - - org.openrewrite.maven - rewrite-maven-plugin - {{VERSION_REWRITE_MAVEN_PLUGIN}} - - true - - org.openrewrite.nodejs.DependencyVulnerabilityCheck - - - - - org.openrewrite.recipe - rewrite-nodejs - {{VERSION_REWRITE_NODEJS}} - - - - - - -``` - -2. Run `mvn rewrite:run` to run the recipe. - - - -You will need to have [Maven](https://maven.apache.org/download.cgi) installed on your machine before you can run the following command. - -```shell title="shell" -mvn -U org.openrewrite.maven:rewrite-maven-plugin:run -Drewrite.recipeArtifactCoordinates=org.openrewrite.recipe:rewrite-nodejs:RELEASE -Drewrite.activeRecipes=org.openrewrite.nodejs.DependencyVulnerabilityCheck -Drewrite.exportDatatables=true -``` - You will need to have configured the [Moderne CLI](https://docs.moderne.io/user-documentation/moderne-cli/getting-started/cli-intro) on your machine before you can run the following command. diff --git a/docs/recipes/nodejs/search/databaseinteractioninsights.md b/docs/recipes/nodejs/search/databaseinteractioninsights.md index 50bec10242..3ad97eaf5d 100644 --- a/docs/recipes/nodejs/search/databaseinteractioninsights.md +++ b/docs/recipes/nodejs/search/databaseinteractioninsights.md @@ -194,110 +194,8 @@ recipeList: This recipe has no required configuration options. It can be activated by adding a dependency on `org.openrewrite.recipe:rewrite-nodejs:{{VERSION_REWRITE_NODEJS}}` in your build file or by running a shell command (in which case no build changes are needed): - -1. Add the following to your `build.gradle` file: -```groovy title="build.gradle" -plugins { - id("org.openrewrite.rewrite") version("{{VERSION_REWRITE_GRADLE_PLUGIN}}") -} - -rewrite { - activeRecipe("org.openrewrite.nodejs.search.DatabaseInteractionInsights") - setExportDatatables(true) -} - -repositories { - mavenCentral() -} - -dependencies { - rewrite("org.openrewrite.recipe:rewrite-nodejs:{{VERSION_REWRITE_NODEJS}}") -} -``` - -2. Run `gradle rewriteRun` to run the recipe. - - - - -1. Create a file named `init.gradle` in the root of your project. - -```groovy title="init.gradle" -initscript { - repositories { - maven { url "https://plugins.gradle.org/m2" } - } - dependencies { classpath("org.openrewrite:plugin:{{VERSION_REWRITE_GRADLE_PLUGIN}}") } -} -rootProject { - plugins.apply(org.openrewrite.gradle.RewritePlugin) - dependencies { - rewrite("org.openrewrite.recipe:rewrite-nodejs:{{VERSION_REWRITE_NODEJS}}") - } - rewrite { - activeRecipe("org.openrewrite.nodejs.search.DatabaseInteractionInsights") - setExportDatatables(true) - } - afterEvaluate { - if (repositories.isEmpty()) { - repositories { - mavenCentral() - } - } - } -} -``` - -2. Run the recipe. - -```shell title="shell" -gradle --init-script init.gradle rewriteRun -``` - - - - -1. Add the following to your `pom.xml` file: - -```xml title="pom.xml" - - - - - org.openrewrite.maven - rewrite-maven-plugin - {{VERSION_REWRITE_MAVEN_PLUGIN}} - - true - - org.openrewrite.nodejs.search.DatabaseInteractionInsights - - - - - org.openrewrite.recipe - rewrite-nodejs - {{VERSION_REWRITE_NODEJS}} - - - - - - -``` - -2. Run `mvn rewrite:run` to run the recipe. - - - -You will need to have [Maven](https://maven.apache.org/download.cgi) installed on your machine before you can run the following command. - -```shell title="shell" -mvn -U org.openrewrite.maven:rewrite-maven-plugin:run -Drewrite.recipeArtifactCoordinates=org.openrewrite.recipe:rewrite-nodejs:RELEASE -Drewrite.activeRecipes=org.openrewrite.nodejs.search.DatabaseInteractionInsights -Drewrite.exportDatatables=true -``` - You will need to have configured the [Moderne CLI](https://docs.moderne.io/user-documentation/moderne-cli/getting-started/cli-intro) on your machine before you can run the following command. diff --git a/docs/recipes/nodejs/search/dependencyinsight.md b/docs/recipes/nodejs/search/dependencyinsight.md index ae6e351af8..297ef60c2d 100644 --- a/docs/recipes/nodejs/search/dependencyinsight.md +++ b/docs/recipes/nodejs/search/dependencyinsight.md @@ -42,62 +42,8 @@ recipeList: Now that `com.yourorg.DependencyInsightExample` has been defined, activate it and take a dependency on `org.openrewrite.recipe:rewrite-nodejs:{{VERSION_REWRITE_NODEJS}}` in your build file: - -1. Add the following to your `build.gradle` file: -```groovy title="build.gradle" -plugins { - id("org.openrewrite.rewrite") version("{{VERSION_REWRITE_GRADLE_PLUGIN}}") -} - -rewrite { - activeRecipe("com.yourorg.DependencyInsightExample") - setExportDatatables(true) -} - -repositories { - mavenCentral() -} - -dependencies { - rewrite("org.openrewrite.recipe:rewrite-nodejs:{{VERSION_REWRITE_NODEJS}}") -} -``` -2. Run `gradle rewriteRun` to run the recipe. - - - -1. Add the following to your `pom.xml` file: - -```xml title="pom.xml" - - - - - org.openrewrite.maven - rewrite-maven-plugin - {{VERSION_REWRITE_MAVEN_PLUGIN}} - - true - - com.yourorg.DependencyInsightExample - - - - - org.openrewrite.recipe - rewrite-nodejs - {{VERSION_REWRITE_NODEJS}} - - - - - - -``` -2. Run `mvn rewrite:run` to run the recipe. - You will need to have configured the [Moderne CLI](https://docs.moderne.io/user-documentation/moderne-cli/getting-started/cli-intro) on your machine before you can run the following command. diff --git a/docs/recipes/nodejs/search/findnodeprojects.md b/docs/recipes/nodejs/search/findnodeprojects.md index 9fc14da9bc..1e935e75c8 100644 --- a/docs/recipes/nodejs/search/findnodeprojects.md +++ b/docs/recipes/nodejs/search/findnodeprojects.md @@ -20,110 +20,8 @@ _Find Node.js projects and summarize data about them._ This recipe has no required configuration options. It can be activated by adding a dependency on `org.openrewrite.recipe:rewrite-nodejs:{{VERSION_REWRITE_NODEJS}}` in your build file or by running a shell command (in which case no build changes are needed): - -1. Add the following to your `build.gradle` file: -```groovy title="build.gradle" -plugins { - id("org.openrewrite.rewrite") version("{{VERSION_REWRITE_GRADLE_PLUGIN}}") -} - -rewrite { - activeRecipe("org.openrewrite.nodejs.search.FindNodeProjects") - setExportDatatables(true) -} - -repositories { - mavenCentral() -} - -dependencies { - rewrite("org.openrewrite.recipe:rewrite-nodejs:{{VERSION_REWRITE_NODEJS}}") -} -``` - -2. Run `gradle rewriteRun` to run the recipe. - - - - -1. Create a file named `init.gradle` in the root of your project. - -```groovy title="init.gradle" -initscript { - repositories { - maven { url "https://plugins.gradle.org/m2" } - } - dependencies { classpath("org.openrewrite:plugin:{{VERSION_REWRITE_GRADLE_PLUGIN}}") } -} -rootProject { - plugins.apply(org.openrewrite.gradle.RewritePlugin) - dependencies { - rewrite("org.openrewrite.recipe:rewrite-nodejs:{{VERSION_REWRITE_NODEJS}}") - } - rewrite { - activeRecipe("org.openrewrite.nodejs.search.FindNodeProjects") - setExportDatatables(true) - } - afterEvaluate { - if (repositories.isEmpty()) { - repositories { - mavenCentral() - } - } - } -} -``` - -2. Run the recipe. - -```shell title="shell" -gradle --init-script init.gradle rewriteRun -``` - - - - -1. Add the following to your `pom.xml` file: - -```xml title="pom.xml" - - - - - org.openrewrite.maven - rewrite-maven-plugin - {{VERSION_REWRITE_MAVEN_PLUGIN}} - - true - - org.openrewrite.nodejs.search.FindNodeProjects - - - - - org.openrewrite.recipe - rewrite-nodejs - {{VERSION_REWRITE_NODEJS}} - - - - - - -``` - -2. Run `mvn rewrite:run` to run the recipe. - - - -You will need to have [Maven](https://maven.apache.org/download.cgi) installed on your machine before you can run the following command. - -```shell title="shell" -mvn -U org.openrewrite.maven:rewrite-maven-plugin:run -Drewrite.recipeArtifactCoordinates=org.openrewrite.recipe:rewrite-nodejs:RELEASE -Drewrite.activeRecipes=org.openrewrite.nodejs.search.FindNodeProjects -Drewrite.exportDatatables=true -``` - You will need to have configured the [Moderne CLI](https://docs.moderne.io/user-documentation/moderne-cli/getting-started/cli-intro) on your machine before you can run the following command. diff --git a/docs/recipes/nodejs/search/formhandlinginsights.md b/docs/recipes/nodejs/search/formhandlinginsights.md index 76a514da18..cc6b5984e7 100644 --- a/docs/recipes/nodejs/search/formhandlinginsights.md +++ b/docs/recipes/nodejs/search/formhandlinginsights.md @@ -194,110 +194,8 @@ recipeList: This recipe has no required configuration options. It can be activated by adding a dependency on `org.openrewrite.recipe:rewrite-nodejs:{{VERSION_REWRITE_NODEJS}}` in your build file or by running a shell command (in which case no build changes are needed): - -1. Add the following to your `build.gradle` file: -```groovy title="build.gradle" -plugins { - id("org.openrewrite.rewrite") version("{{VERSION_REWRITE_GRADLE_PLUGIN}}") -} - -rewrite { - activeRecipe("org.openrewrite.nodejs.search.FormHandlingInsights") - setExportDatatables(true) -} - -repositories { - mavenCentral() -} - -dependencies { - rewrite("org.openrewrite.recipe:rewrite-nodejs:{{VERSION_REWRITE_NODEJS}}") -} -``` - -2. Run `gradle rewriteRun` to run the recipe. - - - - -1. Create a file named `init.gradle` in the root of your project. - -```groovy title="init.gradle" -initscript { - repositories { - maven { url "https://plugins.gradle.org/m2" } - } - dependencies { classpath("org.openrewrite:plugin:{{VERSION_REWRITE_GRADLE_PLUGIN}}") } -} -rootProject { - plugins.apply(org.openrewrite.gradle.RewritePlugin) - dependencies { - rewrite("org.openrewrite.recipe:rewrite-nodejs:{{VERSION_REWRITE_NODEJS}}") - } - rewrite { - activeRecipe("org.openrewrite.nodejs.search.FormHandlingInsights") - setExportDatatables(true) - } - afterEvaluate { - if (repositories.isEmpty()) { - repositories { - mavenCentral() - } - } - } -} -``` - -2. Run the recipe. - -```shell title="shell" -gradle --init-script init.gradle rewriteRun -``` - - - - -1. Add the following to your `pom.xml` file: - -```xml title="pom.xml" - - - - - org.openrewrite.maven - rewrite-maven-plugin - {{VERSION_REWRITE_MAVEN_PLUGIN}} - - true - - org.openrewrite.nodejs.search.FormHandlingInsights - - - - - org.openrewrite.recipe - rewrite-nodejs - {{VERSION_REWRITE_NODEJS}} - - - - - - -``` - -2. Run `mvn rewrite:run` to run the recipe. - - - -You will need to have [Maven](https://maven.apache.org/download.cgi) installed on your machine before you can run the following command. - -```shell title="shell" -mvn -U org.openrewrite.maven:rewrite-maven-plugin:run -Drewrite.recipeArtifactCoordinates=org.openrewrite.recipe:rewrite-nodejs:RELEASE -Drewrite.activeRecipes=org.openrewrite.nodejs.search.FormHandlingInsights -Drewrite.exportDatatables=true -``` - You will need to have configured the [Moderne CLI](https://docs.moderne.io/user-documentation/moderne-cli/getting-started/cli-intro) on your machine before you can run the following command. diff --git a/docs/recipes/nodejs/search/lintingformattinginsights.md b/docs/recipes/nodejs/search/lintingformattinginsights.md index a4ea82bbc7..e73a125f58 100644 --- a/docs/recipes/nodejs/search/lintingformattinginsights.md +++ b/docs/recipes/nodejs/search/lintingformattinginsights.md @@ -158,110 +158,8 @@ recipeList: This recipe has no required configuration options. It can be activated by adding a dependency on `org.openrewrite.recipe:rewrite-nodejs:{{VERSION_REWRITE_NODEJS}}` in your build file or by running a shell command (in which case no build changes are needed): - -1. Add the following to your `build.gradle` file: -```groovy title="build.gradle" -plugins { - id("org.openrewrite.rewrite") version("{{VERSION_REWRITE_GRADLE_PLUGIN}}") -} - -rewrite { - activeRecipe("org.openrewrite.nodejs.search.LintingFormattingInsights") - setExportDatatables(true) -} - -repositories { - mavenCentral() -} - -dependencies { - rewrite("org.openrewrite.recipe:rewrite-nodejs:{{VERSION_REWRITE_NODEJS}}") -} -``` - -2. Run `gradle rewriteRun` to run the recipe. - - - - -1. Create a file named `init.gradle` in the root of your project. - -```groovy title="init.gradle" -initscript { - repositories { - maven { url "https://plugins.gradle.org/m2" } - } - dependencies { classpath("org.openrewrite:plugin:{{VERSION_REWRITE_GRADLE_PLUGIN}}") } -} -rootProject { - plugins.apply(org.openrewrite.gradle.RewritePlugin) - dependencies { - rewrite("org.openrewrite.recipe:rewrite-nodejs:{{VERSION_REWRITE_NODEJS}}") - } - rewrite { - activeRecipe("org.openrewrite.nodejs.search.LintingFormattingInsights") - setExportDatatables(true) - } - afterEvaluate { - if (repositories.isEmpty()) { - repositories { - mavenCentral() - } - } - } -} -``` - -2. Run the recipe. - -```shell title="shell" -gradle --init-script init.gradle rewriteRun -``` - - - - -1. Add the following to your `pom.xml` file: - -```xml title="pom.xml" - - - - - org.openrewrite.maven - rewrite-maven-plugin - {{VERSION_REWRITE_MAVEN_PLUGIN}} - - true - - org.openrewrite.nodejs.search.LintingFormattingInsights - - - - - org.openrewrite.recipe - rewrite-nodejs - {{VERSION_REWRITE_NODEJS}} - - - - - - -``` - -2. Run `mvn rewrite:run` to run the recipe. - - - -You will need to have [Maven](https://maven.apache.org/download.cgi) installed on your machine before you can run the following command. - -```shell title="shell" -mvn -U org.openrewrite.maven:rewrite-maven-plugin:run -Drewrite.recipeArtifactCoordinates=org.openrewrite.recipe:rewrite-nodejs:RELEASE -Drewrite.activeRecipes=org.openrewrite.nodejs.search.LintingFormattingInsights -Drewrite.exportDatatables=true -``` - You will need to have configured the [Moderne CLI](https://docs.moderne.io/user-documentation/moderne-cli/getting-started/cli-intro) on your machine before you can run the following command. diff --git a/docs/recipes/nodejs/search/realtimecommunicationinsights.md b/docs/recipes/nodejs/search/realtimecommunicationinsights.md index 5dfcb500d4..60e5ce2c55 100644 --- a/docs/recipes/nodejs/search/realtimecommunicationinsights.md +++ b/docs/recipes/nodejs/search/realtimecommunicationinsights.md @@ -194,110 +194,8 @@ recipeList: This recipe has no required configuration options. It can be activated by adding a dependency on `org.openrewrite.recipe:rewrite-nodejs:{{VERSION_REWRITE_NODEJS}}` in your build file or by running a shell command (in which case no build changes are needed): - -1. Add the following to your `build.gradle` file: -```groovy title="build.gradle" -plugins { - id("org.openrewrite.rewrite") version("{{VERSION_REWRITE_GRADLE_PLUGIN}}") -} - -rewrite { - activeRecipe("org.openrewrite.nodejs.search.RealTimeCommunicationInsights") - setExportDatatables(true) -} - -repositories { - mavenCentral() -} - -dependencies { - rewrite("org.openrewrite.recipe:rewrite-nodejs:{{VERSION_REWRITE_NODEJS}}") -} -``` - -2. Run `gradle rewriteRun` to run the recipe. - - - - -1. Create a file named `init.gradle` in the root of your project. - -```groovy title="init.gradle" -initscript { - repositories { - maven { url "https://plugins.gradle.org/m2" } - } - dependencies { classpath("org.openrewrite:plugin:{{VERSION_REWRITE_GRADLE_PLUGIN}}") } -} -rootProject { - plugins.apply(org.openrewrite.gradle.RewritePlugin) - dependencies { - rewrite("org.openrewrite.recipe:rewrite-nodejs:{{VERSION_REWRITE_NODEJS}}") - } - rewrite { - activeRecipe("org.openrewrite.nodejs.search.RealTimeCommunicationInsights") - setExportDatatables(true) - } - afterEvaluate { - if (repositories.isEmpty()) { - repositories { - mavenCentral() - } - } - } -} -``` - -2. Run the recipe. - -```shell title="shell" -gradle --init-script init.gradle rewriteRun -``` - - - - -1. Add the following to your `pom.xml` file: - -```xml title="pom.xml" - - - - - org.openrewrite.maven - rewrite-maven-plugin - {{VERSION_REWRITE_MAVEN_PLUGIN}} - - true - - org.openrewrite.nodejs.search.RealTimeCommunicationInsights - - - - - org.openrewrite.recipe - rewrite-nodejs - {{VERSION_REWRITE_NODEJS}} - - - - - - -``` - -2. Run `mvn rewrite:run` to run the recipe. - - - -You will need to have [Maven](https://maven.apache.org/download.cgi) installed on your machine before you can run the following command. - -```shell title="shell" -mvn -U org.openrewrite.maven:rewrite-maven-plugin:run -Drewrite.recipeArtifactCoordinates=org.openrewrite.recipe:rewrite-nodejs:RELEASE -Drewrite.activeRecipes=org.openrewrite.nodejs.search.RealTimeCommunicationInsights -Drewrite.exportDatatables=true -``` - You will need to have configured the [Moderne CLI](https://docs.moderne.io/user-documentation/moderne-cli/getting-started/cli-intro) on your machine before you can run the following command. diff --git a/docs/recipes/nodejs/search/securityinsights.md b/docs/recipes/nodejs/search/securityinsights.md index 7653a28f99..0aca74b989 100644 --- a/docs/recipes/nodejs/search/securityinsights.md +++ b/docs/recipes/nodejs/search/securityinsights.md @@ -194,110 +194,8 @@ recipeList: This recipe has no required configuration options. It can be activated by adding a dependency on `org.openrewrite.recipe:rewrite-nodejs:{{VERSION_REWRITE_NODEJS}}` in your build file or by running a shell command (in which case no build changes are needed): - -1. Add the following to your `build.gradle` file: -```groovy title="build.gradle" -plugins { - id("org.openrewrite.rewrite") version("{{VERSION_REWRITE_GRADLE_PLUGIN}}") -} - -rewrite { - activeRecipe("org.openrewrite.nodejs.search.SecurityInsights") - setExportDatatables(true) -} - -repositories { - mavenCentral() -} - -dependencies { - rewrite("org.openrewrite.recipe:rewrite-nodejs:{{VERSION_REWRITE_NODEJS}}") -} -``` - -2. Run `gradle rewriteRun` to run the recipe. - - - - -1. Create a file named `init.gradle` in the root of your project. - -```groovy title="init.gradle" -initscript { - repositories { - maven { url "https://plugins.gradle.org/m2" } - } - dependencies { classpath("org.openrewrite:plugin:{{VERSION_REWRITE_GRADLE_PLUGIN}}") } -} -rootProject { - plugins.apply(org.openrewrite.gradle.RewritePlugin) - dependencies { - rewrite("org.openrewrite.recipe:rewrite-nodejs:{{VERSION_REWRITE_NODEJS}}") - } - rewrite { - activeRecipe("org.openrewrite.nodejs.search.SecurityInsights") - setExportDatatables(true) - } - afterEvaluate { - if (repositories.isEmpty()) { - repositories { - mavenCentral() - } - } - } -} -``` - -2. Run the recipe. - -```shell title="shell" -gradle --init-script init.gradle rewriteRun -``` - - - - -1. Add the following to your `pom.xml` file: - -```xml title="pom.xml" - - - - - org.openrewrite.maven - rewrite-maven-plugin - {{VERSION_REWRITE_MAVEN_PLUGIN}} - - true - - org.openrewrite.nodejs.search.SecurityInsights - - - - - org.openrewrite.recipe - rewrite-nodejs - {{VERSION_REWRITE_NODEJS}} - - - - - - -``` - -2. Run `mvn rewrite:run` to run the recipe. - - - -You will need to have [Maven](https://maven.apache.org/download.cgi) installed on your machine before you can run the following command. - -```shell title="shell" -mvn -U org.openrewrite.maven:rewrite-maven-plugin:run -Drewrite.recipeArtifactCoordinates=org.openrewrite.recipe:rewrite-nodejs:RELEASE -Drewrite.activeRecipes=org.openrewrite.nodejs.search.SecurityInsights -Drewrite.exportDatatables=true -``` - You will need to have configured the [Moderne CLI](https://docs.moderne.io/user-documentation/moderne-cli/getting-started/cli-intro) on your machine before you can run the following command. diff --git a/docs/recipes/nodejs/search/serversideframeworksinsights.md b/docs/recipes/nodejs/search/serversideframeworksinsights.md index c8b16b64c5..98fab843ff 100644 --- a/docs/recipes/nodejs/search/serversideframeworksinsights.md +++ b/docs/recipes/nodejs/search/serversideframeworksinsights.md @@ -194,110 +194,8 @@ recipeList: This recipe has no required configuration options. It can be activated by adding a dependency on `org.openrewrite.recipe:rewrite-nodejs:{{VERSION_REWRITE_NODEJS}}` in your build file or by running a shell command (in which case no build changes are needed): - -1. Add the following to your `build.gradle` file: -```groovy title="build.gradle" -plugins { - id("org.openrewrite.rewrite") version("{{VERSION_REWRITE_GRADLE_PLUGIN}}") -} - -rewrite { - activeRecipe("org.openrewrite.nodejs.search.ServerSideFrameworksInsights") - setExportDatatables(true) -} - -repositories { - mavenCentral() -} - -dependencies { - rewrite("org.openrewrite.recipe:rewrite-nodejs:{{VERSION_REWRITE_NODEJS}}") -} -``` - -2. Run `gradle rewriteRun` to run the recipe. - - - - -1. Create a file named `init.gradle` in the root of your project. - -```groovy title="init.gradle" -initscript { - repositories { - maven { url "https://plugins.gradle.org/m2" } - } - dependencies { classpath("org.openrewrite:plugin:{{VERSION_REWRITE_GRADLE_PLUGIN}}") } -} -rootProject { - plugins.apply(org.openrewrite.gradle.RewritePlugin) - dependencies { - rewrite("org.openrewrite.recipe:rewrite-nodejs:{{VERSION_REWRITE_NODEJS}}") - } - rewrite { - activeRecipe("org.openrewrite.nodejs.search.ServerSideFrameworksInsights") - setExportDatatables(true) - } - afterEvaluate { - if (repositories.isEmpty()) { - repositories { - mavenCentral() - } - } - } -} -``` - -2. Run the recipe. - -```shell title="shell" -gradle --init-script init.gradle rewriteRun -``` - - - - -1. Add the following to your `pom.xml` file: - -```xml title="pom.xml" - - - - - org.openrewrite.maven - rewrite-maven-plugin - {{VERSION_REWRITE_MAVEN_PLUGIN}} - - true - - org.openrewrite.nodejs.search.ServerSideFrameworksInsights - - - - - org.openrewrite.recipe - rewrite-nodejs - {{VERSION_REWRITE_NODEJS}} - - - - - - -``` - -2. Run `mvn rewrite:run` to run the recipe. - - - -You will need to have [Maven](https://maven.apache.org/download.cgi) installed on your machine before you can run the following command. - -```shell title="shell" -mvn -U org.openrewrite.maven:rewrite-maven-plugin:run -Drewrite.recipeArtifactCoordinates=org.openrewrite.recipe:rewrite-nodejs:RELEASE -Drewrite.activeRecipes=org.openrewrite.nodejs.search.ServerSideFrameworksInsights -Drewrite.exportDatatables=true -``` - You will need to have configured the [Moderne CLI](https://docs.moderne.io/user-documentation/moderne-cli/getting-started/cli-intro) on your machine before you can run the following command. diff --git a/docs/recipes/nodejs/search/statemanagementinsights.md b/docs/recipes/nodejs/search/statemanagementinsights.md index 9938d74313..9e37794ee6 100644 --- a/docs/recipes/nodejs/search/statemanagementinsights.md +++ b/docs/recipes/nodejs/search/statemanagementinsights.md @@ -188,110 +188,8 @@ recipeList: This recipe has no required configuration options. It can be activated by adding a dependency on `org.openrewrite.recipe:rewrite-nodejs:{{VERSION_REWRITE_NODEJS}}` in your build file or by running a shell command (in which case no build changes are needed): - -1. Add the following to your `build.gradle` file: -```groovy title="build.gradle" -plugins { - id("org.openrewrite.rewrite") version("{{VERSION_REWRITE_GRADLE_PLUGIN}}") -} - -rewrite { - activeRecipe("org.openrewrite.nodejs.search.StateManagementInsights") - setExportDatatables(true) -} - -repositories { - mavenCentral() -} - -dependencies { - rewrite("org.openrewrite.recipe:rewrite-nodejs:{{VERSION_REWRITE_NODEJS}}") -} -``` - -2. Run `gradle rewriteRun` to run the recipe. - - - - -1. Create a file named `init.gradle` in the root of your project. - -```groovy title="init.gradle" -initscript { - repositories { - maven { url "https://plugins.gradle.org/m2" } - } - dependencies { classpath("org.openrewrite:plugin:{{VERSION_REWRITE_GRADLE_PLUGIN}}") } -} -rootProject { - plugins.apply(org.openrewrite.gradle.RewritePlugin) - dependencies { - rewrite("org.openrewrite.recipe:rewrite-nodejs:{{VERSION_REWRITE_NODEJS}}") - } - rewrite { - activeRecipe("org.openrewrite.nodejs.search.StateManagementInsights") - setExportDatatables(true) - } - afterEvaluate { - if (repositories.isEmpty()) { - repositories { - mavenCentral() - } - } - } -} -``` - -2. Run the recipe. - -```shell title="shell" -gradle --init-script init.gradle rewriteRun -``` - - - - -1. Add the following to your `pom.xml` file: - -```xml title="pom.xml" - - - - - org.openrewrite.maven - rewrite-maven-plugin - {{VERSION_REWRITE_MAVEN_PLUGIN}} - - true - - org.openrewrite.nodejs.search.StateManagementInsights - - - - - org.openrewrite.recipe - rewrite-nodejs - {{VERSION_REWRITE_NODEJS}} - - - - - - -``` - -2. Run `mvn rewrite:run` to run the recipe. - - - -You will need to have [Maven](https://maven.apache.org/download.cgi) installed on your machine before you can run the following command. - -```shell title="shell" -mvn -U org.openrewrite.maven:rewrite-maven-plugin:run -Drewrite.recipeArtifactCoordinates=org.openrewrite.recipe:rewrite-nodejs:RELEASE -Drewrite.activeRecipes=org.openrewrite.nodejs.search.StateManagementInsights -Drewrite.exportDatatables=true -``` - You will need to have configured the [Moderne CLI](https://docs.moderne.io/user-documentation/moderne-cli/getting-started/cli-intro) on your machine before you can run the following command. diff --git a/docs/recipes/nodejs/search/taskrunnersbuildtoolsinsights.md b/docs/recipes/nodejs/search/taskrunnersbuildtoolsinsights.md index eef86784b4..3c91c9993b 100644 --- a/docs/recipes/nodejs/search/taskrunnersbuildtoolsinsights.md +++ b/docs/recipes/nodejs/search/taskrunnersbuildtoolsinsights.md @@ -194,110 +194,8 @@ recipeList: This recipe has no required configuration options. It can be activated by adding a dependency on `org.openrewrite.recipe:rewrite-nodejs:{{VERSION_REWRITE_NODEJS}}` in your build file or by running a shell command (in which case no build changes are needed): - -1. Add the following to your `build.gradle` file: -```groovy title="build.gradle" -plugins { - id("org.openrewrite.rewrite") version("{{VERSION_REWRITE_GRADLE_PLUGIN}}") -} - -rewrite { - activeRecipe("org.openrewrite.nodejs.search.TaskRunnersBuildToolsInsights") - setExportDatatables(true) -} - -repositories { - mavenCentral() -} - -dependencies { - rewrite("org.openrewrite.recipe:rewrite-nodejs:{{VERSION_REWRITE_NODEJS}}") -} -``` - -2. Run `gradle rewriteRun` to run the recipe. - - - - -1. Create a file named `init.gradle` in the root of your project. - -```groovy title="init.gradle" -initscript { - repositories { - maven { url "https://plugins.gradle.org/m2" } - } - dependencies { classpath("org.openrewrite:plugin:{{VERSION_REWRITE_GRADLE_PLUGIN}}") } -} -rootProject { - plugins.apply(org.openrewrite.gradle.RewritePlugin) - dependencies { - rewrite("org.openrewrite.recipe:rewrite-nodejs:{{VERSION_REWRITE_NODEJS}}") - } - rewrite { - activeRecipe("org.openrewrite.nodejs.search.TaskRunnersBuildToolsInsights") - setExportDatatables(true) - } - afterEvaluate { - if (repositories.isEmpty()) { - repositories { - mavenCentral() - } - } - } -} -``` - -2. Run the recipe. - -```shell title="shell" -gradle --init-script init.gradle rewriteRun -``` - - - - -1. Add the following to your `pom.xml` file: - -```xml title="pom.xml" - - - - - org.openrewrite.maven - rewrite-maven-plugin - {{VERSION_REWRITE_MAVEN_PLUGIN}} - - true - - org.openrewrite.nodejs.search.TaskRunnersBuildToolsInsights - - - - - org.openrewrite.recipe - rewrite-nodejs - {{VERSION_REWRITE_NODEJS}} - - - - - - -``` - -2. Run `mvn rewrite:run` to run the recipe. - - - -You will need to have [Maven](https://maven.apache.org/download.cgi) installed on your machine before you can run the following command. - -```shell title="shell" -mvn -U org.openrewrite.maven:rewrite-maven-plugin:run -Drewrite.recipeArtifactCoordinates=org.openrewrite.recipe:rewrite-nodejs:RELEASE -Drewrite.activeRecipes=org.openrewrite.nodejs.search.TaskRunnersBuildToolsInsights -Drewrite.exportDatatables=true -``` - You will need to have configured the [Moderne CLI](https://docs.moderne.io/user-documentation/moderne-cli/getting-started/cli-intro) on your machine before you can run the following command. diff --git a/docs/recipes/nodejs/search/testinginsights.md b/docs/recipes/nodejs/search/testinginsights.md index a3088ef17c..dc001ba009 100644 --- a/docs/recipes/nodejs/search/testinginsights.md +++ b/docs/recipes/nodejs/search/testinginsights.md @@ -194,110 +194,8 @@ recipeList: This recipe has no required configuration options. It can be activated by adding a dependency on `org.openrewrite.recipe:rewrite-nodejs:{{VERSION_REWRITE_NODEJS}}` in your build file or by running a shell command (in which case no build changes are needed): - -1. Add the following to your `build.gradle` file: -```groovy title="build.gradle" -plugins { - id("org.openrewrite.rewrite") version("{{VERSION_REWRITE_GRADLE_PLUGIN}}") -} - -rewrite { - activeRecipe("org.openrewrite.nodejs.search.TestingInsights") - setExportDatatables(true) -} - -repositories { - mavenCentral() -} - -dependencies { - rewrite("org.openrewrite.recipe:rewrite-nodejs:{{VERSION_REWRITE_NODEJS}}") -} -``` - -2. Run `gradle rewriteRun` to run the recipe. - - - - -1. Create a file named `init.gradle` in the root of your project. - -```groovy title="init.gradle" -initscript { - repositories { - maven { url "https://plugins.gradle.org/m2" } - } - dependencies { classpath("org.openrewrite:plugin:{{VERSION_REWRITE_GRADLE_PLUGIN}}") } -} -rootProject { - plugins.apply(org.openrewrite.gradle.RewritePlugin) - dependencies { - rewrite("org.openrewrite.recipe:rewrite-nodejs:{{VERSION_REWRITE_NODEJS}}") - } - rewrite { - activeRecipe("org.openrewrite.nodejs.search.TestingInsights") - setExportDatatables(true) - } - afterEvaluate { - if (repositories.isEmpty()) { - repositories { - mavenCentral() - } - } - } -} -``` - -2. Run the recipe. - -```shell title="shell" -gradle --init-script init.gradle rewriteRun -``` - - - - -1. Add the following to your `pom.xml` file: - -```xml title="pom.xml" - - - - - org.openrewrite.maven - rewrite-maven-plugin - {{VERSION_REWRITE_MAVEN_PLUGIN}} - - true - - org.openrewrite.nodejs.search.TestingInsights - - - - - org.openrewrite.recipe - rewrite-nodejs - {{VERSION_REWRITE_NODEJS}} - - - - - - -``` - -2. Run `mvn rewrite:run` to run the recipe. - - - -You will need to have [Maven](https://maven.apache.org/download.cgi) installed on your machine before you can run the following command. - -```shell title="shell" -mvn -U org.openrewrite.maven:rewrite-maven-plugin:run -Drewrite.recipeArtifactCoordinates=org.openrewrite.recipe:rewrite-nodejs:RELEASE -Drewrite.activeRecipes=org.openrewrite.nodejs.search.TestingInsights -Drewrite.exportDatatables=true -``` - You will need to have configured the [Moderne CLI](https://docs.moderne.io/user-documentation/moderne-cli/getting-started/cli-intro) on your machine before you can run the following command. diff --git a/docs/recipes/nodejs/search/uiinsights.md b/docs/recipes/nodejs/search/uiinsights.md index 6dfa3dcaff..0fd39d0e7b 100644 --- a/docs/recipes/nodejs/search/uiinsights.md +++ b/docs/recipes/nodejs/search/uiinsights.md @@ -200,110 +200,8 @@ recipeList: This recipe has no required configuration options. It can be activated by adding a dependency on `org.openrewrite.recipe:rewrite-nodejs:{{VERSION_REWRITE_NODEJS}}` in your build file or by running a shell command (in which case no build changes are needed): - -1. Add the following to your `build.gradle` file: -```groovy title="build.gradle" -plugins { - id("org.openrewrite.rewrite") version("{{VERSION_REWRITE_GRADLE_PLUGIN}}") -} - -rewrite { - activeRecipe("org.openrewrite.nodejs.search.UIInsights") - setExportDatatables(true) -} - -repositories { - mavenCentral() -} - -dependencies { - rewrite("org.openrewrite.recipe:rewrite-nodejs:{{VERSION_REWRITE_NODEJS}}") -} -``` - -2. Run `gradle rewriteRun` to run the recipe. - - - - -1. Create a file named `init.gradle` in the root of your project. - -```groovy title="init.gradle" -initscript { - repositories { - maven { url "https://plugins.gradle.org/m2" } - } - dependencies { classpath("org.openrewrite:plugin:{{VERSION_REWRITE_GRADLE_PLUGIN}}") } -} -rootProject { - plugins.apply(org.openrewrite.gradle.RewritePlugin) - dependencies { - rewrite("org.openrewrite.recipe:rewrite-nodejs:{{VERSION_REWRITE_NODEJS}}") - } - rewrite { - activeRecipe("org.openrewrite.nodejs.search.UIInsights") - setExportDatatables(true) - } - afterEvaluate { - if (repositories.isEmpty()) { - repositories { - mavenCentral() - } - } - } -} -``` - -2. Run the recipe. - -```shell title="shell" -gradle --init-script init.gradle rewriteRun -``` - - - - -1. Add the following to your `pom.xml` file: - -```xml title="pom.xml" - - - - - org.openrewrite.maven - rewrite-maven-plugin - {{VERSION_REWRITE_MAVEN_PLUGIN}} - - true - - org.openrewrite.nodejs.search.UIInsights - - - - - org.openrewrite.recipe - rewrite-nodejs - {{VERSION_REWRITE_NODEJS}} - - - - - - -``` - -2. Run `mvn rewrite:run` to run the recipe. - - - -You will need to have [Maven](https://maven.apache.org/download.cgi) installed on your machine before you can run the following command. - -```shell title="shell" -mvn -U org.openrewrite.maven:rewrite-maven-plugin:run -Drewrite.recipeArtifactCoordinates=org.openrewrite.recipe:rewrite-nodejs:RELEASE -Drewrite.activeRecipes=org.openrewrite.nodejs.search.UIInsights -Drewrite.exportDatatables=true -``` - You will need to have configured the [Moderne CLI](https://docs.moderne.io/user-documentation/moderne-cli/getting-started/cli-intro) on your machine before you can run the following command. diff --git a/docs/recipes/nodejs/search/utilityinsights.md b/docs/recipes/nodejs/search/utilityinsights.md index 83ba13bb0a..ad30c4b456 100644 --- a/docs/recipes/nodejs/search/utilityinsights.md +++ b/docs/recipes/nodejs/search/utilityinsights.md @@ -200,110 +200,8 @@ recipeList: This recipe has no required configuration options. It can be activated by adding a dependency on `org.openrewrite.recipe:rewrite-nodejs:{{VERSION_REWRITE_NODEJS}}` in your build file or by running a shell command (in which case no build changes are needed): - -1. Add the following to your `build.gradle` file: -```groovy title="build.gradle" -plugins { - id("org.openrewrite.rewrite") version("{{VERSION_REWRITE_GRADLE_PLUGIN}}") -} - -rewrite { - activeRecipe("org.openrewrite.nodejs.search.UtilityInsights") - setExportDatatables(true) -} - -repositories { - mavenCentral() -} - -dependencies { - rewrite("org.openrewrite.recipe:rewrite-nodejs:{{VERSION_REWRITE_NODEJS}}") -} -``` - -2. Run `gradle rewriteRun` to run the recipe. - - - - -1. Create a file named `init.gradle` in the root of your project. - -```groovy title="init.gradle" -initscript { - repositories { - maven { url "https://plugins.gradle.org/m2" } - } - dependencies { classpath("org.openrewrite:plugin:{{VERSION_REWRITE_GRADLE_PLUGIN}}") } -} -rootProject { - plugins.apply(org.openrewrite.gradle.RewritePlugin) - dependencies { - rewrite("org.openrewrite.recipe:rewrite-nodejs:{{VERSION_REWRITE_NODEJS}}") - } - rewrite { - activeRecipe("org.openrewrite.nodejs.search.UtilityInsights") - setExportDatatables(true) - } - afterEvaluate { - if (repositories.isEmpty()) { - repositories { - mavenCentral() - } - } - } -} -``` - -2. Run the recipe. - -```shell title="shell" -gradle --init-script init.gradle rewriteRun -``` - - - - -1. Add the following to your `pom.xml` file: - -```xml title="pom.xml" - - - - - org.openrewrite.maven - rewrite-maven-plugin - {{VERSION_REWRITE_MAVEN_PLUGIN}} - - true - - org.openrewrite.nodejs.search.UtilityInsights - - - - - org.openrewrite.recipe - rewrite-nodejs - {{VERSION_REWRITE_NODEJS}} - - - - - - -``` - -2. Run `mvn rewrite:run` to run the recipe. - - - -You will need to have [Maven](https://maven.apache.org/download.cgi) installed on your machine before you can run the following command. - -```shell title="shell" -mvn -U org.openrewrite.maven:rewrite-maven-plugin:run -Drewrite.recipeArtifactCoordinates=org.openrewrite.recipe:rewrite-nodejs:RELEASE -Drewrite.activeRecipes=org.openrewrite.nodejs.search.UtilityInsights -Drewrite.exportDatatables=true -``` - You will need to have configured the [Moderne CLI](https://docs.moderne.io/user-documentation/moderne-cli/getting-started/cli-intro) on your machine before you can run the following command. diff --git a/docs/recipes/nodejs/upgradedependencyversion.md b/docs/recipes/nodejs/upgradedependencyversion.md index 0e70602872..65a7e6bf0d 100644 --- a/docs/recipes/nodejs/upgradedependencyversion.md +++ b/docs/recipes/nodejs/upgradedependencyversion.md @@ -40,62 +40,8 @@ recipeList: Now that `com.yourorg.UpgradeDependencyVersionExample` has been defined, activate it and take a dependency on `org.openrewrite.recipe:rewrite-nodejs:{{VERSION_REWRITE_NODEJS}}` in your build file: - -1. Add the following to your `build.gradle` file: -```groovy title="build.gradle" -plugins { - id("org.openrewrite.rewrite") version("{{VERSION_REWRITE_GRADLE_PLUGIN}}") -} - -rewrite { - activeRecipe("com.yourorg.UpgradeDependencyVersionExample") - setExportDatatables(true) -} - -repositories { - mavenCentral() -} - -dependencies { - rewrite("org.openrewrite.recipe:rewrite-nodejs:{{VERSION_REWRITE_NODEJS}}") -} -``` -2. Run `gradle rewriteRun` to run the recipe. - - - -1. Add the following to your `pom.xml` file: - -```xml title="pom.xml" - - - - - org.openrewrite.maven - rewrite-maven-plugin - {{VERSION_REWRITE_MAVEN_PLUGIN}} - - true - - com.yourorg.UpgradeDependencyVersionExample - - - - - org.openrewrite.recipe - rewrite-nodejs - {{VERSION_REWRITE_NODEJS}} - - - - - - -``` -2. Run `mvn rewrite:run` to run the recipe. - You will need to have configured the [Moderne CLI](https://docs.moderne.io/user-documentation/moderne-cli/getting-started/cli-intro) on your machine before you can run the following command.