Skip to content

Commit 484acd6

Browse files
authored
Merge pull request #35 from GoogleChromeLabs/NpmRun
Run through 'npm run llama-pack'.
2 parents d1c71bd + 2e9d98d commit 484acd6

3 files changed

Lines changed: 3 additions & 2 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ Edit `llama-pack-config.js`, which can be found inside the cloned repository.
6767
Generate an Android project from an existing Web Manifest:
6868

6969
```shell
70-
<path-to-llama-pack>/bin/llama-pack init --manifest https://my-twa.com/manifest.json
70+
npm run llama-pack init --manifest https://my-twa.com/manifest.json
7171
```
7272

7373
When initalizing a project, llama-pack will download the Web Manifest and ask you to confirm
@@ -78,7 +78,7 @@ app before uploading to the Play Store.
7878

7979
### Building the Android Project
8080
```shell
81-
<path-to-llama-pack>/bin/llama-pack build
81+
npm run llama-pack build
8282
```
8383

8484
When building the project for the first time, the Android Build Tools will need to be installed.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
"outside": "dist/bin/llama-pack"
77
},
88
"scripts": {
9+
"llama-pack": "node dist/bin/llama-pack",
910
"build": "tsc",
1011
"lint": "eslint .",
1112
"test": "jasmine --config=jasmine.json"

0 commit comments

Comments
 (0)