Remove watch and stop targets, update README

This commit is contained in:
Ray Schamp 2015-11-19 15:59:30 -05:00
parent d9936af58f
commit 3afcd7fd9f
2 changed files with 3 additions and 21 deletions

View file

@ -37,16 +37,6 @@ webpack:
# ------------------------------------ # ------------------------------------
watch:
$(WATCH) "make clean && make static" ./static &
$(WEBPACK) -d --watch &
wait
stop:
-pkill -f "$(WEBPACK) -d --watch"
-pkill -f "$(WATCH) make clean && make static ./static"
-pkill -f "$(NODE) ./server/index.js"
start: start:
$(NODE) ./server/index.js $(NODE) ./server/index.js

View file

@ -9,29 +9,21 @@ npm install
npm run build npm run build
``` ```
During development, you can use `npm run watch` to cause any update you make to files in either `./static` or `./src` to trigger a rebuild of the project.
### To Run ### To Run
```bash ```bash
npm start npm start
``` ```
or to start and watch at once During development, `npm start` watches any update you make to files in either `./static` or `./src` and triggers a rebuild of the project. In development the build is stored in memory, and not served from the `./build` directory.
```bash
npm run dev
```
Once running, open `http://localhost:8333` in your browser. If you wish to have the server reload automatically, you can install either [nodemon](https://github.com/remy/nodemon) or [forever](https://github.com/foreverjs/forever). Once running, open `http://localhost:8333` in your browser. If you wish to have the server reload automatically, you can install either [nodemon](https://github.com/remy/nodemon) or [forever](https://github.com/foreverjs/forever).
### To stop ### To stop
```bash Use `^C` to stop the node process `npm start` starts.
# Stops all `start` and `watch` processes
npm stop
```
#### Configuration #### Configuration
`npm start` and `npm run watch` can be configured with the following environment variables `npm start` can be configured with the following environment variables
| Variable | Default | Description | | Variable | Default | Description |
| ------------- | ------------------------------------- | ---------------------------------------------- | | ------------- | ------------------------------------- | ---------------------------------------------- |