1
0
Fork 0
mirror of https://github.com/heyarne/airsonic-ui.git synced 2026-05-06 18:33:38 +02:00

Make sure to always run tests in development

This commit is contained in:
Arne Schlüter 2018-05-30 13:34:38 +02:00
commit ca8972f8c3
2 changed files with 16 additions and 16 deletions

View file

@ -21,10 +21,10 @@ To build the project make sure you have Node.js (v6.0.0), npm and Java 8 install
```
# after cloning the project, first install all dependencies
$ npm install
# start a continuous build with hot-code-reloading; first build takes a while. open http://localhost:8080
# start a continuous build with hot-code-reloading and continuous testing
# first build takes a while. open http://localhost:8080
$ npm run dev
# build and optimize the code once for production
$ npm run build
```
**Note:** In dev mode this project comes with re-frame-10x. You can hit `Ctrl + h` to display the overlay and have a time traveling debugger.
@ -36,17 +36,19 @@ This project uses [karma](https://karma-runner.github.io/) for tests. Make sure
```
# run tests once
$ npm test
# run tests continuously, watching for changes
$ npm run test:watch
```
## Build artifacts
Everything you need to serve the app can be found inside the `public` folder.
## Deploy to github
## Deployment
```
# will build everything and publish everything in /public via gh-pages
# build and optimize the code once for production
$ npm run build
# runs npm run build and publishes everything via gh-pages
$ npm run deploy
```
All build artifacts will be output in `/public`. Don't change anything in there as changes will be overwritten.