Standalone repository setup for wp-now #478
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What?
Removing wp-now from the main repository means it needs a standalone setup where build, tests, and releases all work.
On the first sight, it might seem like a lot of work. However, thanks to the modularity of
nx
this is as simple as removing all the files that are unrelated towp-now
. It provides a starting point with feature parity as compared to the existing repository setup.Reviewing
There are too many changes to use the
Files changed
Github feature. Instead, refer to the wp-now-standalone branch.Other notes
If
wp-now
finds that useful, it may now easily removenx
as a build tool. It is not that useful for a single project. In this scenario, it would rely just onvite
which is already configured in thewp-now
project directory.As a bonus point,
wp-now
can now be started directly usingnode
without the need to go throughnx preview
because all its dependencies are available throughnode_modules
:To confirm that build, tests, etc indeed work, refer to the CI checks below this PR.
Orchestrating wp-now releases
The same old
npm run release
command continues to work for the standalone version ofwp-now
:Next steps
wp-now
files from this repo