From 66dd264f7b15c05006faa00694c88c56794edc54 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Sun, 11 Jun 2017 11:29:03 +0200 Subject: Better build/dev scripts --- support/doc/client/code.md | 2 +- support/doc/server/code.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'support/doc') diff --git a/support/doc/client/code.md b/support/doc/client/code.md index c1a5c1c5f..bae53ffe5 100644 --- a/support/doc/client/code.md +++ b/support/doc/client/code.md @@ -55,7 +55,7 @@ Uses [TSLint](https://palantir.github.io/tslint/) for TypeScript linting and [An * Install [the dependencies](https://github.com/Chocobozzz/PeerTube#dependencies) * Run `npm install` at the root directory to install all the dependencies * Run PostgreSQL and create the database `peertube_dev`. - * Run `npm run dev` to compile the client and automatically run the server. Then the server will watch and compile the client files automatically. You just need to refresh the browser to see your modifications. + * Run `npm run dev:client` to compile the client, run the server and watch client files modifications. In a Angular application, we create components that we put together. Each component is defined by an HTML structure, a TypeScript file and optionnaly a SASS file. If you are not familiar with Angular I recommend you to read the [quickstart guide](https://angular.io/docs/ts/latest/quickstart.html). diff --git a/support/doc/server/code.md b/support/doc/server/code.md index 76d11c963..13e592335 100644 --- a/support/doc/server/code.md +++ b/support/doc/server/code.md @@ -42,7 +42,7 @@ Uses [JavaScript Standard Style](http://standardjs.com/). * Install [the dependencies](https://github.com/Chocobozzz/PeerTube#dependencies) * Run `npm install` at the root directory to install all the dependencies * Run PostgreSQL and create the database `peertube_dev`. - * Run `npm run dev` to compile the client and automatically run the server. If the client files are already compiled you can simply run `NODE_ENV=test node dist/server` + * Run `npm run dev:server` to compile the client, run the server and watch server files modifications. The `NODE_ENV=test` is set to speed up communications between pods (see [constants.ts](https://github.com/Chocobozzz/PeerTube/blob/master/server/initializers/constants.ts)). -- cgit v1.2.3