Skip to content

Commit

Permalink
updated readme for development inside docker
Browse files Browse the repository at this point in the history
  • Loading branch information
AlokTakshak committed Aug 13, 2019
1 parent bd7121d commit 77596db
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 1 deletion.
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ demo-app
├── .eslintignore
├── .prettierrc
├── .prettierignore
├── docker
│ ├── dev.js
│ ├── docker-compose.yml
│ └── Dockerfile.dev
├── public
│ ├── favicon.ico
│ ├── index.html
Expand Down Expand Up @@ -64,6 +68,10 @@ demo-app
├── .eslintignore
├── .prettierrc
├── .prettierignore
├── docker
│ ├── dev.js
│ ├── docker-compose.yml
│ └── Dockerfile.dev
├── public
│   ├── favicon.ico
│   ├── index.html
Expand Down Expand Up @@ -100,6 +108,12 @@ before running this first run `npm run build`.
Start the development server on default port `8080`.<br>
Starts server in hot mode but doesn't preserve state of component if any while reloading.

### `npm run docker:dev`

Start the development server inside the docker container.<br>
Maps machines port `8080` to `docker` container port `8080`.<br>
Helpful in case you want to do development inside container keeping the environment same for everyone, removes the need for changing node version for different applications.

### `npm run dev:hot`

Start the development server on default port `8080`.<br>
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "create-react-webpack",
"version": "0.0.9",
"version": "0.1.0",
"description": "create-react-webpack ",
"main": "scripts/create.js",
"bin": {
Expand Down
6 changes: 6 additions & 0 deletions template/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,12 @@ Starts server in hot mode but doesn't preserve state of component if any while r
Start the development server on default port `8080`.<br>
Starts server in hot mode preserves state of component also if any while applying hot load patch.

### `npm run docker:dev`

Start the development server inside the docker container.<br>
Maps machines port `8080` to `docker` container port `8080`.<br>
Helpful in case you want to do development inside container keeping the environment same for everyone, removes the need for changing node version for different applications.

### `npm test`

Launches Test Runner in the intreactive manner.
Expand Down

0 comments on commit 77596db

Please sign in to comment.