Skip to content

Commit

Permalink
Merge pull request #1 from ehmicky/chore/rename-on-init
Browse files Browse the repository at this point in the history
Rename `onInit`
  • Loading branch information
tzmanics authored Jun 11, 2020
2 parents daffde5 + 4fbdf98 commit 77acc1c
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
module.exports = function runPlugin(inputs) {
if (!inputs.triggerAll) {
return {
onInit: () => {
onPreBuild: () => {
console.log(`triggerAll set to ${inputs.triggerAll}, no fun 🤷🏻‍♀️!`);
},
};
} else {
return {
onInit: () => {
console.log('onInit: I run before anything else 🐣');
},
onPreBuild: ({ inputs: { keyword } }) => {
console.log('onPreBuild: I run_before_ build commands are executed 🌤');
console.log('I will only use the keyword input: ', keyword);
Expand Down

0 comments on commit 77acc1c

Please sign in to comment.