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

feat: add initial options validation #13

Merged

Conversation

moonmeister
Copy link
Collaborator

@moonmeister moonmeister commented Sep 13, 2019

Description

Adds basic plugin validation for gatsby-plugin-manifest.

Still need to look into further:

  • validating the actual manifest options and not just the plugin config.
  • seeing if we can throw a info log if a config is explicitly set to it's implicit default.
  • Add some documentation and verify tests are passing.
  • Do we still need all our defaults handling in the plugin if we're now setting defaults with Joi?

@DSchau Any other changes you suggest or things i could do to improve this?

Related Issues

gatsbyjs#16027

@moonmeister
Copy link
Collaborator Author

related discussion around required/optional members of the WebAppManifest dictionary:

w3c/manifest#799
w3c/manifest#622

@DSchau
Copy link
Owner

DSchau commented Sep 20, 2019

This ready to go? You’ve sold me already haha

@moonmeister
Copy link
Collaborator Author

@DSchau I need to update the required fields to meet the discussions I've been having in w3c/manifest#799 and I haven't written/added tests or documentation for this. If you would like to do any of this go for it. I'm at work and need to get back to it.

@moonmeister moonmeister force-pushed the feat/manifest-option-validation branch from 66ca3ae to 1e7a0e3 Compare September 21, 2019 05:53
@moonmeister
Copy link
Collaborator Author

@DSchau tested, fixed and documented. All ready to go for you!

@moonmeister moonmeister merged commit deb44b5 into feat/plugin-option-validation Sep 21, 2019
DSchau pushed a commit that referenced this pull request Apr 16, 2020
* initial RFC

Signed-off-by: Alex Moon <alex.jared.moon@gmail.com>

* add API suggestion, add config cmd, add config key question, remove enable/disable

* add prompt around changes and officia readmes needing updates
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