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

package.json validation && fixture cleanup #50

Merged
merged 5 commits into from
Jun 1, 2017

Conversation

kirrg001
Copy link
Contributor

@kirrg001 kirrg001 commented May 30, 2017

WIP!

  • posts per page
  • do not show package.json errors when using Ghost production env - only on gscan.ghost.org and for Ghost development
  • code quality check && more testing
  • add more context to the commits (e.g. why PJV was removed)

Fatal errors are chosen via a different issue, see TryGhost/Ghost#8222. The idea behind it is, to select a couple of errors, which are fatal (you can't activate this theme in Ghost). And the other errors are still errors, but not fatal. We will add a little attribute for this.

I've already tested some real themes, looks good so far (for gscan.ghost.org). But need's more testing tomorrow.

I went a bit crazy with the theme fixtures, but it annoyed me very hard!

@kirrg001 kirrg001 changed the title [WIP] package.json validation && fixture cleanup package.json validation && fixture cleanup May 31, 2017
refs TryGhost#40

- removed package-json-validator dependency, because it can't provide what we need
- add semver/validator to validate the package.json on our own (be relaxed with dependencie pinning - so Ghost won't install the dependencies twice)
- this was a true mess
@aileen
Copy link
Member

aileen commented Jun 1, 2017

Tested with different themes and errors in package.json LGTM 👍

@aileen aileen merged commit 97eeffb into TryGhost:master Jun 1, 2017
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