Skip to content

Commit

Permalink
docs: Use npx to run Plop
Browse files Browse the repository at this point in the history
  • Loading branch information
tido64 committed Jun 4, 2020
1 parent 526987b commit c739e51
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,12 @@ to compile the test apps yourself.

# Quick Start

Install `react-native-test-app` and `plop`. We will use
Install `react-native-test-app` as a dev dependency. We will use
[Plop](https://plopjs.com/) to generate the test app:

```bash
yarn add plop react-native-test-app --dev
yarn plop --plopfile node_modules/react-native-test-app/plopfile.js --dest sample
npx plop --plopfile node_modules/react-native-test-app/plopfile.js --dest sample
```

`--dest` tells Plop where to generate the files. In this example, it will
Expand Down
2 changes: 1 addition & 1 deletion scripts/install-test-template.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ version=$(node -e 'console.log(require("./package.json").version)')
npm pack

yarn
yarn plop --dest template-example TemplateExample $platform
npx plop --dest template-example TemplateExample $platform

pushd template-example 1> /dev/null
yarn add ../react-native-test-app-$version.tgz --dev
Expand Down

0 comments on commit c739e51

Please sign in to comment.