Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
chrztoph committed May 17, 2021
1 parent d6397d6 commit cdb1304
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,17 +32,17 @@ For more information, please refer to:

To test the template run `yarn test`. This will create a new project in `template-test`.

## How to publish a new version
### How to publish a new version

To publish new versions use np (https://www.npmjs.com/package/np).

```sh
npx np
```

## Testing template Dockerfile
### Testing template Dockerfile

Run `yarn test` and then switch to the newly created folder.
Run `yarn test` and then switch to the newly created folder `template-test`.

Run the following commands to build the image and run it:

Expand All @@ -55,6 +55,8 @@ docker build . \
-t cra-template-aaa-typescript

docker run -p 80:80 cra-template-aaa-typescript
# http://localhost/webapp

docker run -p 80:80 -e REACT_APP_BASE_NAME="/webapp" cra-template-aaa-typescript
# http://localhost/webapp

Expand Down

0 comments on commit cdb1304

Please sign in to comment.