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

kinvey flex deploy: should run a check and fail if the code is invalid #108

Open
sebawita opened this issue Oct 15, 2018 · 1 comment
Open

Comments

@sebawita
Copy link

When I run kinvey flex deploy, while my JavaScript is broken the deploy command still pushes the code to Kinvey, which then breaks my cloud code.

Instead it would be great if the deploy command could run some basic validations and throw an error, stopping me from sending the invalid code.

For example, in my code I was trying to submit code like:

export const myFunction = (context, complete, modules) => {
  complete().setBody([1, 2, 3]).done();
}

However, when I run node ., node will complain about the use of export and fail.
But kinvey flex deploy doesn't complain and is happy to push the invalid code.

@mjsalinger
Copy link
Contributor

Hi @sebawita - can you submit this issue under the kinvey-cli repo instead?

https://github.com/kinvey/kinvey-cli

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

No branches or pull requests

2 participants