Skip to content

Commit

Permalink
Add "dev" command alias (#5)
Browse files Browse the repository at this point in the history
* Add "dev" command alias 

Add command alias `dev` for `;fastOptJS::startWebpackDevServer;~fastOptJS`

* Update readme to document dev command
  • Loading branch information
gavares authored and shadaj committed Sep 18, 2018
1 parent 805c887 commit 2dcd338
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.markdown
Expand Up @@ -9,7 +9,7 @@ sbt new shadaj/create-react-scala-app.g8
... follow instructions to create your app

cd my-app/
sbt ";fastOptJS::startWebpackDevServer;~fastOptJS"
sbt "dev"
```

Then open http://localhost:8080 to see your app.
Expand Down Expand Up @@ -63,7 +63,7 @@ my-app
No configuration or complicated folder structures, just the files you need to build your app.
Once the installation is done, you can run some commands inside the project folder:

### `sbt ";fastOptJS::startWebpackDevServer;~fastOptJS"`
### `sbt "dev"`
Runs the app in development mode with hot-reloading enabled.
Open http://localhost:8080 to see your app

Expand Down
2 changes: 2 additions & 0 deletions src/main/g8/build.sbt
Expand Up @@ -36,3 +36,5 @@ webpackDevServerExtraArgs in fastOptJS := Seq("--inline", "--hot")
webpackBundlingMode in fastOptJS := BundlingMode.LibraryOnly()

requiresDOM in Test := true

addCommandAlias("dev", ";fastOptJS::startWebpackDevServer;~fastOptJS")

0 comments on commit 2dcd338

Please sign in to comment.