-
-
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.
refactor(git)!: mv git/mod.ts to src/git.ts and create git.ts
Because this seems more consistent with the rest of the project.
- Loading branch information
Showing
5 changed files
with
36 additions
and
36 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
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,26 @@ | ||
// Copyright 2023 Chiezo (Shun Ueda). All rights reserved. MIT license. | ||
|
||
/** | ||
* A sub module of molt for git operations. | ||
* | ||
* ### Example | ||
* | ||
* To update all dependencies in a module and commit the changes to git: | ||
* | ||
* ```ts | ||
* import { DependencyUpdate } from "https://deno.land/x/molt@{VERSION}/mod.ts"; | ||
* import { commitAll } from "https://deno.land/x/molt@{VERSION}/git.ts"; | ||
* | ||
* const updates = await DependencyUpdate.collect("./mod.ts"); | ||
* | ||
* commitAll(updates, { | ||
* groupBy: (dependency) => dependency.name, | ||
* composeCommitMessage: ({ group, version }) => | ||
* `build(deps): bump ${group} to ${version!.to}`, | ||
* }); | ||
* ``` | ||
* | ||
* @module | ||
*/ | ||
|
||
export * from "./src/git.ts"; |
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