Skip to content

Commit

Permalink
updated to v3.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
sip49 committed Mar 11, 2024
1 parent cd04f18 commit 0fca006
Show file tree
Hide file tree
Showing 4 changed files with 3,618 additions and 1,831 deletions.
2 changes: 1 addition & 1 deletion docs/languages/java/write_codemod.md
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ Well, we lied a little. We wrote all the _code_, but one of the philosophies of
### Provide Storytelling From the Classpath (Recommended)
We provide a shortcut for folks who don't want to write and maintain big blocks of text in a Java file (like us). You can provide a [CodemodReporterStrategy](https://www.javadoc.io/doc/io.codemodder/codemodder-base/latest/io/codemodder/CodemodReporterStrategy.html) that builds reports based on text from a well-defined location on the classpath. This is an alternative to storing data inline to the Java source code of your codemod. It's easier to maintain this "data" outside of code, so we prefer a simple mechanism for doing that. Both the files read are expected to be in `/com/acme/MyCodemod/` (assuming that's the name of your codemod type).

The first expected file in that directory is {@code report.json}. It contains most of the fields we want to report:
The first expected file in that directory is `{@code report.json}`. It contains most of the fields we want to report:

```json
{
Expand Down
4 changes: 2 additions & 2 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// @ts-check
// Note: type annotations allow type checking and IDEs autocompletion

const lightCodeTheme = require('prism-react-renderer/themes/github');
const darkCodeTheme = require('prism-react-renderer/themes/dracula');
const lightCodeTheme = require("prism-react-renderer").themes.github;
const darkCodeTheme = require("prism-react-renderer").themes.dracula;

/** @type {import('@docusaurus/types').Config} */
const config = {
Expand Down
17 changes: 9 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,17 @@
"write-heading-ids": "docusaurus write-heading-ids"
},
"dependencies": {
"@docusaurus/core": "2.1.0",
"@docusaurus/preset-classic": "2.1.0",
"@mdx-js/react": "^1.6.22",
"@docusaurus/core": "^3.1.1",
"@docusaurus/preset-classic": "^3.1.1",
"@mdx-js/react": "^3.0.0",
"clsx": "^1.2.1",
"prism-react-renderer": "^1.3.5",
"react": "^17.0.2",
"react-dom": "^17.0.2"
"prism-react-renderer": "^2.3.1",
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
"devDependencies": {
"@docusaurus/module-type-aliases": "2.1.0"
"@docusaurus/module-type-aliases": "^3.1.1",
"@docusaurus/types": "^3.1.1"
},
"browserslist": {
"production": [
Expand All @@ -38,6 +39,6 @@
]
},
"engines": {
"node": ">=16.14"
"node": ">=18.00"
}
}
Loading

0 comments on commit 0fca006

Please sign in to comment.