Skip to content

Commit

Permalink
Migrate wp-now from WordPress Playground repo
Browse files Browse the repository at this point in the history
Previous changes to wp-now directory can be browsed at https://github.com/WordPress/wordpress-playground/tree/trunk/packages/wp-now

Previous changes to bin directory can be browsed at https://github.com/WordPress/wordpress-playground/tree/trunk/bin

Moves `wp-now` from the main WordPress playground repository to a dedicated space.

As outlined in WordPress/wordpress-playground#473, WordPress Playground is re-focusing on WordPress/wordpress-playground#472 and separating the framework from the applications.
  • Loading branch information
adamziel committed May 31, 2023
2 parents 4067d04 + f52a7be commit bb00e26
Show file tree
Hide file tree
Showing 119 changed files with 11,610 additions and 476 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@

This repository contains the tools and applications built using [WordPress Playground](https://developer.wordpress.org/playground/):

* [Interactive Code Block for Gutenberg](./packages/interactive-code-block/)
* [WordPress Playground for Visual Studio Code](./packages/vscode-extension/)
- [Interactive Code Block for Gutenberg](./packages/interactive-code-block/)
- [WordPress Playground for Visual Studio Code](./packages/vscode-extension/)
- [wp-now](./packages/wp-now/)

If you were looking for the Playground itself, you can find it here: [WordPress Playground](https://developer.wordpress.org/playground/)

Expand Down
19 changes: 19 additions & 0 deletions bin/wp-now
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/bin/bash

if [[ $(uname -s) == 'Darwin' ]]; then
SCRIPT_PATH=$(realpath "$0")
else
SCRIPT_PATH=$(readlink -f "$0")
fi
SCRIPT_DIR=$(dirname "$SCRIPT_PATH")

ARGS="$@"
if [[ "$@" != *"--path="* ]]; then
ARGS="$@ --path=$PWD"
fi

cd $SCRIPT_DIR/..
export NVM_DIR=$HOME/.nvm;
source $NVM_DIR/nvm.sh;
nvm use
npx nx preview wp-now $ARGS
Loading

0 comments on commit bb00e26

Please sign in to comment.