Skip to content

Commit bb00e26

Browse files
committed
Migrate wp-now from WordPress Playground repo
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.
2 parents 4067d04 + f52a7be commit bb00e26

119 files changed

Lines changed: 11610 additions & 476 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎README.md‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@
22

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

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

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

‎bin/wp-now‎

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#!/bin/bash
2+
3+
if [[ $(uname -s) == 'Darwin' ]]; then
4+
SCRIPT_PATH=$(realpath "$0")
5+
else
6+
SCRIPT_PATH=$(readlink -f "$0")
7+
fi
8+
SCRIPT_DIR=$(dirname "$SCRIPT_PATH")
9+
10+
ARGS="$@"
11+
if [[ "$@" != *"--path="* ]]; then
12+
ARGS="$@ --path=$PWD"
13+
fi
14+
15+
cd $SCRIPT_DIR/..
16+
export NVM_DIR=$HOME/.nvm;
17+
source $NVM_DIR/nvm.sh;
18+
nvm use
19+
npx nx preview wp-now $ARGS

0 commit comments

Comments
 (0)