X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=.github%2FCONTRIBUTING.md;h=47129ea74eca2914f791d6740a666b84d5483ce8;hb=c6fb386adc5104db689d1e7b2087c03a71e9974a;hp=7c480c52f049f1ec51d63d3c4a2f28e191ec275c;hpb=05e85b59c7e9b0e9892f326cd0bcc78630004429;p=github%2FChocobozzz%2FPeerTube.git diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.md index 7c480c52f..47129ea74 100644 --- a/.github/CONTRIBUTING.md +++ b/.github/CONTRIBUTING.md @@ -18,8 +18,10 @@ Interested in contributing? Awesome! - [Server side](#server-side) - [Client side](#client-side) - [Client and server side](#client-and-server-side) - - [Testing the federation of PeerTube servers](#testing-the-federation-of-peertube-servers) - - [Unit tests](#unit-tests) + - [RTL layout](#rtl-layout) + - [Testing](#testing) + - [Unit tests](#unit-tests) + - [Testing the federation of PeerTube servers](#testing-the-federation-of-peertube-servers) - [Emails](#emails) - [Plugins & Themes](#plugins--themes) @@ -163,6 +165,14 @@ and the web server is automatically restarted. $ npm run dev ``` +### RTL layout + +To test RTL layout using `ar` locale: + +``` +$ npm run dev -- --ar-locale +``` + ### Testing Your code contributions must pass the tests before they can be merged. Tests ensure most of the application behaves @@ -216,14 +226,16 @@ $ createdb -O peertube peertube_test{1,2,3} Build the application and flush the old tests data: ``` -$ npm run build -- --light +$ npm run build $ npm run clean:server:test ``` -This will run 3 nodes: +To run 3 nodes: ``` -$ npm run play +$ NODE_APP_INSTANCE=1 NODE_ENV=test npm start +$ NODE_APP_INSTANCE=2 NODE_ENV=test npm start +$ NODE_APP_INSTANCE=3 NODE_ENV=test npm start ``` Then you will get access to the three nodes at `http://localhost:900{1,2,3}`