-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: add generated release notes (#31)
- Loading branch information
Showing
3 changed files
with
47 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
.vscode | ||
target | ||
**/*.rs.bk | ||
deployment/npm/plugin.wasm | ||
deployment/npm/node_modules | ||
deployment/npm/node_modules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
import { generateChangeLog } from "https://raw.githubusercontent.com/dprint/automation/0.9.0/changelog.ts"; | ||
|
||
const version = Deno.args[0]; | ||
const changelog = await generateChangeLog({ | ||
versionTo: version, | ||
}); | ||
const text = `## Changes | ||
${changelog} | ||
## Install | ||
[Install](https://dprint.dev/install/) and [setup](https://dprint.dev/setup/) dprint. | ||
Then in your project's dprint configuration file: | ||
1. Specify the plugin url in the \`"plugins"\` array (can be done via \`dprint config add json\`). | ||
2. Add a \`"json"\` configuration property if desired. | ||
\`\`\`jsonc | ||
{ | ||
// ...etc... | ||
"json": { | ||
// json config goes here | ||
}, | ||
"plugins": [ | ||
"https://plugins.dprint.dev/json-${version}.wasm" | ||
] | ||
} | ||
\`\`\` | ||
## JS Formatting API | ||
* [JS Formatter](https://github.com/dprint/js-formatter) - Browser/Deno and Node | ||
* [npm package](https://www.npmjs.com/package/@dprint/json) | ||
`; | ||
|
||
console.log(text); |