Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Clean up .serverless folder before packaging new artifact #275

Merged
merged 1 commit into from
Aug 29, 2019

Conversation

tbarlow12
Copy link
Collaborator

Cleans up .serverless folder unless the package plugin is being executed from a deploy command in which the --package option was included (don't want to remove a package the user is trying to deploy).

Resolves #255

@codecov
Copy link

codecov bot commented Aug 28, 2019

Codecov Report

❗ No coverage uploaded for pull request base (dev@df63949). Click here to learn what that means.
The diff coverage is 100%.

Impacted file tree graph

@@         Coverage Diff          @@
##             dev   #275   +/-   ##
====================================
  Coverage       ?    89%           
====================================
  Files          ?     47           
  Lines          ?   1664           
  Branches       ?    230           
====================================
  Hits           ?   1481           
  Misses         ?    183           
  Partials       ?      0
Impacted Files Coverage Δ
src/plugins/package/azurePackagePlugin.ts 100% <100%> (ø)
src/plugins/azureBasePlugin.ts 100% <100%> (ø)
src/services/packageService.ts 100% <100%> (ø)
src/test/mockFactory.ts 91.37% <100%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update df63949...cbaf516. Read the comment docs.

Copy link
Member

@wbreza wbreza left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add 1 comment - otherwise looks good.


public constructor(
protected serverless: Serverless,
protected options: TOptions,
) {
Guard.null(serverless);
this.originalCommand = (serverless as any as ServerlessObject).processedInput.commands[0]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider just calling this commands and keep the whole array of commands vs only pulling the first value in the event we may need more later?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good call

Copy link
Collaborator

@PIC123 PIC123 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

Copy link
Collaborator

@mydiemho mydiemho left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

need jsdoc for new interfaces and some questions

runtime: string;
}

export interface ServerlessObject {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

jsdoc

config: ServerlessConfig;
}

export enum ServerlessCliCommand {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

jsdoc

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thought jsdoc syntax was documenting interface members outside and not inline?

LIST = "list",
}

export interface ServerlessConfig {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

jsdoc


export interface ServerlessConfig {
servicePath: string;
packagePath: string;
}

export interface ServerlessAzureConfig {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

jsdoc

src/plugins/azureBasePlugin.ts Show resolved Hide resolved
src/plugins/package/azurePackagePlugin.ts Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants