mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2024-11-26 17:16:11 -05:00
Remove watch
and stop
targets, update README
This commit is contained in:
parent
d9936af58f
commit
3afcd7fd9f
2 changed files with 3 additions and 21 deletions
10
Makefile
10
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:
|
start:
|
||||||
$(NODE) ./server/index.js
|
$(NODE) ./server/index.js
|
||||||
|
|
||||||
|
|
14
README.md
14
README.md
|
@ -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 |
|
||||||
| ------------- | ------------------------------------- | ---------------------------------------------- |
|
| ------------- | ------------------------------------- | ---------------------------------------------- |
|
||||||
|
|
Loading…
Reference in a new issue