You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+15-15
Original file line number
Diff line number
Diff line change
@@ -53,28 +53,13 @@ The application code is managed by `main.js`. In this sample, the app runs with
53
53
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.
54
54
You can desactivate "Developer Tools" by commenting `win.webContents.openDevTools();` in `main.js`.
55
55
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
-
61
56
## To build for production
62
57
63
58
- Using development variables (environments/index.ts) : `npm run electron:dev`
64
59
- Using production variables (environments/index.prod.ts) : `npm run electron:prod`
65
60
66
61
Your built files are in the /dist folder.
67
62
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
-
78
63
## Included Commands
79
64
80
65
-`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
96
81
"fs":'require(\'fs\')'
97
82
},
98
83
```
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