From 881875036a46f13ef6980e84a6064a665670f454 Mon Sep 17 00:00:00 2001 From: Maxime GRIS Date: Sat, 6 May 2017 01:11:27 +0200 Subject: [PATCH] Move Browser mode chapter --- README.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index b9a3040c4..5be8aedbe 100644 --- a/README.md +++ b/README.md @@ -82,6 +82,11 @@ If you need to use NodeJS native libraries like 'fs' or 'os', you **MUST** add i }, ``` +## Browser mode + +Maybe you want to execute the application in the browser ? You can do it with `npm run start:web`. +Note that you can't use Electron or NodeJS native libraries in this case. Please check `providers/electron.service.ts` to watch how conditional import of electron/Native libraries is done. + ## Execute E2E tests You can find end-to-end tests in /e2e folder. @@ -92,7 +97,3 @@ You can now execute tests with the command lines below : - **in a terminal window** -> First, start a web server on port 4200 : `npm run start:web` - **in another terminal window** -> Then, execute Protractor : `npm run e2e` -## Browser mode - -Maybe you want to execute the application in the browser ? You can do it with `npm run start:web`. -Note that you can't use Electron or NodeJS native libraries in this case. Please check `providers/electron.service.ts` to watch how conditional import of electron/Native libraries is done.