ref/ upgrade angular to 6.0.3
This commit is contained in:
22
README.md
22
README.md
@@ -15,7 +15,7 @@ Bootstrap and package your project with Angular 6(+) and Electron (Typescript +
|
||||
|
||||
Currently runs with:
|
||||
|
||||
- Angular v6.0.2
|
||||
- Angular v6.0.3
|
||||
- Angular-CLI v6.0.3
|
||||
- Electron v2.0.1
|
||||
- Electron Builder v20.13.4
|
||||
@@ -60,12 +60,6 @@ The application code is managed by `main.ts`. In this sample, the app runs with
|
||||
The Angular component contains an example of Electron and NodeJS native lib import.
|
||||
You can desactivate "Developer Tools" by commenting `win.webContents.openDevTools();` in `main.ts`.
|
||||
|
||||
## Manage your environment variables
|
||||
|
||||
- Using local variables : `npm start` or `cross-env ENV=local npm start`
|
||||
- Using development variables : `cross-env ENV=dev npm start`
|
||||
- Using production variables : `cross-env ENV=prod npm start`
|
||||
|
||||
## Included Commands
|
||||
|
||||
|Command|Description|
|
||||
@@ -85,6 +79,20 @@ You can desactivate "Developer Tools" by commenting `win.webContents.openDevTool
|
||||
Maybe you want to execute the application in the browser (WITHOUT HOT RELOAD ACTUALLY...) ? You can do it with `npm run ng:serve`.
|
||||
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.
|
||||
|
||||
## Error with nodejs third party packages
|
||||
|
||||
However since Angular 6 does not provide an eject anymore, you can't configure your webpack config file to import node externals.
|
||||
|
||||
An issue in [Angular repository](https://github.com/angular/angular-cli/issues/10681) is opened about this feature.
|
||||
|
||||
Please have a look at [Stack Overflow Post workaround](https://stackoverflow.com/questions/50234196/after-updating-from-angular-5-to-6-i-keep-getting-the-error-cant-resolve-timer) or use branch [angular5](https://github.com/maximegris/angular-electron/tree/angular5) and continue to eject your configuration file.
|
||||
|
||||
## Branch & Packages version
|
||||
|
||||
- Angular 4 & Electron 1 : Branch [angular4](https://github.com/maximegris/angular-electron/tree/angular4)
|
||||
- Angular 5 & Electron 1 : Branch [angular5](https://github.com/maximegris/angular-electron/tree/angular5)
|
||||
- Angular 6 & Electron 2 : (master)
|
||||
|
||||
[build-badge]: https://travis-ci.org/maximegris/angular-electron.svg?branch=master
|
||||
[build]: https://travis-ci.org/maximegris/angular-electron.svg?branch=master
|
||||
[dependencyci-badge]: https://dependencyci.com/github/maximegris/angular-electron/badge
|
||||
|
||||
Reference in New Issue
Block a user