Skip to content

Commit

Permalink
cleanup logging
Browse files Browse the repository at this point in the history
  • Loading branch information
cnuss committed May 20, 2024
1 parent e068987 commit 3a12b8d
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -142,26 +142,17 @@ class ServerlessMake {

this.log = new Log(options);

// const commandOptions = {
// // "skip-hooks": {
// // usage: "Skip invocation of all lifecycle hooks",
// // type: "boolean",
// // },
// };

this.hooks = this.setupHooks();

this.commands = {
[`${PLUGIN_NAME}`]: {
commands: {
[`${this.target}`]: {
lifecycleEvents: [],
// options: commandOptions,
usage: `Runs \`make ${this.target}\`.`,
},
},
lifecycleEvents: [this.target],
// options: commandOptions,
usage: "Runs make commands",
},
};
Expand All @@ -187,10 +178,10 @@ class ServerlessMake {
await this.build(false);
},
[`before:${PLUGIN_NAME}:${this.target}`]: async () => {
console.log(`!!!! before:${PLUGIN_NAME}:${this.target}`);
this.log.verbose(`before:${PLUGIN_NAME}:${this.target}`);
},
[`after:${PLUGIN_NAME}:${this.target}`]: async () => {
console.log(`!!!! after:${PLUGIN_NAME}:${this.target}`);
this.log.verbose(`after:${PLUGIN_NAME}:${this.target}`);
},
"before:offline:start": async () => {
this.log.verbose("before:offline:start");
Expand Down

0 comments on commit 3a12b8d

Please sign in to comment.