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

Verify that what's being deployed looks like a Node.js app #27

Merged
merged 1 commit into from
Oct 21, 2020

Conversation

auxesis
Copy link
Contributor

@auxesis auxesis commented Oct 21, 2020

Tests that:

  • node_modules/ is a directory in the target app directory
  • package.json is a file in the target app directory

}
errstr := strings.Join(se, "\n")
return fmt.Errorf("not a valid Node.js app: \n\n%s", errstr)
}
Copy link
Contributor

Choose a reason for hiding this comment

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

I think that we should print only one error at a time. The user will fix only one error at a time anyway.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I originally thought this too.

On reflection, it can be frustrating being drip-fed errors.

I want to give this a try, and see what users have to say about it.

@auxesis auxesis merged commit 41ce0f6 into master Oct 21, 2020
@auxesis auxesis deleted the validate-presence-of-nodejs-before-deploy branch October 21, 2020 12:31
@auxesis auxesis restored the validate-presence-of-nodejs-before-deploy branch October 27, 2020 13:22
@auxesis auxesis deleted the validate-presence-of-nodejs-before-deploy branch November 12, 2020 23:14
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.

2 participants