From 3afcd7fd9f77f8c46380922061d3b7e8d721eaa0 Mon Sep 17 00:00:00 2001 From: Ray Schamp Date: Thu, 19 Nov 2015 15:59:30 -0500 Subject: [PATCH] Remove `watch` and `stop` targets, update README --- Makefile | 10 ---------- README.md | 14 +++----------- 2 files changed, 3 insertions(+), 21 deletions(-) diff --git a/Makefile b/Makefile index c71ac6b45..6f51b639c 100644 --- a/Makefile +++ b/Makefile @@ -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: $(NODE) ./server/index.js diff --git a/README.md b/README.md index e1d348f2a..d5b86566a 100644 --- a/README.md +++ b/README.md @@ -9,29 +9,21 @@ npm install 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 ```bash npm start ``` -or to start and watch at once -```bash -npm run dev -``` +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. 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 -```bash -# Stops all `start` and `watch` processes -npm stop -``` +Use `^C` to stop the node process `npm start` starts. #### 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 | | ------------- | ------------------------------------- | ---------------------------------------------- |