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

Validate config #1

Open
yarastqt opened this issue Apr 27, 2020 · 0 comments
Open

Validate config #1

yarastqt opened this issue Apr 27, 2020 · 0 comments
Labels
feat New feature or request

Comments

@yarastqt
Copy link
Member

yarastqt commented Apr 27, 2020

Need add validation for:

  • require options from config
  • available formats
  • available transforms
  • available actions
  • available platforms

If validation failure return promise reject from build:

export function build(config) {
  const [isValid, errors] = validate(config)
  if (!isValud) {
    return Promise.reject(errors)
  }
}
@yarastqt yarastqt added the feat New feature or request label May 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant