Skip to content

Instantly share code, notes, and snippets.

@bencooling
Created January 14, 2017 06:48
Show Gist options
  • Save bencooling/63cb1e57fa1fda983c67730d989e8f30 to your computer and use it in GitHub Desktop.
Save bencooling/63cb1e57fa1fda983c67730d989e8f30 to your computer and use it in GitHub Desktop.
javascript: serverless
class MyPlugin {
constructor() {
this.commands = {
graphiql: {
usage: 'Creates graphiql server',
lifecycleEvents: ['start'],
},
};
this.hooks = {
'graphiql:start': this.graphiqlStart,
};
}
graphiqlStart() {
console.log('start!');
}
}
module.exports = MyPlugin;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment