ref/ upgrade Angular 8 and Electron 5
This commit is contained in:
13
README.md
13
README.md
@@ -15,9 +15,9 @@ Bootstrap and package your project with Angular 7 and Electron (Typescript + SAS
|
||||
|
||||
Currently runs with:
|
||||
|
||||
- Angular v7.2.0
|
||||
- Electron v4.0.0
|
||||
- Electron Builder v20.28.1
|
||||
- Angular v8.0.0
|
||||
- Electron v5.0.2
|
||||
- Electron Builder v20.41.0
|
||||
|
||||
With this sample, you can :
|
||||
|
||||
@@ -25,6 +25,8 @@ With this sample, you can :
|
||||
- Run your app in a production environment
|
||||
- Package your app into an executable file for Linux, Windows & Mac
|
||||
|
||||
/!\ Angular 8.0 CLI needs Node 10.9 or later to work.
|
||||
|
||||
## Getting Started
|
||||
|
||||
Clone this repository locally :
|
||||
@@ -80,14 +82,15 @@ You can do this! Just by importing your library in npm dependencies (not devDepe
|
||||
## Browser mode
|
||||
|
||||
Maybe you want to execute the application in the browser with hot reload ? You can do it with `npm run ng:serve: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.
|
||||
**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.
|
||||
|
||||
## 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 3 : Branch [angular6](https://github.com/maximegris/angular-electron/tree/angular6)
|
||||
- Angular 7 & Electron 3 : (master)
|
||||
- Angular 7 & Electron 3 : Branch [angular7](https://github.com/maximegris/angular-electron/tree/angular7)
|
||||
- Angular 8 & Electron 4 : (master)
|
||||
|
||||
[build-badge]: https://travis-ci.org/maximegris/angular-electron.svg?branch=master
|
||||
[build]: https://travis-ci.org/maximegris/angular-electron
|
||||
|
||||
12
browserslist
Normal file
12
browserslist
Normal file
@@ -0,0 +1,12 @@
|
||||
# This file is used by the build system to adjust CSS and JS output to support the specified browsers below.
|
||||
# For additional information regarding the format and rule options, please see:
|
||||
# https://github.com/browserslist/browserslist#queries
|
||||
|
||||
# You can see what browsers were selected by your queries by running:
|
||||
# npx browserslist
|
||||
|
||||
> 0.5%
|
||||
last 2 versions
|
||||
Firefox ESR
|
||||
not dead
|
||||
not IE 9-11 # For IE 9-11 support, remove 'not'.
|
||||
50
package.json
50
package.json
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "angular-electron",
|
||||
"version": "5.1.0",
|
||||
"description": "Angular 7 with Electron (Typescript + SASS + Hot Reload)",
|
||||
"version": "6.0.0",
|
||||
"description": "Angular 8 with Electron (Typescript + SASS + Hot Reload)",
|
||||
"homepage": "https://github.com/maximegris/angular-electron",
|
||||
"author": {
|
||||
"name": "Maxime GRIS",
|
||||
@@ -9,7 +9,7 @@
|
||||
},
|
||||
"keywords": [
|
||||
"angular",
|
||||
"angular 7",
|
||||
"angular 8",
|
||||
"electron",
|
||||
"typescript",
|
||||
"sass"
|
||||
@@ -38,31 +38,30 @@
|
||||
"version": "conventional-changelog -i CHANGELOG.md -s -r 0 && git add CHANGELOG.md"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@angular-devkit/build-angular": "0.12.1",
|
||||
"@angular/cli": "7.3.3",
|
||||
"@angular/common": "7.2.7",
|
||||
"@angular/compiler": "7.2.7",
|
||||
"@angular/compiler-cli": "7.2.7",
|
||||
"@angular/core": "7.2.7",
|
||||
"@angular/forms": "7.2.7",
|
||||
"@angular/http": "7.2.7",
|
||||
"@angular/language-service": "7.2.7",
|
||||
"@angular/platform-browser": "7.2.7",
|
||||
"@angular/platform-browser-dynamic": "7.2.7",
|
||||
"@angular/router": "7.2.7",
|
||||
"@angular-devkit/build-angular": "~0.800.0",
|
||||
"@angular/cli": "8.0.1",
|
||||
"@angular/common": "8.0.0",
|
||||
"@angular/compiler": "8.0.0",
|
||||
"@angular/compiler-cli": "8.0.0",
|
||||
"@angular/core": "8.0.0",
|
||||
"@angular/forms": "8.0.0",
|
||||
"@angular/language-service": "8.0.0",
|
||||
"@angular/platform-browser": "8.0.0",
|
||||
"@angular/platform-browser-dynamic": "8.0.0",
|
||||
"@angular/router": "8.0.0",
|
||||
"@ngx-translate/core": "11.0.1",
|
||||
"@ngx-translate/http-loader": "4.0.0",
|
||||
"@types/jasmine": "2.8.7",
|
||||
"@types/jasminewd2": "2.0.3",
|
||||
"@types/mocha": "^5.2.6",
|
||||
"@types/mocha": "5.2.6",
|
||||
"@types/node": "8.9.4",
|
||||
"chai": "^4.2.0",
|
||||
"codelyzer": "4.5.0",
|
||||
"chai": "4.2.0",
|
||||
"codelyzer": "^5.0.1",
|
||||
"conventional-changelog-cli": "2.0.11",
|
||||
"core-js": "2.6.1",
|
||||
"electron": "4.0.0",
|
||||
"electron-builder": "20.36.2",
|
||||
"electron-reload": "1.3.0",
|
||||
"electron": "5.0.2",
|
||||
"electron-builder": "20.41.0",
|
||||
"electron-reload": "1.4.0",
|
||||
"jasmine-core": "3.3.0",
|
||||
"jasmine-spec-reporter": "4.2.1",
|
||||
"karma": "3.1.1",
|
||||
@@ -72,13 +71,16 @@
|
||||
"karma-jasmine-html-reporter": "1.4.0",
|
||||
"mocha": "6.0.2",
|
||||
"npm-run-all": "4.1.5",
|
||||
"rxjs": "6.4.0",
|
||||
"rxjs": "6.5.2",
|
||||
"spectron": "5.0.0",
|
||||
"ts-node": "7.0.1",
|
||||
"tslint": "5.11.0",
|
||||
"typescript": "3.2.4",
|
||||
"typescript": "3.4.5",
|
||||
"wait-on": "3.2.0",
|
||||
"webdriver-manager": "12.1.0",
|
||||
"zone.js": "0.8.29"
|
||||
"zone.js": "~0.9.1"
|
||||
},
|
||||
"engines" : {
|
||||
"node" : ">=10.9.0"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -18,57 +18,40 @@
|
||||
* BROWSER POLYFILLS
|
||||
*/
|
||||
|
||||
/** IE9, IE10 and IE11 requires all of the following polyfills. **/
|
||||
// import 'core-js/es6/symbol';
|
||||
// import 'core-js/es6/object';
|
||||
// import 'core-js/es6/function';
|
||||
// import 'core-js/es6/parse-int';
|
||||
// import 'core-js/es6/parse-float';
|
||||
// import 'core-js/es6/number';
|
||||
// import 'core-js/es6/math';
|
||||
// import 'core-js/es6/string';
|
||||
// import 'core-js/es6/date';
|
||||
// import 'core-js/es6/array';
|
||||
// import 'core-js/es6/regexp';
|
||||
// import 'core-js/es6/map';
|
||||
// import 'core-js/es6/weak-map';
|
||||
// import 'core-js/es6/set';
|
||||
|
||||
/**
|
||||
* If the application will be indexed by Google Search, the following is required.
|
||||
* Googlebot uses a renderer based on Chrome 41.
|
||||
* https://developers.google.com/search/docs/guides/rendering
|
||||
**/
|
||||
// import 'core-js/es6/array';
|
||||
|
||||
/** IE10 and IE11 requires the following for NgClass support on SVG elements */
|
||||
// import 'classlist.js'; // Run `npm install --save classlist.js`.
|
||||
|
||||
/** IE10 and IE11 requires the following for the Reflect API. */
|
||||
// import 'core-js/es6/reflect';
|
||||
|
||||
/**
|
||||
* Web Animations `@angular/platform-browser/animations`
|
||||
* Only required if AnimationBuilder is used within the application and using IE/Edge or Safari.
|
||||
* Standard animation support in Angular DOES NOT require any polyfills (as of Angular 6.0).
|
||||
**/
|
||||
*/
|
||||
// import 'web-animations-js'; // Run `npm install --save web-animations-js`.
|
||||
|
||||
/**
|
||||
* By default, zone.js will patch all possible macroTask and DomEvents
|
||||
* user can disable parts of macroTask/DomEvents patch by setting following flags
|
||||
* because those flags need to be set before `zone.js` being loaded, and webpack
|
||||
* will put import in the top of bundle, so user need to create a separate file
|
||||
* in this directory (for example: zone-flags.ts), and put the following flags
|
||||
* into that file, and then add the following code before importing zone.js.
|
||||
* import './zone-flags.ts';
|
||||
*
|
||||
* The flags allowed in zone-flags.ts are listed here.
|
||||
*
|
||||
* The following flags will work for all browsers.
|
||||
*
|
||||
* (window as any).__Zone_disable_requestAnimationFrame = true; // disable patch requestAnimationFrame
|
||||
* (window as any).__Zone_disable_on_property = true; // disable patch onProperty such as onclick
|
||||
* (window as any).__zone_symbol__UNPATCHED_EVENTS = ['scroll', 'mousemove']; // disable patch specified eventNames
|
||||
*
|
||||
* in IE/Edge developer tools, the addEventListener will also be wrapped by zone.js
|
||||
* with the following flag, it will bypass `zone.js` patch for IE/Edge
|
||||
*
|
||||
* (window as any).__Zone_enable_cross_context_check = true;
|
||||
*
|
||||
*/
|
||||
|
||||
// (window as any).__Zone_disable_requestAnimationFrame = true; // disable patch requestAnimationFrame
|
||||
// (window as any).__Zone_disable_on_property = true; // disable patch onProperty such as onclick
|
||||
// (window as any).__zone_symbol__BLACK_LISTED_EVENTS = ['scroll', 'mousemove']; // disable patch specified eventNames
|
||||
|
||||
/*
|
||||
* in IE/Edge developer tools, the addEventListener will also be wrapped by zone.js
|
||||
* with the following flag, it will bypass `zone.js` patch for IE/Edge
|
||||
*/
|
||||
// (window as any).__Zone_enable_cross_context_check = true;
|
||||
|
||||
/***************************************************************************************************
|
||||
* Zone JS is required by default for Angular itself.
|
||||
*/
|
||||
|
||||
@@ -123,12 +123,12 @@
|
||||
"kebab-case"
|
||||
],
|
||||
"no-output-on-prefix": true,
|
||||
"use-input-property-decorator": true,
|
||||
"use-output-property-decorator": true,
|
||||
"use-host-property-decorator": true,
|
||||
"no-inputs-metadata-property": true,
|
||||
"no-outputs-metadata-property": true,
|
||||
"no-host-metadata-property": true,
|
||||
"no-input-rename": true,
|
||||
"no-output-rename": true,
|
||||
"use-life-cycle-interface": true,
|
||||
"use-lifecycle-interface": true,
|
||||
"use-pipe-transform-interface": true,
|
||||
"component-class-suffix": true,
|
||||
"directive-class-suffix": true
|
||||
|
||||
Reference in New Issue
Block a user