-
-
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.
Updates on github-actions
- Loading branch information
BFT\a.rogalskii
committed
Jul 3, 2021
1 parent
666e7cf
commit f001bd4
Showing
3 changed files
with
60 additions
and
5 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,50 @@ | ||
module.exports = function (plop) { | ||
// Add new js trigger | ||
plop.setGenerator(`js-trigger`, { | ||
description: `This sets up the basic files for a new package.`, | ||
prompts: [ | ||
{ | ||
type: `input`, | ||
name: `name`, | ||
message: `name of new package`, | ||
}, | ||
{ | ||
type: `input`, | ||
name: `author`, | ||
message: `Your name/email for putting in the package.json of the new package`, | ||
}, | ||
], | ||
actions: (data) => [ | ||
{ | ||
type: `addMany`, | ||
destination: `packages/actionsflow-trigger-{{snakeCase name}}`, | ||
templateFiles: "**/*", | ||
base: `plop-templates/js-trigger`, | ||
}, | ||
], | ||
}); | ||
// Add new js trigger | ||
plop.setGenerator(`ts-trigger`, { | ||
description: `This sets up the basic files for a new package.`, | ||
prompts: [ | ||
{ | ||
type: `input`, | ||
name: `name`, | ||
message: `name of new package`, | ||
}, | ||
{ | ||
type: `input`, | ||
name: `author`, | ||
message: `Your name/email for putting in the package.json of the new package`, | ||
}, | ||
], | ||
actions: (data) => [ | ||
{ | ||
type: `addMany`, | ||
destination: `packages/actionsflow-trigger-{{snakeCase name}}`, | ||
templateFiles: "**/*", | ||
base: `plop-templates/ts-trigger`, | ||
}, | ||
], | ||
}); | ||
}; |