Commit 3afcd7fd authored by Ray Schamp's avatar Ray Schamp

Remove `watch` and `stop` targets, update README

parent d9936af5
...@@ -37,16 +37,6 @@ webpack: ...@@ -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
......
...@@ -9,29 +9,21 @@ npm install ...@@ -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 |
| ------------- | ------------------------------------- | ---------------------------------------------- | | ------------- | ------------------------------------- | ---------------------------------------------- |
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment