Skip to content

Commit

Permalink
Merge pull request #234 from jovotech/v4/development
Browse files Browse the repository at this point in the history
🔖 Publish
  • Loading branch information
rubenaeg authored Aug 27, 2021
2 parents c232c1b + 557a587 commit 046c193
Show file tree
Hide file tree
Showing 34 changed files with 26,367 additions and 41,641 deletions.
6,580 changes: 0 additions & 6,580 deletions cli/package-lock.json

This file was deleted.

2 changes: 2 additions & 0 deletions cli/src/Collector.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,8 @@ export class Collector extends Plugin {
});
}
} catch (error) {
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
JovoCliError.print(error);
process.exit(1);
}
Expand Down
5,675 changes: 0 additions & 5,675 deletions commands/command-build/package-lock.json

This file was deleted.

10 changes: 5 additions & 5 deletions commands/command-build/src/commands/build.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { DeployEvents } from '@jovotech/cli-command-deploy';
import { DeployCodeEvents, DeployPlatformEvents } from '@jovotech/cli-command-deploy';
import {
checkForProjectDirectory,
CliFlags,
Expand Down Expand Up @@ -32,7 +32,7 @@ export interface BuildContext extends PluginContext {

export type BuildEvents = 'before.build' | 'build' | 'after.build' | 'reverse.build';

export class Build extends PluginCommand<BuildEvents | DeployEvents> {
export class Build extends PluginCommand<BuildEvents | DeployCodeEvents | DeployPlatformEvents> {
static id = 'build';
static description = 'Build platform-specific language models based on jovo models folder.';
static examples: string[] = ['jovo build --platform alexaSkill', 'jovo build --target zip'];
Expand Down Expand Up @@ -160,9 +160,9 @@ export class Build extends PluginCommand<BuildEvents | DeployEvents> {

if (flags.deploy) {
Log.spacer();
await this.$emitter.run('before.deploy');
await this.$emitter.run('deploy');
await this.$emitter.run('after.deploy');
await this.$emitter.run('before.deploy:platform');
await this.$emitter.run('deploy:platform');
await this.$emitter.run('after.deploy:platform');
}

Log.spacer();
Expand Down
5,535 changes: 0 additions & 5,535 deletions commands/command-deploy/package-lock.json

This file was deleted.

56 changes: 0 additions & 56 deletions commands/command-deploy/src/commands/deploy.ts

This file was deleted.

4 changes: 1 addition & 3 deletions commands/command-deploy/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
import { JovoCliPlugin, PluginCommand, PluginType } from '@jovotech/cli-core';
import { Deploy } from './commands/deploy';
import { DeployCode } from './commands/deploy.code';
import { DeployPlatform } from './commands/deploy.platform';

export * from './commands/deploy';
export * from './commands/deploy.code';
export * from './commands/deploy.platform';

Expand All @@ -12,7 +10,7 @@ export class DeployCommand extends JovoCliPlugin {
$type: PluginType = 'command';

getCommands(): typeof PluginCommand[] {
return [Deploy, DeployCode, DeployPlatform];
return [DeployCode, DeployPlatform];
}
}

Expand Down
Loading

0 comments on commit 046c193

Please sign in to comment.