Skip to content

Commit 06547e5

Browse files
committed
Chapters order
1 parent 0849a0a commit 06547e5

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

Diff for: README.md

+15-15
Original file line numberDiff line numberDiff line change
@@ -53,28 +53,13 @@ The application code is managed by `main.js`. In this sample, the app runs with
5353
The Angular component contains an example of Electron and NodeJS native lib import. See [Use NodeJS Native libraries](#use-nodejs-native-libraries) charpter if you want to import other native libraries in your project.
5454
You can desactivate "Developer Tools" by commenting `win.webContents.openDevTools();` in `main.js`.
5555

56-
## Browser mode
57-
58-
Maybe you want to execute the application in the browser ? You can do it with `npm run start:web`.
59-
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.
60-
6156
## To build for production
6257

6358
- Using development variables (environments/index.ts) : `npm run electron:dev`
6459
- Using production variables (environments/index.prod.ts) : `npm run electron:prod`
6560

6661
Your built files are in the /dist folder.
6762

68-
## Execute E2E tests
69-
70-
You can find end-to-end tests in /e2e folder.
71-
72-
Before executing e2e scripts, you may need to update drivers libraries : `npm run pree2e`
73-
74-
You can now execute tests with the command lines below :
75-
- **in a terminal window** -> First, start a web server on port 4200 : `npm run start:web`
76-
- **in another terminal window** -> Then, execute Protractor : `npm run e2e`
77-
7863
## Included Commands
7964

8065
- `npm run start:web` - Execute the app in the brower
@@ -96,3 +81,18 @@ If you need to use NodeJS native libraries like 'fs' or 'os', you **MUST** add i
9681
"fs": 'require(\'fs\')'
9782
},
9883
```
84+
85+
## Execute E2E tests
86+
87+
You can find end-to-end tests in /e2e folder.
88+
89+
Before executing e2e scripts, you may need to update drivers libraries : `npm run pree2e`
90+
91+
You can now execute tests with the command lines below :
92+
- **in a terminal window** -> First, start a web server on port 4200 : `npm run start:web`
93+
- **in another terminal window** -> Then, execute Protractor : `npm run e2e`
94+
95+
## Browser mode
96+
97+
Maybe you want to execute the application in the browser ? You can do it with `npm run start:web`.
98+
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.

0 commit comments

Comments
 (0)