-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Admin UI static building #1088
Admin UI static building #1088
Conversation
✅ This PR has a changeset ✅ Click here to learn what changesets are. |
This is mostly ready but I have some questions about the CLI @jesstelford:
|
No particular reason. It's basically a very thin wrapper over just executing the file with
Note that
I don't mind there being a config option too. Personally, I go back and forth between preferring the CLI option and the the config file option for various utils. I like the atomicity of the CLI option - I can run the CLI with different options and not worry about a config file getting in the way. But on the other hand, when there are lots of options, a config file is much easier to read and edit ¯\_(ツ)_/¯ |
How would you feel about removing it because I feel like it's confusing because you can't use the CLI to pass in options because you have to pass it into |
Co-Authored-By: mitchellhamilton <mitchell@hamil.town>
…login tests do a static build on CI
Yeah, great idea! Copy one of the existing tests to a new test file so it's isolated, and we can build on it in the future 👍 |
Do you mean one of the jest tests? I'd rather not do that right now because those particular tests do so much mocking and the internals will change soon because of the servers stuff so the tests would have to change really soon because of that. After the servers stuff is done, I'd like to change those tests to not do very much mocking at all and test everything nicely. I've made it so the login integration tests run keystone build and start the server with NODE_ENV=production on CI so we have a smoke test for the build and prod start. I've also fixed the output directory stuff and updated the docs in the root README so it's accurate with what's currently implemented. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Love it! Just a couple cleanups and it's good to merge 👍
Co-Authored-By: mitchellhamilton <mitchell@hamil.town>
Looks like that test you added is catching a bug already! 🎉 |
No description provided.