-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add config and remote plugins support
- Loading branch information
Showing
13 changed files
with
158 additions
and
62 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
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 |
---|---|---|
|
@@ -15,4 +15,7 @@ export { parse as ccparse } from "https://deno.land/x/[email protected]/mod.ts"; | |
|
||
export * as semver from "https://deno.land/x/[email protected]/mod.ts"; | ||
export * as ini from "https://deno.land/x/[email protected]/mod.ts"; | ||
export { Command, EnumType } from "https://deno.land/x/[email protected]/command/mod.ts"; | ||
export { | ||
Command, | ||
EnumType, | ||
} from "https://deno.land/x/[email protected]/command/mod.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
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,2 @@ | ||
export { join } from "https://deno.land/[email protected]/path/mod.ts"; | ||
export { EOL } from "https://deno.land/[email protected]/fs/mod.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
import type { ReleasePlugin } from "../../plugin.ts"; | ||
import { join } from "./deps.ts"; | ||
|
||
/** | ||
* Export a version file with the new version number | ||
*/ | ||
const plugin: ReleasePlugin = { | ||
name: "TestRemote", | ||
async preCommit( | ||
repo, | ||
_releaseType, | ||
_from, | ||
to, | ||
config, | ||
log, | ||
): Promise<void> { | ||
const versionFile = "versionTest.json"; | ||
const version = { | ||
version: to, | ||
}; | ||
if (!config.options.dry) { | ||
await Deno.writeTextFile( | ||
join(repo.path, versionFile), | ||
JSON.stringify(version, null, 2) + | ||
// to comply with deno fmt | ||
"\n", | ||
); | ||
} else { | ||
log.info(`dryRun: Would have created ${versionFile} file`); | ||
} | ||
}, | ||
}; | ||
|
||
export default plugin; |
Oops, something went wrong.