-
-
Save realStandal/976418fc9a4737f31f010601b01fbe6a to your computer and use it in GitHub Desktop.
rwsp-shared-context
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
{ | |
"name": "my-alias", | |
"version": "1.0.0" | |
} |
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
const RedwoodSetupPlugin = { | |
redwoodVersion: '0.37.4', | |
preSetup: () => {}, | |
steps: [ | |
{ | |
title: 'Writing to context', | |
task: (ctx, task) => { | |
ctx.test = 'hello world' | |
task.title = 'Wrote to context' | |
}, | |
errorHandling: 'continue', | |
}, | |
{ | |
title: 'Reading context', | |
task: (ctx) => { | |
console.log(ctx.test) | |
}, | |
errorHandling: 'continue', | |
}, | |
], | |
postSetup: () => {}, | |
} | |
module.exports = RedwoodSetupPlugin |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment