Skip to content

Command-line tool to serve local WordPress sites using wp-now

License

Notifications You must be signed in to change notification settings

TangibleInc/now

Repository files navigation

@tangible/now

Standalone command-line tool to manage local WordPress sites

This is a fork of wp-now, customized for local development and testing purpose.

Changes

  • Add option --silence to stop log messages to console, for example during tests
  • Add option --open to optionally open the site in a browser (previously by default)
  • Load compatible configuration from .wp-env.json and .wp-env.override.json
    • Port
    • Mappings: Mount directories from local file system, such as vendor plugins
  • Package standalone executable binary for Linux/macOS/Windows - Currently using @yao-pkg/pkg

How it started

Cloning a subdirectory of a monorepo into its own repository

git clone --depth 1 --single-branch --branch trunk https://github.com/WordPress/playground-tools now
git remote -v
git remote remove origin
git remote add upstream https://github.com/WordPress/playground-tools
git branch -m trunk upstream-trunk
git subtree split --prefix=packages/wp-now/src -b wp-now
git checkout wp-now
git checkout -b main

Sync from upstream

git checkout upstream-trunk
git pull
git subtree split --prefix=packages/wp-now/src --onto wp-now -b wp-now
git checkout main
git merge wp-now

About

Command-line tool to serve local WordPress sites using wp-now

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published