-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
165 additions
and
6 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 |
---|---|---|
@@ -0,0 +1,61 @@ | ||
{ | ||
"name": "@alcalzone/release-script-plugin-manual-review", | ||
"publishConfig": { | ||
"access": "public" | ||
}, | ||
"version": "3.0.0", | ||
"description": "Plugin for Al Calzone's release script: manual review", | ||
"keywords": [], | ||
"license": "MIT", | ||
"author": { | ||
"name": "AlCalzone", | ||
"email": "[email protected]" | ||
}, | ||
"main": "build/index.js", | ||
"exports": { | ||
".": "./build/index.js", | ||
"./package.json": "./package.json", | ||
"./*.map": "./build/*.js.map", | ||
"./*": "./build/*.js" | ||
}, | ||
"types": "build/index.d.ts", | ||
"typesVersions": { | ||
"*": { | ||
"build/index.d.ts": [ | ||
"build/index.d.ts" | ||
], | ||
"*": [ | ||
"build/*" | ||
] | ||
} | ||
}, | ||
"files": [ | ||
"build/", | ||
"LICENSE" | ||
], | ||
"engines": { | ||
"node": ">=12.20" | ||
}, | ||
"dependencies": { | ||
"@alcalzone/release-script-core": "3.0.0" | ||
}, | ||
"devDependencies": { | ||
"@alcalzone/release-script-testing": "3.0.0", | ||
"jest-extended": "^0.11.5", | ||
"typescript": "*" | ||
}, | ||
"scripts": { | ||
"clean": "tsc -b tsconfig.build.json --clean", | ||
"build": "tsc -b tsconfig.build.json", | ||
"watch": "tsc -b tsconfig.build.json --watch" | ||
}, | ||
"homepage": "https://github.com/AlCalzone/release-script/tree/main/packages/plugin-manual-review#readme", | ||
"repository": { | ||
"type": "git", | ||
"url": "[email protected]:AlCalzone/release-script.git" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/AlCalzone/release-script/issues" | ||
}, | ||
"readmeFilename": "README.md" | ||
} |
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,5 @@ | ||
describe("Manual Review plugin", () => { | ||
describe("check stage", () => { | ||
it.todo("does something"); | ||
}); | ||
}); |
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,29 @@ | ||
import { DefaultStages } from "@alcalzone/release-script-core"; | ||
import type { Context, Plugin, Stage } from "@alcalzone/release-script-core/types"; | ||
|
||
class ManualReviewPlugin implements Plugin { | ||
public readonly id = "manual-review"; | ||
public readonly stages = [DefaultStages.edit]; | ||
|
||
// dependencies?: string[] | undefined; | ||
public readonly stageAfter = { | ||
edit: "*" as const, | ||
}; | ||
// stageBefore?: Record<string, ConstOrDynamic<string[]>> | undefined; | ||
|
||
async executeStage(context: Context, stage: Stage): Promise<void> { | ||
if (stage.id === "edit" && !context.argv.dryRun) { | ||
context.cli.log("Please review the changes and correct them manually if necessary."); | ||
let result: boolean; | ||
do { | ||
result = | ||
(await context.cli.select("Are you done?", [ | ||
{ value: "no", label: "no" }, | ||
{ value: "yes", label: "yes" }, | ||
])) === "yes"; | ||
} while (!result); | ||
} | ||
} | ||
} | ||
|
||
export default ManualReviewPlugin; |
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,20 @@ | ||
// tsconfig for building - only applies to the src directory | ||
{ | ||
"extends": "./tsconfig.json", | ||
"compilerOptions": { | ||
"rootDir": "src", | ||
"outDir": "build" | ||
}, | ||
"references": [ | ||
// Add references to other projects here | ||
{ | ||
"path": "../core/tsconfig.build.json" | ||
}, | ||
], | ||
"include": [ | ||
"src/**/*.ts" | ||
], | ||
"exclude": [ | ||
"src/**/*.test.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,21 @@ | ||
// tsconfig for IntelliSense - active in all files in the current package | ||
{ | ||
"extends": "../../tsconfig.json", | ||
"compilerOptions": {}, | ||
"references": [ | ||
// Add references to other projects here | ||
{ | ||
"path": "../core/tsconfig.build.json" | ||
}, | ||
{ | ||
"path": "../testing/tsconfig.build.json" | ||
}, | ||
], | ||
"include": [ | ||
"src/**/*.ts" | ||
], | ||
"exclude": [ | ||
"build/**", | ||
"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
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 |
---|---|---|
|
@@ -101,6 +101,17 @@ __metadata: | |
languageName: unknown | ||
linkType: soft | ||
|
||
"@alcalzone/release-script-plugin-manual-review@workspace:packages/plugin-manual-review": | ||
version: 0.0.0-use.local | ||
resolution: "@alcalzone/release-script-plugin-manual-review@workspace:packages/plugin-manual-review" | ||
dependencies: | ||
"@alcalzone/release-script-core": 3.0.0 | ||
"@alcalzone/release-script-testing": 3.0.0 | ||
jest-extended: ^0.11.5 | ||
typescript: "*" | ||
languageName: unknown | ||
linkType: soft | ||
|
||
"@alcalzone/[email protected], @alcalzone/release-script-plugin-package@workspace:packages/plugin-package": | ||
version: 0.0.0-use.local | ||
resolution: "@alcalzone/release-script-plugin-package@workspace:packages/plugin-package" | ||
|