@@ -1,63 +0,0 @@
|
||||
{
|
||||
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
|
||||
"project": {
|
||||
"name": "angularelectron"
|
||||
},
|
||||
"apps": [
|
||||
{
|
||||
"root": "src",
|
||||
"outDir": "dist",
|
||||
"assets": [
|
||||
"assets",
|
||||
"favicon.ico",
|
||||
"favicon.png",
|
||||
"favicon.icns",
|
||||
"favicon.256x256.png"
|
||||
],
|
||||
"index": "index.html",
|
||||
"main": "main.ts",
|
||||
"polyfills": "polyfills.ts",
|
||||
"test": "test.ts",
|
||||
"tsconfig": "tsconfig.app.json",
|
||||
"testTsconfig": "tsconfig.spec.json",
|
||||
"prefix": "app",
|
||||
"styles": [
|
||||
"styles.scss"
|
||||
],
|
||||
"scripts": [],
|
||||
"environmentSource": "environments/environment.ts",
|
||||
"environments": {
|
||||
"dev": "environments/environment.ts",
|
||||
"prod": "environments/environment.prod.ts"
|
||||
}
|
||||
}
|
||||
],
|
||||
"e2e": {
|
||||
"protractor": {
|
||||
"config": "./protractor.conf.js"
|
||||
}
|
||||
},
|
||||
"lint": [
|
||||
{
|
||||
"project": "src/tsconfig.app.json",
|
||||
"exclude": "**/node_modules/**"
|
||||
},
|
||||
{
|
||||
"project": "src/tsconfig.spec.json",
|
||||
"exclude": "**/node_modules/**"
|
||||
},
|
||||
{
|
||||
"project": "e2e/tsconfig.e2e.json",
|
||||
"exclude": "**/node_modules/**"
|
||||
}
|
||||
],
|
||||
"test": {
|
||||
"karma": {
|
||||
"config": "./karma.conf.js"
|
||||
}
|
||||
},
|
||||
"defaults": {
|
||||
"styleExt": "scss",
|
||||
"component": {}
|
||||
}
|
||||
}
|
||||
4
.gitignore
vendored
4
.gitignore
vendored
@@ -5,7 +5,10 @@
|
||||
/tmp
|
||||
/out-tsc
|
||||
/app-builds
|
||||
/release
|
||||
main.js
|
||||
src/**/*.js
|
||||
*.js.map
|
||||
|
||||
# dependencies
|
||||
/node_modules
|
||||
@@ -38,6 +41,7 @@ package-lock.json
|
||||
|
||||
# e2e
|
||||
/e2e/*.js
|
||||
!/e2e/protractor.conf.js
|
||||
/e2e/*.map
|
||||
|
||||
# System Files
|
||||
|
||||
13
.travis.yml
13
.travis.yml
@@ -1,8 +1,17 @@
|
||||
language: node_js
|
||||
node_js:
|
||||
- "7"
|
||||
- "6"
|
||||
- 8
|
||||
sudo: required
|
||||
addons:
|
||||
chrome: stable
|
||||
before_script:
|
||||
- export DISPLAY=:99.0
|
||||
- sh -e /etc/init.d/xvfb start
|
||||
install:
|
||||
- npm set progress=false
|
||||
- npm install
|
||||
script:
|
||||
- ng lint
|
||||
- npm run test
|
||||
- npm run e2e
|
||||
- npm run build
|
||||
|
||||
642
CHANGELOG.md
642
CHANGELOG.md
@@ -1,295 +1,439 @@
|
||||
### Changelog
|
||||
All notable changes to this project will be documented in this file.
|
||||
## 5.1.0 (2018-11-30)
|
||||
|
||||
#### [3.3.0](https://github.com/maximegris/angular-electron/compare/3.2.0...3.3.0)
|
||||
- add Changelog file [`71083f1`](https://github.com/maximegris/angular-electron/commit/71083f12bf1e20225769af20a8a054ab8af4a6f9)
|
||||
- version 3.3.0 [`a88bda6`](https://github.com/maximegris/angular-electron/commit/a88bda66d83690b1064bcb11a0cb1bb893894caf)
|
||||
* fix/ typo Angular 7 ([fde371f](https://github.com/maximegris/angular-electron/commit/fde371f))
|
||||
* fix/ typo README ([723233c](https://github.com/maximegris/angular-electron/commit/723233c))
|
||||
* fix/ typo script npm electron:windows ([45bab44](https://github.com/maximegris/angular-electron/commit/45bab44))
|
||||
* ref/ remve npx - fix vulnerabilities ([41aeb57](https://github.com/maximegris/angular-electron/commit/41aeb57))
|
||||
* update README ([f146d5d](https://github.com/maximegris/angular-electron/commit/f146d5d))
|
||||
|
||||
#### [3.2.0](https://github.com/maximegris/angular-electron/compare/3.1.0...3.2.0)
|
||||
> 15 April 2018
|
||||
- Terminate the npm process after test execution [`#165`](https://github.com/maximegris/angular-electron/pull/165)
|
||||
- Update dependencies [`#164`](https://github.com/maximegris/angular-electron/pull/164)
|
||||
- fix/ app e2e spec [`#161`](https://github.com/maximegris/angular-electron/pull/161)
|
||||
- provide webFrame access [`#162`](https://github.com/maximegris/angular-electron/pull/162)
|
||||
- Including electron to eliminate Electron not found err sg [`#153`](https://github.com/maximegris/angular-electron/pull/153)
|
||||
- update dependencies [`89963ab`](https://github.com/maximegris/angular-electron/commit/89963ab996a9d96d2f611959fd0a3eb8f35a64ba)
|
||||
- ref/ add node/electron module import as exemple : fs and remote [`e3ad12d`](https://github.com/maximegris/angular-electron/commit/e3ad12dd59f967c2e550131517afa7e5ea0d3389)
|
||||
- fix e2e tests based on PR #161 and terminate the npm process after test execution [`fccf348`](https://github.com/maximegris/angular-electron/commit/fccf348abb323d15043be0dc9fdad136e80fc1a4)
|
||||
- version 3.2.0 [`8dc69fa`](https://github.com/maximegris/angular-electron/commit/8dc69fa648dd26b74915701f80ba2bd2e3fc0bc3)
|
||||
- remove copyfiles [`9af5138`](https://github.com/maximegris/angular-electron/commit/9af5138778c40e08a929322801be217c6d3a3f98)
|
||||
|
||||
#### [3.1.0](https://github.com/maximegris/angular-electron/compare/3.0.1...3.1.0)
|
||||
> 15 March 2018
|
||||
- Fix to change environment [`#145`](https://github.com/maximegris/angular-electron/pull/145)
|
||||
- Added option -o to script npm run ng:serve so that it really open the browser [`#141`](https://github.com/maximegris/angular-electron/pull/141)
|
||||
- version 3.1.0 [`f7c71e7`](https://github.com/maximegris/angular-electron/commit/f7c71e78a0e72ec9bc7fcc20765b3626b13d4af5)
|
||||
|
||||
#### [3.0.1](https://github.com/maximegris/angular-electron/compare/3.0.0...3.0.1)
|
||||
> 7 March 2018
|
||||
- fix/ icon app [`22699ef`](https://github.com/maximegris/angular-electron/commit/22699efd6a5acc6c30ae1b2713228192af4d523a)
|
||||
- version 3.0.1 [`5258ff1`](https://github.com/maximegris/angular-electron/commit/5258ff173b784d50fe6f1faefe10a36ce9525dd8)
|
||||
## 5.0.0 (2018-11-11)
|
||||
|
||||
### [3.0.0](https://github.com/maximegris/angular-electron/compare/2.7.1...3.0.0)
|
||||
> 25 February 2018
|
||||
- Updated dependencies and fixed unit tests [`#129`](https://github.com/maximegris/angular-electron/pull/129)
|
||||
- fix/ TranslateModule test [`7863aa9`](https://github.com/maximegris/angular-electron/commit/7863aa97d2fa37e7d1e0ef66a29ed95876e49260)
|
||||
- merge conflict [`ce5724c`](https://github.com/maximegris/angular-electron/commit/ce5724c11f8fa3d79aeb927c305d031ae09c8845)
|
||||
- Ng not ejected anymore [`67ab31c`](https://github.com/maximegris/angular-electron/commit/67ab31c458c572de0311f27ee8a7d7bc43765999)
|
||||
- update dependencies and fix unit tests [`4d3ca6e`](https://github.com/maximegris/angular-electron/commit/4d3ca6e1b1fc46dea6b7d5e6a7dc09ea5d8d4d44)
|
||||
- pin all dependency versions [`0558d6a`](https://github.com/maximegris/angular-electron/commit/0558d6a5faefcd0e3066b484e2e5bff55d6a368d)
|
||||
* Fix typos in README file ([0440ee9](https://github.com/maximegris/angular-electron/commit/0440ee9))
|
||||
* ref/ Generate changelog ([a89b3ce](https://github.com/maximegris/angular-electron/commit/a89b3ce))
|
||||
* ref/ Upgrade to Angular 7 ([315a79b](https://github.com/maximegris/angular-electron/commit/315a79b))
|
||||
* Update electron-builder.json files rule ([82c7bcf](https://github.com/maximegris/angular-electron/commit/82c7bcf))
|
||||
* Update Version Electron 2 to 3 #hacktoberfest ([f083328](https://github.com/maximegris/angular-electron/commit/f083328))
|
||||
|
||||
** BREAKING CHANGES**
|
||||
|
||||
The build process was migrated to using angular cli rather than webpack. It also makes it easier to migrate to newer Angular releases as they roll out (which was really painful during the last migration). Check the most recent commits for more details.
|
||||
|
||||
#### [2.7.1](https://github.com/maximegris/angular-electron/compare/2.7.0...2.7.1)
|
||||
> 15 February 2018
|
||||
- ref/ dernière version cli [`3df8158`](https://github.com/maximegris/angular-electron/commit/3df81589404dd199efa3f75a1229f54bcc0f1890)
|
||||
- version 2.7.1 [`1ae6f7a`](https://github.com/maximegris/angular-electron/commit/1ae6f7aedca7f099688bfce84a050f6ae014b995)
|
||||
## <small>4.2.2 (2018-08-22)</small>
|
||||
|
||||
#### [2.7.0](https://github.com/maximegris/angular-electron/compare/2.6.0...2.7.0)
|
||||
> 15 February 2018
|
||||
- fix: fixes maximegris/angular-electron#118 [`#121`](https://github.com/maximegris/angular-electron/pull/121)
|
||||
- ref/ update angular & dep [`e3b1fab`](https://github.com/maximegris/angular-electron/commit/e3b1fabba35b1efa5c10156b423dcbb1515860b6)
|
||||
* fix/ build serve & electron with single tsc command ([9106c8f](https://github.com/maximegris/angular-electron/commit/9106c8f))
|
||||
* fix/ typo README ([a9448aa](https://github.com/maximegris/angular-electron/commit/a9448aa))
|
||||
|
||||
#### [2.6.0](https://github.com/maximegris/angular-electron/compare/2.5.0...2.6.0)
|
||||
> 24 January 2018
|
||||
- version bump + logo resize [`#114`](https://github.com/maximegris/angular-electron/pull/114)
|
||||
- feat/ add webview directive [`f3bc99a`](https://github.com/maximegris/angular-electron/commit/f3bc99adb16129e3fef41f5f089cabb59dd0fe54)
|
||||
- feat/ add webview directive [`e1b5600`](https://github.com/maximegris/angular-electron/commit/e1b56002d8ad26df83a8c07f7d7744793f5a11a5)
|
||||
- ref/ upgrade electron (security issue) [`f6a0c4e`](https://github.com/maximegris/angular-electron/commit/f6a0c4ecb97a5ec7c137528e037015d041dd5acc)
|
||||
- ref/ Remove sponsor [`2a28239`](https://github.com/maximegris/angular-electron/commit/2a28239152a3dc4352cef8224e76f6f3c06d6ad5)
|
||||
|
||||
#### [2.5.0](https://github.com/maximegris/angular-electron/compare/2.4.1...2.5.0)
|
||||
> 12 January 2018
|
||||
- fix: fixes maximegris/angular-electron#98 [`#105`](https://github.com/maximegris/angular-electron/pull/105)
|
||||
- Correction of a word. [`#102`](https://github.com/maximegris/angular-electron/pull/102)
|
||||
- migrate Angular to 5.2.0 [`b8cf343`](https://github.com/maximegris/angular-electron/commit/b8cf343f0f33d440feb9a7d7639a65be2790e410)
|
||||
|
||||
#### [2.4.1](https://github.com/maximegris/angular-electron/compare/2.4.0...2.4.1)
|
||||
> 14 December 2017
|
||||
- fix/ Manage icons for linux binary generation [`#92`](https://github.com/maximegris/angular-electron/pull/92)
|
||||
- version 2.4.1 [`5fcfca0`](https://github.com/maximegris/angular-electron/commit/5fcfca019da3426326cc3cbedeafaa662cd70deb)
|
||||
## <small>4.2.1 (2018-08-22)</small>
|
||||
|
||||
#### [2.4.0](https://github.com/maximegris/angular-electron/compare/2.3.0...2.4.0)
|
||||
> 8 December 2017
|
||||
- version 2.4.0 [`0437b33`](https://github.com/maximegris/angular-electron/commit/0437b33c36e6806d60a03463644bb7abe3de83a5)
|
||||
- merge migration httpclient [`1e6113f`](https://github.com/maximegris/angular-electron/commit/1e6113f71aca9f76822ce39facbd31884f4603fb)
|
||||
* fix/ jslib in main process error ([ef33f5e](https://github.com/maximegris/angular-electron/commit/ef33f5e))
|
||||
|
||||
#### [2.3.0](https://github.com/maximegris/angular-electron/compare/2.2.0...2.3.0)
|
||||
> 4 December 2017
|
||||
- Use HttpClientModule [`#88`](https://github.com/maximegris/angular-electron/pull/88)
|
||||
- add ngx translate [`facda37`](https://github.com/maximegris/angular-electron/commit/facda3726d9aab6320905ce78414c4f4f0ab901d)
|
||||
|
||||
#### [2.2.0](https://github.com/maximegris/angular-electron/compare/2.1.1...2.2.0)
|
||||
> 28 November 2017
|
||||
- Update to electron-builder [`#86`](https://github.com/maximegris/angular-electron/pull/86)
|
||||
- Update LICENSE badge [`#85`](https://github.com/maximegris/angular-electron/pull/85)
|
||||
- Brought back scripts defined in webpack.config.js [`#82`](https://github.com/maximegris/angular-electron/pull/82)
|
||||
- migrate to Angular 5.0.3 [`f4bc5b2`](https://github.com/maximegris/angular-electron/commit/f4bc5b21bc63b4c3d2eb81ae1e0a87f0ab571001)
|
||||
|
||||
#### [2.1.1](https://github.com/maximegris/angular-electron/compare/2.1.0...2.1.1)
|
||||
> 19 November 2017
|
||||
- Move codesponsor [`064be4c`](https://github.com/maximegris/angular-electron/commit/064be4cb3c1e733716793d9280dcaf2e661f0cbd)
|
||||
## 4.2.0 (2018-08-19)
|
||||
|
||||
#### [2.1.0](https://github.com/maximegris/angular-electron/compare/2.0.0...2.1.0)
|
||||
> 19 November 2017
|
||||
- Add support for building a single executable for Windows [`#78`](https://github.com/maximegris/angular-electron/pull/78)
|
||||
- fix/ refact webpack config (inspired by ng eject Angular 5) [`d1c30ac`](https://github.com/maximegris/angular-electron/commit/d1c30ac68ef871e65713a9310d8428a276cbdbc3)
|
||||
- Mgrate to Angular 5.0.2 [`bd7bed6`](https://github.com/maximegris/angular-electron/commit/bd7bed6c17f2a9ba268a638e0130638eae27781c)
|
||||
- fix/ Replace AotPlugin to AngularCompilerPlugin [`bef106e`](https://github.com/maximegris/angular-electron/commit/bef106e2f67a43f4548acde01dbfdf8094e8a734)
|
||||
- Add support for building a Windows self-contained executable [`7cfa790`](https://github.com/maximegris/angular-electron/commit/7cfa79030e854d8d806c6b42cad02dab683b13b5)
|
||||
- Add codesponsor [`87e695d`](https://github.com/maximegris/angular-electron/commit/87e695d736f0c0897457949c72c4aea17868ff55)
|
||||
- fix/ replace aotPlugin in no prod mode [`a0caf1e`](https://github.com/maximegris/angular-electron/commit/a0caf1e29266c582ea1a9961942d3604eb3080ad)
|
||||
- Version 2.1.0 [`fccef2f`](https://github.com/maximegris/angular-electron/commit/fccef2f338129e4ba770cccfdf94281886449e9a)
|
||||
- fix/ webpack template path [`518b66b`](https://github.com/maximegris/angular-electron/commit/518b66b16ca0744c625abe26379064bafcd7ba98)
|
||||
- Update package.json [`b16cf73`](https://github.com/maximegris/angular-electron/commit/b16cf7394d5b65e5ec2d014dfb382aa2b6914184)
|
||||
- fix/ Update README Angular 5 [`93c6949`](https://github.com/maximegris/angular-electron/commit/93c694977ff3a3f669e69eb2b6c75565d5819392)
|
||||
- Add script for winportable [`2be2dae`](https://github.com/maximegris/angular-electron/commit/2be2dae6c38ca6f38f5f21d3305251858127f4fb)
|
||||
- fix/ electron-packager need favicon >= 256x256 on Windows [`d2c253f`](https://github.com/maximegris/angular-electron/commit/d2c253f2058f459f0ff2d163e87d9fe4dc33482a)
|
||||
* [Bumped Version] V4.2.0 ([0da3856](https://github.com/maximegris/angular-electron/commit/0da3856))
|
||||
* fix/ electron builder output directories #200 ([f4535e5](https://github.com/maximegris/angular-electron/commit/f4535e5)), closes [#200](https://github.com/maximegris/angular-electron/issues/200)
|
||||
* Make sure tsconfig be used. ([961c8b1](https://github.com/maximegris/angular-electron/commit/961c8b1))
|
||||
* ref/ remove some directories of tsconfig.app.json ([1adad4a](https://github.com/maximegris/angular-electron/commit/1adad4a))
|
||||
* Upgrade Angular (6.1.2) deps ([d8818c1](https://github.com/maximegris/angular-electron/commit/d8818c1))
|
||||
|
||||
### [2.0.0](https://github.com/maximegris/angular-electron/compare/1.9.0...2.0.0)
|
||||
> 13 November 2017
|
||||
- Edit a typo on README [`#71`](https://github.com/maximegris/angular-electron/pull/71)
|
||||
- Add buffer to externals [`#66`](https://github.com/maximegris/angular-electron/pull/66)
|
||||
- Fix #55 removed bootstraps.css which for example purpose before. [`#55`](https://github.com/maximegris/angular-electron/issues/55)
|
||||
- License MIT [`73494b7`](https://github.com/maximegris/angular-electron/commit/73494b7fe9077ee6f167de7ca3614d2e2462da55)
|
||||
- Migrate to Angular 5 [`3a3ffe1`](https://github.com/maximegris/angular-electron/commit/3a3ffe189398324b10c769e0a50d99e305227126)
|
||||
|
||||
** BREAKING CHANGES**
|
||||
Due to Angular 5 migration, all package.json dependencies and webpack.config.js was changed.
|
||||
|
||||
I also decided to change the license of this project. It is now under MIT license.
|
||||
## 4.1.0 (2018-06-27)
|
||||
|
||||
#### [1.9.0](https://github.com/maximegris/angular-electron/compare/1.8.1...1.9.0)
|
||||
> 22 September 2017
|
||||
- feat/ launch electron & webpack in // (npm run start) [`8c37cc4`](https://github.com/maximegris/angular-electron/commit/8c37cc4c7fad3cdd25a76dd514df55e5dc6c39d8)
|
||||
- ref/ Exclude node_modules (tslint) [`412a0a5`](https://github.com/maximegris/angular-electron/commit/412a0a5b626de73055a09137231ef6ba98faf868)
|
||||
* Allow Angular Using Electron Modules ([ec705ee](https://github.com/maximegris/angular-electron/commit/ec705ee))
|
||||
* fix/ version angular (revert 6.0.6 -> 6.0.5) ([63a41b8](https://github.com/maximegris/angular-electron/commit/63a41b8))
|
||||
* fix/ version ts-node ([0d8341a](https://github.com/maximegris/angular-electron/commit/0d8341a))
|
||||
* ref/ postinstall web & electron ([50657d0](https://github.com/maximegris/angular-electron/commit/50657d0))
|
||||
* update README ([1d48e32](https://github.com/maximegris/angular-electron/commit/1d48e32))
|
||||
* feat(zone): add zone-patch-electron to patch Electron native APIs in polyfills ([01842e2](https://github.com/maximegris/angular-electron/commit/01842e2))
|
||||
|
||||
#### [1.8.1](https://github.com/maximegris/angular-electron/compare/1.8.0...1.8.1)
|
||||
> 22 September 2017
|
||||
- Fix #55 , and also added functionality for scripts global building [`#55`](https://github.com/maximegris/angular-electron/issues/55)
|
||||
- remove package-lock [`8e98627`](https://github.com/maximegris/angular-electron/commit/8e986275ba9384575eb27126781bcfb879f86583)
|
||||
- upgrade angular version 4.4.3 [`10d0f87`](https://github.com/maximegris/angular-electron/commit/10d0f870cebee68ded6e75b0775a3e3f25bd666f)
|
||||
- version 1.8.1 [`70879d1`](https://github.com/maximegris/angular-electron/commit/70879d18c45fd65564f160c344552ea3c2195798)
|
||||
- ref/ add package-lock in gitignore [`4edd98d`](https://github.com/maximegris/angular-electron/commit/4edd98d54676b76d3941e4abb93a0ed16a14e48c)
|
||||
|
||||
#### [1.8.0](https://github.com/maximegris/angular-electron/compare/1.7.0...1.8.0)
|
||||
> 9 September 2017
|
||||
- upgrade lib version [`2ac2aa0`](https://github.com/maximegris/angular-electron/commit/2ac2aa0abc798a17b9aa66314c881cef0268c036)
|
||||
|
||||
#### [1.7.0](https://github.com/maximegris/angular-electron/compare/1.6.1...1.7.0)
|
||||
> 18 August 2017
|
||||
- ref/ Update Angular (4.3.5) / Electron (1.7.2) / Electron Packager (8.7.2) / Typescript (2.5.0) [`f97cd81`](https://github.com/maximegris/angular-electron/commit/f97cd8169239c5f15713903207f7e48040b15317)
|
||||
## 4.0.0 (2018-05-25)
|
||||
|
||||
#### [1.6.1](https://github.com/maximegris/angular-electron/compare/1.6.0...1.6.1)
|
||||
> 27 July 2017
|
||||
- fix/ angular-cli error in prod compilation with aot [`c26a5ae`](https://github.com/maximegris/angular-electron/commit/c26a5aec6aacd6def96721646ae2121b942d1a30)
|
||||
- version 1.6.1 [`899babd`](https://github.com/maximegris/angular-electron/commit/899babd5bc22edffa439213c5c1e80112f8b26bb)
|
||||
* misc/ remove unused packages ([a7e33b6](https://github.com/maximegris/angular-electron/commit/a7e33b6))
|
||||
* misc/ update Changelog ([b758122](https://github.com/maximegris/angular-electron/commit/b758122))
|
||||
* ref/ upgrade angular to 6.0.3 ([e7fac6e](https://github.com/maximegris/angular-electron/commit/e7fac6e))
|
||||
|
||||
#### [1.6.0](https://github.com/maximegris/angular-electron/compare/1.5.0...1.6.0)
|
||||
> 16 July 2017
|
||||
- Fix npm run build:prod [`#38`](https://github.com/maximegris/angular-electron/pull/38)
|
||||
- upgrade angular version to 4.3.0 [`ab16959`](https://github.com/maximegris/angular-electron/commit/ab16959ae23c830d412a690ebff04107b1361fae)
|
||||
- increment version deps [`bde452c`](https://github.com/maximegris/angular-electron/commit/bde452c32cc7435acdf779026e8be17679daf785)
|
||||
- fix/ e2e test with jasmine2 [`9c51f32`](https://github.com/maximegris/angular-electron/commit/9c51f3247be9e899d14716b8d38afa415191417d)
|
||||
- fix/ typescript issues [`bb0a6ab`](https://github.com/maximegris/angular-electron/commit/bb0a6abd283e32be606caa0281d68a4fad07eb3c)
|
||||
- fix/ Bindings not updating automatically #44 [`2a90191`](https://github.com/maximegris/angular-electron/commit/2a90191458de6371e59d53c3e32257782884cfaf)
|
||||
- ajout package-lock npm v5 [`09c0840`](https://github.com/maximegris/angular-electron/commit/09c08408111c5d89548803ab9dfc878e85e29b08)
|
||||
- Revert last pull request - break production compilation [`ccc9064`](https://github.com/maximegris/angular-electron/commit/ccc90648fead44107ea2f380289915aa94c1f19a)
|
||||
- Change background img [`7e58717`](https://github.com/maximegris/angular-electron/commit/7e5871714f18e69b9e9769ae857c3b51d8bf74e6)
|
||||
|
||||
#### [1.5.0](https://github.com/maximegris/angular-electron/compare/1.4.4...1.5.0)
|
||||
> 10 June 2017
|
||||
- fix/ remove yarn because of error with module dep in prod builds [`8a49a45`](https://github.com/maximegris/angular-electron/commit/8a49a454caba7dc05325ba0d99b06cb04a80b779)
|
||||
- update yarn lock [`18c0e62`](https://github.com/maximegris/angular-electron/commit/18c0e62dbafe2f6468dfa02071e37ec7f7d0e51d)
|
||||
- fix/ karma Unit test [`ea13d6d`](https://github.com/maximegris/angular-electron/commit/ea13d6d2e13a2b68f924694fd67d64d617eeada8)
|
||||
|
||||
#### [1.4.4](https://github.com/maximegris/angular-electron/compare/1.4.3...1.4.4)
|
||||
> 8 June 2017
|
||||
- fix/ Fix npm run lint [`db7972a`](https://github.com/maximegris/angular-electron/commit/db7972aca4cabd9b4b55420e0e1dd029e7834de9)
|
||||
- ref/ electron ./dist more generic [`7e71add`](https://github.com/maximegris/angular-electron/commit/7e71add264adb946ec2b5ad50fdb4c5376dd492e)
|
||||
- Replace const icon to let icon [`dadf65f`](https://github.com/maximegris/angular-electron/commit/dadf65f89b76751e6fe22e00242e39f512a8da09)
|
||||
## <small>3.4.1 (2018-05-25)</small>
|
||||
|
||||
#### [1.4.3](https://github.com/maximegris/angular-electron/compare/1.4.2...1.4.3)
|
||||
> 6 June 2017
|
||||
- fix/ favicon path during packaging [`aa2b012`](https://github.com/maximegris/angular-electron/commit/aa2b0122878bb3b769e66d2a56a9f31584de1874)
|
||||
- remove build node 8 till node-sass failed [`34f201d`](https://github.com/maximegris/angular-electron/commit/34f201d1d542ec149b76d450d255660f1ecf5d8e)
|
||||
* misc/ update changelog ([70b359f](https://github.com/maximegris/angular-electron/commit/70b359f))
|
||||
* version 3.4.1 ([308ea9c](https://github.com/maximegris/angular-electron/commit/308ea9c))
|
||||
|
||||
#### [1.4.2](https://github.com/maximegris/angular-electron/compare/1.4.0...1.4.2)
|
||||
> 31 May 2017
|
||||
- chore(package): bump dependencies [`#26`](https://github.com/maximegris/angular-electron/pull/26)
|
||||
- upgrade ng/electron dependencies [`78b0f27`](https://github.com/maximegris/angular-electron/commit/78b0f27da33b14d1c26908109c4f984c3a2a4dd7)
|
||||
- update Electron v1.6.10 [`f2f2080`](https://github.com/maximegris/angular-electron/commit/f2f20806c63d3fa8b425bf4df99f975c1c33d23b)
|
||||
- Change dep versions [`62d08d3`](https://github.com/maximegris/angular-electron/commit/62d08d39a78c4b061f5e48e764a3b4d6e703fa30)
|
||||
- Minor update [`5f282b7`](https://github.com/maximegris/angular-electron/commit/5f282b784c1e100c67ce1686a2cc163fea23217a)
|
||||
- install npm dep when building [`56948d0`](https://github.com/maximegris/angular-electron/commit/56948d0fdbc05495c2e27013e0abd5f17c952d10)
|
||||
- No hot reload in browser [`7892f0d`](https://github.com/maximegris/angular-electron/commit/7892f0d3a6859ca4d1c576959351535439279ada)
|
||||
|
||||
#### [1.4.0](https://github.com/maximegris/angular-electron/compare/1.3.6...1.4.0)
|
||||
> 23 May 2017
|
||||
- ref/ electron main from js to ts [`835d32b`](https://github.com/maximegris/angular-electron/commit/835d32bdcdb7d2e7febb30c6b396d2e1ae02046c)
|
||||
- Change style home page [`93dcc52`](https://github.com/maximegris/angular-electron/commit/93dcc52ac960406c22bec9bf4cb7d358ff26923c)
|
||||
|
||||
#### [1.3.6](https://github.com/maximegris/angular-electron/compare/1.3.5...1.3.6)
|
||||
> 21 May 2017
|
||||
- Fixed compiler warnings #21 [`#22`](https://github.com/maximegris/angular-electron/pull/22)
|
||||
- Remove caret & tilde [`dd98155`](https://github.com/maximegris/angular-electron/commit/dd98155951b8bf9e6c4df10d37fc143544ab6afa)
|
||||
- Fixed compiler warnings [`fca6b15`](https://github.com/maximegris/angular-electron/commit/fca6b15d30258d139f112bd547f4a33d385139ef)
|
||||
## 3.4.0 (2018-05-25)
|
||||
|
||||
#### [1.3.5](https://github.com/maximegris/angular-electron/compare/1.3.4...1.3.5)
|
||||
> 18 May 2017
|
||||
- Add new tags [`cd07a86`](https://github.com/maximegris/angular-electron/commit/cd07a86ee85cccedd34d70fe033fce8a6c7f12e5)
|
||||
- v 1.3.5 [`d528a71`](https://github.com/maximegris/angular-electron/commit/d528a71c4ed3b713881f0945d74f3ab0d54d3936)
|
||||
* misc/ update changelog ([7d5eeb3](https://github.com/maximegris/angular-electron/commit/7d5eeb3))
|
||||
* Modify electron builder configuration to remove source code and tests ([0cf6899](https://github.com/maximegris/angular-electron/commit/0cf6899))
|
||||
* ref/ remove contributors ([6dc97a1](https://github.com/maximegris/angular-electron/commit/6dc97a1))
|
||||
* The file is unused ([05c9e39](https://github.com/maximegris/angular-electron/commit/05c9e39))
|
||||
* Translation issue ([35354b1](https://github.com/maximegris/angular-electron/commit/35354b1))
|
||||
* version 3.4.0 ([06d6b0f](https://github.com/maximegris/angular-electron/commit/06d6b0f))
|
||||
* refactor: update electron, electron-builder to latest (2.0.2, 20.14.7) ([f19e6ee](https://github.com/maximegris/angular-electron/commit/f19e6ee))
|
||||
* refactor: upgrade to NodeJS 8, Angular 6, CLI 6, Electron 2.0, RxJS 6.1 ([e37efdb](https://github.com/maximegris/angular-electron/commit/e37efdb))
|
||||
* refactor(hooks): replace hooks to ng-cli fileReplacements logic ([c940037](https://github.com/maximegris/angular-electron/commit/c940037))
|
||||
* fix(test): create polyfills-test.ts for karma test & setup Travis CI ([7fbc68c](https://github.com/maximegris/angular-electron/commit/7fbc68c))
|
||||
* fix(travis): set progress to false (speed up npm) ([be48531](https://github.com/maximegris/angular-electron/commit/be48531))
|
||||
|
||||
#### [1.3.4](https://github.com/maximegris/angular-electron/compare/1.3.3...1.3.4)
|
||||
> 12 May 2017
|
||||
- Ref/ Electron packager in external file [`17b04e8`](https://github.com/maximegris/angular-electron/commit/17b04e8998a5aa9a514a6b2e3b09dc3c745238ae)
|
||||
- feat/ add nodejs native lib in webpack config [`27d9bc6`](https://github.com/maximegris/angular-electron/commit/27d9bc65f84d90ac89d4fcfa3f8a84e6296348f5)
|
||||
- version 1.3.4 [`374af16`](https://github.com/maximegris/angular-electron/commit/374af16f8c92483a09d4be35d501a0d574dc4d86)
|
||||
- Fix issue #15 [`d77cbf1`](https://github.com/maximegris/angular-electron/commit/d77cbf18d6254ec95ad15f0d92dfe7d2a9881cf5)
|
||||
|
||||
#### [1.3.3](https://github.com/maximegris/angular-electron/compare/1.3.2...1.3.3)
|
||||
> 10 May 2017
|
||||
- Version 1.3.3 [`f4db75b`](https://github.com/maximegris/angular-electron/commit/f4db75bbd6474930c782949eca31f24564c8f6de)
|
||||
- Fix issue #15 [`e7cd6e6`](https://github.com/maximegris/angular-electron/commit/e7cd6e6df307c9c781ef7b76206b108ca541e864)
|
||||
- Move browser mode chapter [`89e34eb`](https://github.com/maximegris/angular-electron/commit/89e34ebe49123e9319662345d86a598dbf5d8a07)
|
||||
- Chapters order [`a772b9c`](https://github.com/maximegris/angular-electron/commit/a772b9c74fd8c2d4aa1358caaa2f839bfa2a2d79)
|
||||
- Chapters order [`06547e5`](https://github.com/maximegris/angular-electron/commit/06547e5c855bef81c1c9d1ded0b3e7cfc12fae8e)
|
||||
- Delete spec file of electron.service [`083498e`](https://github.com/maximegris/angular-electron/commit/083498eab8cb7c72e84125e8d6b7f54b2838951d)
|
||||
- Move Browser mode chapter [`8818750`](https://github.com/maximegris/angular-electron/commit/881875036a46f13ef6980e84a6064a665670f454)
|
||||
|
||||
#### [1.3.2](https://github.com/maximegris/angular-electron/compare/1.3.1...1.3.2)
|
||||
> 6 May 2017
|
||||
- Suround electron browser by try/catch [`88be472`](https://github.com/maximegris/angular-electron/commit/88be4723793cddb7b21bbdfffaa245849b45d8fa)
|
||||
- update version [`0849a0a`](https://github.com/maximegris/angular-electron/commit/0849a0a6c0e91b507b1f435401cee031f64bb37e)
|
||||
- Fix indentation [`6a9836a`](https://github.com/maximegris/angular-electron/commit/6a9836a1e48e34060e826e747464ab63e654ab16)
|
||||
- Conditional import of Electron/NodeJS libs - The app can be launch in browser mode [`c434f8a`](https://github.com/maximegris/angular-electron/commit/c434f8a8b0c0d1d8e5843af57465a24e900d967c)
|
||||
- Update readme with e2e info [`01bbf13`](https://github.com/maximegris/angular-electron/commit/01bbf1343707527b5c26c322abfa6199d2937aa6)
|
||||
- Set e2e tests [`d223974`](https://github.com/maximegris/angular-electron/commit/d2239745a2dc14ad6d6b07520f31ea1e51d03594)
|
||||
- Fix prepree2e script [`b2af4fd`](https://github.com/maximegris/angular-electron/commit/b2af4fd24a3722f1fa4cc0d345f505214002f4f0)
|
||||
- Add comments of how conditional import works [`e6c1b3b`](https://github.com/maximegris/angular-electron/commit/e6c1b3ba5d7633c9f47191113dab463163a7aa89)
|
||||
- Update @types/node [`9d43304`](https://github.com/maximegris/angular-electron/commit/9d43304b678d64fa30ca9ded72cfa8e2e8bee089)
|
||||
## 3.3.0 (2018-04-15)
|
||||
|
||||
#### [1.3.1](https://github.com/maximegris/angular-electron/compare/1.3.0...1.3.1)
|
||||
> 5 May 2017
|
||||
- Fixed hardcoded path in glob copy, blocking assets after eject [`#11`](https://github.com/maximegris/angular-electron/pull/11)
|
||||
- Add routing module [`7334ce8`](https://github.com/maximegris/angular-electron/commit/7334ce89b5daabba9fa5d1c0c940ebc38aecbc9a)
|
||||
- update comments in dev/prod env files [`7cf6a51`](https://github.com/maximegris/angular-electron/commit/7cf6a51532f589305fc488c769391c4d1a1d06b9)
|
||||
- Version 1.3.1 [`f18ac77`](https://github.com/maximegris/angular-electron/commit/f18ac77e074a253dc9ece45dd16d1a3c23c18470)
|
||||
* add Changelog file ([71083f1](https://github.com/maximegris/angular-electron/commit/71083f1))
|
||||
* fix/ typo README.md (production variables) ([a8c2b63](https://github.com/maximegris/angular-electron/commit/a8c2b63))
|
||||
* version 3.3.0 ([a88bda6](https://github.com/maximegris/angular-electron/commit/a88bda6))
|
||||
* version 3.3.0 changelog ([ddfbbf9](https://github.com/maximegris/angular-electron/commit/ddfbbf9))
|
||||
|
||||
#### [1.3.0](https://github.com/maximegris/angular-electron/compare/1.2.1...1.3.0)
|
||||
> 1 May 2017
|
||||
- Fix webpack prod/dev env [`8549da1`](https://github.com/maximegris/angular-electron/commit/8549da1a17d946b4cc272d8baf9d4ad64fe4e458)
|
||||
|
||||
#### [1.2.1](https://github.com/maximegris/angular-electron/compare/1.2.0...1.2.1)
|
||||
> 30 April 2017
|
||||
- html loader [`c55558a`](https://github.com/maximegris/angular-electron/commit/c55558a63291a7de55cbf4ae0d5f39dc8cd05b5d)
|
||||
- Fix electron build (extract-zip workaround) [`a7ee90e`](https://github.com/maximegris/angular-electron/commit/a7ee90eb504737465526d306e74c723b730fa8ad)
|
||||
- Fix webpack config url in css [`cea4be5`](https://github.com/maximegris/angular-electron/commit/cea4be57ba02d343f169eb024c8ac25074857062)
|
||||
- Example url background in scss [`3705a35`](https://github.com/maximegris/angular-electron/commit/3705a35c7369b57d2798655af865dbdee385edba)
|
||||
- update version 1.2.1 [`78e8da7`](https://github.com/maximegris/angular-electron/commit/78e8da71d2ace705fb8448284fc88d590a8eabb8)
|
||||
- allowJs [`4efd188`](https://github.com/maximegris/angular-electron/commit/4efd1880a2e10af7cf2d8a01ecc0577abbe13756)
|
||||
|
||||
#### [1.2.0](https://github.com/maximegris/angular-electron/compare/1.1.2...1.2.0)
|
||||
> 19 April 2017
|
||||
- Update npm dependencies [`0a93ebe`](https://github.com/maximegris/angular-electron/commit/0a93ebe96a7e60502fb99160ab0227ba1b879103)
|
||||
- Set one example of css class in app component [`a15775f`](https://github.com/maximegris/angular-electron/commit/a15775fb7a98399852bb12dd39bdc3d9393be48d)
|
||||
## 3.2.0 (2018-04-15)
|
||||
|
||||
#### [1.1.2](https://github.com/maximegris/angular-electron/compare/1.1.1...1.1.2)
|
||||
> 19 April 2017
|
||||
- update README [`23fc0a9`](https://github.com/maximegris/angular-electron/commit/23fc0a9b2117bd8056acbf4e69aeb4aeb0cf74dd)
|
||||
- update README [`a8dcf6a`](https://github.com/maximegris/angular-electron/commit/a8dcf6ac58e232cadbb1c73c1f65c97a8e85d09f)
|
||||
- update README [`97fa63d`](https://github.com/maximegris/angular-electron/commit/97fa63d7ee76fd269f65383441070d9d3565c824)
|
||||
- Fix typo & fix script electron:mac [`bd06859`](https://github.com/maximegris/angular-electron/commit/bd068590765f3bb497c1f3656bb11556abbd5f3f)
|
||||
- Set theme jekyll-theme-architect [`644d857`](https://github.com/maximegris/angular-electron/commit/644d8575e2d223c9490fbf03eda491d1daad8342)
|
||||
* fix e2e tests based on PR #161 and terminate the npm process after test execution ([fccf348](https://github.com/maximegris/angular-electron/commit/fccf348)), closes [#161](https://github.com/maximegris/angular-electron/issues/161)
|
||||
* fix/ app e2e spec ([8046b2a](https://github.com/maximegris/angular-electron/commit/8046b2a))
|
||||
* Including electron to eliminate Electron not found err sg ([d78203f](https://github.com/maximegris/angular-electron/commit/d78203f))
|
||||
* provide webFrame access ([6bd044e](https://github.com/maximegris/angular-electron/commit/6bd044e))
|
||||
* ref/ add node/electron module import as exemple : fs and remote ([e3ad12d](https://github.com/maximegris/angular-electron/commit/e3ad12d))
|
||||
* remove copyfiles ([9af5138](https://github.com/maximegris/angular-electron/commit/9af5138))
|
||||
* update dependencies ([89963ab](https://github.com/maximegris/angular-electron/commit/89963ab))
|
||||
* version 3.2.0 ([8dc69fa](https://github.com/maximegris/angular-electron/commit/8dc69fa))
|
||||
|
||||
#### [1.1.1](https://github.com/maximegris/angular-electron/compare/1.1.0...1.1.1)
|
||||
> 12 April 2017
|
||||
- Remove unused dependency (webpack-dev-server) [`e9150f4`](https://github.com/maximegris/angular-electron/commit/e9150f4a41e2a1b1a7af33e79e4af7ae1f96370a)
|
||||
- live reload on disk [`7bb2f8b`](https://github.com/maximegris/angular-electron/commit/7bb2f8b20a027cfc4aea0988fd98fe5c74e69f03)
|
||||
- Fix webpack.config file path (travisci) [`a172df9`](https://github.com/maximegris/angular-electron/commit/a172df94d918de4af0d0f223f9be4bcc471bd731)
|
||||
|
||||
#### [1.1.0](https://github.com/maximegris/angular-electron/compare/1.0.3...1.1.0)
|
||||
> 12 April 2017
|
||||
- Override webpack configuration [`60d6116`](https://github.com/maximegris/angular-electron/commit/60d6116b6df17e7451a487359471dbba7ba20882)
|
||||
- add depdencies CI & Licence [`6ceb0f2`](https://github.com/maximegris/angular-electron/commit/6ceb0f2a10a68276c30e86a681d24cdd46c23280)
|
||||
|
||||
#### [1.0.3](https://github.com/maximegris/angular-electron/compare/1.0.2...1.0.3)
|
||||
> 7 April 2017
|
||||
- Add TravisCI [`e5640fd`](https://github.com/maximegris/angular-electron/commit/e5640fd6052be0bd23a8052f2c717f0e5fc563dd)
|
||||
## 3.1.0 (2018-03-15)
|
||||
|
||||
* Added option -o to script npm run ng:serve so that it really open the browser ([72aff8d](https://github.com/maximegris/angular-electron/commit/72aff8d))
|
||||
* Fix to change environment ([448d68b](https://github.com/maximegris/angular-electron/commit/448d68b))
|
||||
* version 3.1.0 ([f7c71e7](https://github.com/maximegris/angular-electron/commit/f7c71e7))
|
||||
|
||||
|
||||
|
||||
## <small>3.0.1 (2018-03-07)</small>
|
||||
|
||||
* fix/ icon app ([22699ef](https://github.com/maximegris/angular-electron/commit/22699ef))
|
||||
* version 3.0.1 ([5258ff1](https://github.com/maximegris/angular-electron/commit/5258ff1))
|
||||
|
||||
|
||||
|
||||
## 3.0.0 (2018-02-25)
|
||||
|
||||
* fix/ TranslateModule test ([7863aa9](https://github.com/maximegris/angular-electron/commit/7863aa9))
|
||||
* Ng not ejected anymore ([67ab31c](https://github.com/maximegris/angular-electron/commit/67ab31c))
|
||||
* pin all dependency versions ([0558d6a](https://github.com/maximegris/angular-electron/commit/0558d6a))
|
||||
* update dependencies and fix unit tests ([4d3ca6e](https://github.com/maximegris/angular-electron/commit/4d3ca6e))
|
||||
|
||||
|
||||
|
||||
## <small>2.7.1 (2018-02-15)</small>
|
||||
|
||||
* ref/ dernière version cli ([3df8158](https://github.com/maximegris/angular-electron/commit/3df8158))
|
||||
* version 2.7.1 ([1ae6f7a](https://github.com/maximegris/angular-electron/commit/1ae6f7a))
|
||||
|
||||
|
||||
|
||||
## 2.7.0 (2018-02-15)
|
||||
|
||||
* Correction of a word. ([d6655c7](https://github.com/maximegris/angular-electron/commit/d6655c7))
|
||||
* feat/ add webview directive ([e1b5600](https://github.com/maximegris/angular-electron/commit/e1b5600))
|
||||
* migrate Angular to 5.2.0 ([b8cf343](https://github.com/maximegris/angular-electron/commit/b8cf343))
|
||||
* ref/ Remove sponsor ([2a28239](https://github.com/maximegris/angular-electron/commit/2a28239))
|
||||
* ref/ update angular & dep ([e3b1fab](https://github.com/maximegris/angular-electron/commit/e3b1fab))
|
||||
* ref/ upgrade electron (security issue) ([f6a0c4e](https://github.com/maximegris/angular-electron/commit/f6a0c4e))
|
||||
* version bump + logo resize ([3545d16](https://github.com/maximegris/angular-electron/commit/3545d16))
|
||||
* fix: fixes maximegris/angular-electron#118 ([6d21e69](https://github.com/maximegris/angular-electron/commit/6d21e69)), closes [maximegris/angular-electron#118](https://github.com/maximegris/angular-electron/issues/118)
|
||||
* fix: fixes maximegris/angular-electron#98 ([136344b](https://github.com/maximegris/angular-electron/commit/136344b)), closes [maximegris/angular-electron#98](https://github.com/maximegris/angular-electron/issues/98)
|
||||
|
||||
|
||||
|
||||
## <small>2.4.1 (2017-12-14)</small>
|
||||
|
||||
* fix/ Manage icons for linux binary generation ([ccd0601](https://github.com/maximegris/angular-electron/commit/ccd0601))
|
||||
* version 2.4.1 ([5fcfca0](https://github.com/maximegris/angular-electron/commit/5fcfca0))
|
||||
|
||||
|
||||
|
||||
## 2.4.0 (2017-12-08)
|
||||
|
||||
* version 2.4.0 ([0437b33](https://github.com/maximegris/angular-electron/commit/0437b33))
|
||||
|
||||
|
||||
|
||||
## 2.3.0 (2017-12-04)
|
||||
|
||||
* add ngx translate ([facda37](https://github.com/maximegris/angular-electron/commit/facda37))
|
||||
* Use HttpClientModule ([5704e2e](https://github.com/maximegris/angular-electron/commit/5704e2e))
|
||||
|
||||
|
||||
|
||||
## 2.2.0 (2017-11-28)
|
||||
|
||||
* Brought back scripts defined in webpack.config.js ([441da3d](https://github.com/maximegris/angular-electron/commit/441da3d))
|
||||
* migrate to Angular 5.0.3 ([f4bc5b2](https://github.com/maximegris/angular-electron/commit/f4bc5b2))
|
||||
* Update LICENSE badge ([fa783aa](https://github.com/maximegris/angular-electron/commit/fa783aa))
|
||||
* Update to electron-builder ([0e94b52](https://github.com/maximegris/angular-electron/commit/0e94b52))
|
||||
|
||||
|
||||
|
||||
## <small>2.1.1 (2017-11-19)</small>
|
||||
|
||||
* Move codesponsor ([064be4c](https://github.com/maximegris/angular-electron/commit/064be4c))
|
||||
|
||||
|
||||
|
||||
## 2.1.0 (2017-11-19)
|
||||
|
||||
* Add codesponsor ([87e695d](https://github.com/maximegris/angular-electron/commit/87e695d))
|
||||
* Add script for winportable ([2be2dae](https://github.com/maximegris/angular-electron/commit/2be2dae))
|
||||
* Add support for building a Windows self-contained executable ([7cfa790](https://github.com/maximegris/angular-electron/commit/7cfa790))
|
||||
* fix/ electron-packager need favicon >= 256x256 on Windows ([d2c253f](https://github.com/maximegris/angular-electron/commit/d2c253f))
|
||||
* fix/ refact webpack config (inspired by ng eject Angular 5) ([d1c30ac](https://github.com/maximegris/angular-electron/commit/d1c30ac))
|
||||
* fix/ replace aotPlugin in no prod mode ([a0caf1e](https://github.com/maximegris/angular-electron/commit/a0caf1e))
|
||||
* fix/ Replace AotPlugin to AngularCompilerPlugin ([bef106e](https://github.com/maximegris/angular-electron/commit/bef106e))
|
||||
* fix/ Update README Angular 5 ([93c6949](https://github.com/maximegris/angular-electron/commit/93c6949))
|
||||
* fix/ webpack template path ([518b66b](https://github.com/maximegris/angular-electron/commit/518b66b))
|
||||
* Mgrate to Angular 5.0.2 ([bd7bed6](https://github.com/maximegris/angular-electron/commit/bd7bed6))
|
||||
* Update package.json ([b16cf73](https://github.com/maximegris/angular-electron/commit/b16cf73))
|
||||
* Version 2.1.0 ([fccef2f](https://github.com/maximegris/angular-electron/commit/fccef2f))
|
||||
|
||||
|
||||
|
||||
## 2.0.0 (2017-11-13)
|
||||
|
||||
* Add buffer to externals ([7e797f0](https://github.com/maximegris/angular-electron/commit/7e797f0))
|
||||
* Edit a typo on README ([956a2bc](https://github.com/maximegris/angular-electron/commit/956a2bc))
|
||||
* Fix #55 removed bootstraps.css which for example purpose before. ([41445eb](https://github.com/maximegris/angular-electron/commit/41445eb)), closes [#55](https://github.com/maximegris/angular-electron/issues/55)
|
||||
* License MIT ([73494b7](https://github.com/maximegris/angular-electron/commit/73494b7))
|
||||
* Migrate to Angular 5 ([3a3ffe1](https://github.com/maximegris/angular-electron/commit/3a3ffe1))
|
||||
|
||||
|
||||
|
||||
## 1.9.0 (2017-09-22)
|
||||
|
||||
* feat/ launch electron & webpack in // (npm run start) ([8c37cc4](https://github.com/maximegris/angular-electron/commit/8c37cc4))
|
||||
* ref/ Exclude node_modules (tslint) ([412a0a5](https://github.com/maximegris/angular-electron/commit/412a0a5))
|
||||
|
||||
|
||||
|
||||
## <small>1.8.1 (2017-09-22)</small>
|
||||
|
||||
* Fix #55 , and also added functionality for scripts global building ([012a894](https://github.com/maximegris/angular-electron/commit/012a894)), closes [#55](https://github.com/maximegris/angular-electron/issues/55)
|
||||
* ref/ add package-lock in gitignore ([4edd98d](https://github.com/maximegris/angular-electron/commit/4edd98d))
|
||||
* remove package-lock ([8e98627](https://github.com/maximegris/angular-electron/commit/8e98627))
|
||||
* upgrade angular version 4.4.3 ([10d0f87](https://github.com/maximegris/angular-electron/commit/10d0f87))
|
||||
* version 1.8.1 ([70879d1](https://github.com/maximegris/angular-electron/commit/70879d1))
|
||||
|
||||
|
||||
|
||||
## 1.8.0 (2017-09-09)
|
||||
|
||||
* upgrade lib version ([2ac2aa0](https://github.com/maximegris/angular-electron/commit/2ac2aa0))
|
||||
|
||||
|
||||
|
||||
## 1.7.0 (2017-08-18)
|
||||
|
||||
* ref/ Update Angular (4.3.5) / Electron (1.7.2) / Electron Packager (8.7.2) / Typescript (2.5.0) ([f97cd81](https://github.com/maximegris/angular-electron/commit/f97cd81))
|
||||
|
||||
|
||||
|
||||
## <small>1.6.1 (2017-07-27)</small>
|
||||
|
||||
* fix/ angular-cli error in prod compilation with aot ([c26a5ae](https://github.com/maximegris/angular-electron/commit/c26a5ae))
|
||||
* version 1.6.1 ([899babd](https://github.com/maximegris/angular-electron/commit/899babd))
|
||||
|
||||
|
||||
|
||||
## 1.6.0 (2017-07-16)
|
||||
|
||||
* ajout package-lock npm v5 ([09c0840](https://github.com/maximegris/angular-electron/commit/09c0840))
|
||||
* Change background img ([7e58717](https://github.com/maximegris/angular-electron/commit/7e58717))
|
||||
* Fix npm run build:prod ([c23bade](https://github.com/maximegris/angular-electron/commit/c23bade))
|
||||
* fix/ Bindings not updating automatically #44 ([2a90191](https://github.com/maximegris/angular-electron/commit/2a90191)), closes [#44](https://github.com/maximegris/angular-electron/issues/44)
|
||||
* fix/ e2e test with jasmine2 ([9c51f32](https://github.com/maximegris/angular-electron/commit/9c51f32))
|
||||
* fix/ typescript issues ([bb0a6ab](https://github.com/maximegris/angular-electron/commit/bb0a6ab))
|
||||
* increment version deps ([bde452c](https://github.com/maximegris/angular-electron/commit/bde452c))
|
||||
* Revert last pull request - break production compilation ([ccc9064](https://github.com/maximegris/angular-electron/commit/ccc9064))
|
||||
* upgrade angular version to 4.3.0 ([ab16959](https://github.com/maximegris/angular-electron/commit/ab16959))
|
||||
|
||||
|
||||
|
||||
## 1.5.0 (2017-06-10)
|
||||
|
||||
* fix/ karma Unit test ([ea13d6d](https://github.com/maximegris/angular-electron/commit/ea13d6d))
|
||||
* fix/ remove yarn because of error with module dep in prod builds ([8a49a45](https://github.com/maximegris/angular-electron/commit/8a49a45))
|
||||
* update yarn lock ([18c0e62](https://github.com/maximegris/angular-electron/commit/18c0e62))
|
||||
|
||||
|
||||
|
||||
## <small>1.4.4 (2017-06-08)</small>
|
||||
|
||||
* fix/ Fix npm run lint ([db7972a](https://github.com/maximegris/angular-electron/commit/db7972a))
|
||||
* ref/ electron ./dist more generic ([7e71add](https://github.com/maximegris/angular-electron/commit/7e71add))
|
||||
* Replace const icon to let icon ([dadf65f](https://github.com/maximegris/angular-electron/commit/dadf65f))
|
||||
|
||||
|
||||
|
||||
## <small>1.4.3 (2017-06-06)</small>
|
||||
|
||||
* fix/ favicon path during packaging ([aa2b012](https://github.com/maximegris/angular-electron/commit/aa2b012))
|
||||
* remove build node 8 till node-sass failed ([34f201d](https://github.com/maximegris/angular-electron/commit/34f201d))
|
||||
* v1.4.3 ([4961fb0](https://github.com/maximegris/angular-electron/commit/4961fb0))
|
||||
|
||||
|
||||
|
||||
## <small>1.4.2 (2017-05-31)</small>
|
||||
|
||||
* Change dep versions ([62d08d3](https://github.com/maximegris/angular-electron/commit/62d08d3))
|
||||
* install npm dep when building ([56948d0](https://github.com/maximegris/angular-electron/commit/56948d0))
|
||||
* Minor update ([5f282b7](https://github.com/maximegris/angular-electron/commit/5f282b7))
|
||||
* No hot reload in browser ([7892f0d](https://github.com/maximegris/angular-electron/commit/7892f0d))
|
||||
* update Electron v1.6.10 ([f2f2080](https://github.com/maximegris/angular-electron/commit/f2f2080))
|
||||
* upgrade ng/electron dependencies ([78b0f27](https://github.com/maximegris/angular-electron/commit/78b0f27))
|
||||
* chore(package): bump dependencies ([b62c7b6](https://github.com/maximegris/angular-electron/commit/b62c7b6))
|
||||
|
||||
|
||||
|
||||
## 1.4.0 (2017-05-23)
|
||||
|
||||
* 1.4.0 ([23213c4](https://github.com/maximegris/angular-electron/commit/23213c4))
|
||||
* Change style home page ([93dcc52](https://github.com/maximegris/angular-electron/commit/93dcc52))
|
||||
* Fixed compiler warnings ([fca6b15](https://github.com/maximegris/angular-electron/commit/fca6b15))
|
||||
* ref/ electron main from js to ts ([835d32b](https://github.com/maximegris/angular-electron/commit/835d32b))
|
||||
* Remove caret & tilde ([dd98155](https://github.com/maximegris/angular-electron/commit/dd98155))
|
||||
|
||||
|
||||
|
||||
## <small>1.3.5 (2017-05-18)</small>
|
||||
|
||||
* Add new tags ([cd07a86](https://github.com/maximegris/angular-electron/commit/cd07a86))
|
||||
* v 1.3.5 ([d528a71](https://github.com/maximegris/angular-electron/commit/d528a71))
|
||||
|
||||
|
||||
|
||||
## <small>1.3.4 (2017-05-12)</small>
|
||||
|
||||
* feat/ add nodejs native lib in webpack config ([27d9bc6](https://github.com/maximegris/angular-electron/commit/27d9bc6))
|
||||
* Fix issue #15 ([d77cbf1](https://github.com/maximegris/angular-electron/commit/d77cbf1)), closes [#15](https://github.com/maximegris/angular-electron/issues/15)
|
||||
* Ref/ Electron packager in external file ([17b04e8](https://github.com/maximegris/angular-electron/commit/17b04e8))
|
||||
* version 1.3.4 ([374af16](https://github.com/maximegris/angular-electron/commit/374af16))
|
||||
|
||||
|
||||
|
||||
## <small>1.3.3 (2017-05-10)</small>
|
||||
|
||||
* Chapters order ([a772b9c](https://github.com/maximegris/angular-electron/commit/a772b9c))
|
||||
* Chapters order ([06547e5](https://github.com/maximegris/angular-electron/commit/06547e5))
|
||||
* Delete spec file of electron.service ([083498e](https://github.com/maximegris/angular-electron/commit/083498e))
|
||||
* Fix issue #15 ([e7cd6e6](https://github.com/maximegris/angular-electron/commit/e7cd6e6)), closes [#15](https://github.com/maximegris/angular-electron/issues/15)
|
||||
* Move Browser mode chapter ([8818750](https://github.com/maximegris/angular-electron/commit/8818750))
|
||||
* Version 1.3.3 ([f4db75b](https://github.com/maximegris/angular-electron/commit/f4db75b))
|
||||
|
||||
|
||||
|
||||
## <small>1.3.2 (2017-05-05)</small>
|
||||
|
||||
* Add comments of how conditional import works ([e6c1b3b](https://github.com/maximegris/angular-electron/commit/e6c1b3b))
|
||||
* Conditional import of Electron/NodeJS libs - The app can be launch in browser mode ([c434f8a](https://github.com/maximegris/angular-electron/commit/c434f8a))
|
||||
* Fix indentation ([6a9836a](https://github.com/maximegris/angular-electron/commit/6a9836a))
|
||||
* Fix prepree2e script ([b2af4fd](https://github.com/maximegris/angular-electron/commit/b2af4fd))
|
||||
* Set e2e tests ([d223974](https://github.com/maximegris/angular-electron/commit/d223974))
|
||||
* Suround electron browser by try/catch ([88be472](https://github.com/maximegris/angular-electron/commit/88be472))
|
||||
* Update @types/node ([9d43304](https://github.com/maximegris/angular-electron/commit/9d43304))
|
||||
* Update readme with e2e info ([01bbf13](https://github.com/maximegris/angular-electron/commit/01bbf13))
|
||||
* update version ([0849a0a](https://github.com/maximegris/angular-electron/commit/0849a0a))
|
||||
|
||||
|
||||
|
||||
## <small>1.3.1 (2017-05-05)</small>
|
||||
|
||||
* Add routing module ([7334ce8](https://github.com/maximegris/angular-electron/commit/7334ce8))
|
||||
* Fixed hardcoded path in glob copy, blocking assets after eject ([815d519](https://github.com/maximegris/angular-electron/commit/815d519))
|
||||
* update comments in dev/prod env files ([7cf6a51](https://github.com/maximegris/angular-electron/commit/7cf6a51))
|
||||
* Version 1.3.1 ([f18ac77](https://github.com/maximegris/angular-electron/commit/f18ac77))
|
||||
|
||||
|
||||
|
||||
## 1.3.0 (2017-05-01)
|
||||
|
||||
* Fix webpack prod/dev env ([8549da1](https://github.com/maximegris/angular-electron/commit/8549da1))
|
||||
|
||||
|
||||
|
||||
## <small>1.2.1 (2017-04-30)</small>
|
||||
|
||||
* allowJs ([4efd188](https://github.com/maximegris/angular-electron/commit/4efd188))
|
||||
* Example url background in scss ([3705a35](https://github.com/maximegris/angular-electron/commit/3705a35))
|
||||
* Fix electron build (extract-zip workaround) ([a7ee90e](https://github.com/maximegris/angular-electron/commit/a7ee90e))
|
||||
* Fix webpack config url in css ([cea4be5](https://github.com/maximegris/angular-electron/commit/cea4be5))
|
||||
* html loader ([c55558a](https://github.com/maximegris/angular-electron/commit/c55558a))
|
||||
* update version 1.2.1 ([78e8da7](https://github.com/maximegris/angular-electron/commit/78e8da7))
|
||||
|
||||
|
||||
|
||||
## 1.2.0 (2017-04-19)
|
||||
|
||||
* Set one example of css class in app component ([a15775f](https://github.com/maximegris/angular-electron/commit/a15775f))
|
||||
* Update npm dependencies ([0a93ebe](https://github.com/maximegris/angular-electron/commit/0a93ebe))
|
||||
|
||||
|
||||
|
||||
## <small>1.1.2 (2017-04-18)</small>
|
||||
|
||||
* Fix typo & fix script electron:mac ([bd06859](https://github.com/maximegris/angular-electron/commit/bd06859))
|
||||
* Set theme jekyll-theme-architect ([644d857](https://github.com/maximegris/angular-electron/commit/644d857))
|
||||
* update README ([97fa63d](https://github.com/maximegris/angular-electron/commit/97fa63d))
|
||||
* update README ([23fc0a9](https://github.com/maximegris/angular-electron/commit/23fc0a9))
|
||||
* update README ([a8dcf6a](https://github.com/maximegris/angular-electron/commit/a8dcf6a))
|
||||
* v1.1.2 ([e29e467](https://github.com/maximegris/angular-electron/commit/e29e467))
|
||||
|
||||
|
||||
|
||||
## <small>1.1.1 (2017-04-12)</small>
|
||||
|
||||
* Fix webpack.config file path (travisci) ([a172df9](https://github.com/maximegris/angular-electron/commit/a172df9))
|
||||
* live reload on disk ([7bb2f8b](https://github.com/maximegris/angular-electron/commit/7bb2f8b))
|
||||
* Remove unused dependency (webpack-dev-server) ([e9150f4](https://github.com/maximegris/angular-electron/commit/e9150f4))
|
||||
|
||||
|
||||
|
||||
## 1.1.0 (2017-04-12)
|
||||
|
||||
* add depdencies CI & Licence ([6ceb0f2](https://github.com/maximegris/angular-electron/commit/6ceb0f2))
|
||||
* Override webpack configuration ([60d6116](https://github.com/maximegris/angular-electron/commit/60d6116))
|
||||
|
||||
|
||||
|
||||
## <small>1.0.3 (2017-04-07)</small>
|
||||
|
||||
* Add TravisCI ([e5640fd](https://github.com/maximegris/angular-electron/commit/e5640fd))
|
||||
* v1.0.3 ([9866d53](https://github.com/maximegris/angular-electron/commit/9866d53))
|
||||
|
||||
|
||||
|
||||
## <small>1.0.2 (2017-04-07)</small>
|
||||
|
||||
* Add TravisCI ([ef4b80e](https://github.com/maximegris/angular-electron/commit/ef4b80e))
|
||||
* Fix typo ([f964c3f](https://github.com/maximegris/angular-electron/commit/f964c3f))
|
||||
* Fix typo ([e42bb5e](https://github.com/maximegris/angular-electron/commit/e42bb5e))
|
||||
* Update README ([3bb45b3](https://github.com/maximegris/angular-electron/commit/3bb45b3))
|
||||
* Update README with angular-cli doc ([5a57578](https://github.com/maximegris/angular-electron/commit/5a57578))
|
||||
* v1.0.2 ([1bd8e0e](https://github.com/maximegris/angular-electron/commit/1bd8e0e))
|
||||
|
||||
|
||||
|
||||
## <small>1.0.1 (2017-04-03)</small>
|
||||
|
||||
* feat/ Add electron-packager scripts ([57891dc](https://github.com/maximegris/angular-electron/commit/57891dc))
|
||||
* ref/ update README ([7fddc20](https://github.com/maximegris/angular-electron/commit/7fddc20))
|
||||
* update README ([9a983c1](https://github.com/maximegris/angular-electron/commit/9a983c1))
|
||||
* v1.0.0 ([7a21eb9](https://github.com/maximegris/angular-electron/commit/7a21eb9))
|
||||
* v1.0.1 ([68275a3](https://github.com/maximegris/angular-electron/commit/68275a3))
|
||||
* chore: initial commit from @angular/cli ([616a69e](https://github.com/maximegris/angular-electron/commit/616a69e))
|
||||
|
||||
|
||||
#### [1.0.2](https://github.com/maximegris/angular-electron/compare/1.0.1...1.0.2)
|
||||
> 7 April 2017
|
||||
- Update README [`3bb45b3`](https://github.com/maximegris/angular-electron/commit/3bb45b39b4a550caaf223a786b25f12ec37174c4)
|
||||
- Add TravisCI [`ef4b80e`](https://github.com/maximegris/angular-electron/commit/ef4b80ed706a3a7e7918b291d9cc4a5f17cd9791)
|
||||
- Update README with angular-cli doc [`5a57578`](https://github.com/maximegris/angular-electron/commit/5a57578b47c74f68277b78adb1dd53c9b1ba4f0f)
|
||||
- Fix typo [`e42bb5e`](https://github.com/maximegris/angular-electron/commit/e42bb5ed01a8fe6acbe969e60f08647d5b4100e5)
|
||||
- Fix typo [`f964c3f`](https://github.com/maximegris/angular-electron/commit/f964c3ffd9397977347a17740ff30b350eaa9006)
|
||||
|
||||
#### 1.0.1
|
||||
> 3 April 2017
|
||||
- ref/ update README [`7fddc20`](https://github.com/maximegris/angular-electron/commit/7fddc20484cbb23ff2128c209a7548408c311111)
|
||||
- feat/ Add electron-packager scripts [`57891dc`](https://github.com/maximegris/angular-electron/commit/57891dc9f409f95d2a7f2ae88ebe7a0a40f06218)
|
||||
- update README [`9a983c1`](https://github.com/maximegris/angular-electron/commit/9a983c1a1a1e23638d1660f513070aab35a90e10)
|
||||
- chore: initial commit from @angular/cli [`616a69e`](https://github.com/maximegris/angular-electron/commit/616a69ea0b4d3601bfcda207aca238660458ac55)
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
Copyright 2017 - Maxime GRIS
|
||||
Copyright 2018 - Maxime GRIS
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
||||
|
||||
|
||||
34
README.md
34
README.md
@@ -11,14 +11,13 @@
|
||||
|
||||
# Introduction
|
||||
|
||||
Bootstrap and package your project with Angular 5(+) and Electron (Typescript + SASS + Hot Reload) for creating Desktop applications.
|
||||
Bootstrap and package your project with Angular 7 and Electron (Typescript + SASS + Hot Reload) for creating Desktop applications.
|
||||
|
||||
Currently runs with:
|
||||
|
||||
- Angular v5.2.5
|
||||
- Angular-CLI v1.6.4
|
||||
- Electron v1.8.2
|
||||
- Electron Builder v20.0.4
|
||||
- Angular v7.0.3
|
||||
- Electron v3.0.2
|
||||
- Electron Builder v20.28.1
|
||||
|
||||
With this sample, you can :
|
||||
|
||||
@@ -58,19 +57,13 @@ Voila! You can use your Angular + Electron app in a local development environmen
|
||||
|
||||
The application code is managed by `main.ts`. In this sample, the app runs with a simple Angular App (http://localhost:4200) and an Electron window.
|
||||
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`
|
||||
You can disable "Developer Tools" by commenting `win.webContents.openDevTools();` in `main.ts`.
|
||||
|
||||
## Included Commands
|
||||
|
||||
|Command|Description|
|
||||
|--|--|
|
||||
|`npm run ng:serve`| Execute the app in the browser |
|
||||
|`npm run ng:serve:web`| Execute the app in the browser |
|
||||
|`npm run build`| Build the app. Your built files are in the /dist folder. |
|
||||
|`npm run build:prod`| Build the app with Angular aot. Your built files are in the /dist folder. |
|
||||
|`npm run electron:local`| Builds your application and start electron
|
||||
@@ -80,16 +73,21 @@ You can desactivate "Developer Tools" by commenting `win.webContents.openDevTool
|
||||
|
||||
**Your application is optimised. Only /dist folder and node dependencies are included in the executable.**
|
||||
|
||||
## You want to use a specific lib (like rxjs) in electron main thread ?
|
||||
|
||||
You can do this! Just by importing your library in npm dependencies (not devDependencies) with `npm install --save`. It will be loaded by electron during build phase and added to the final package. Then use your library by importing it in `main.ts` file. Easy no ?
|
||||
|
||||
## Browser mode
|
||||
|
||||
Maybe you want to execute the application in the browser (WITHOUT HOT RELOAD ACTUALLY...) ? You can do it with `npm run ng:serve`.
|
||||
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.
|
||||
|
||||
## Contributors
|
||||
## Branch & Packages version
|
||||
|
||||
[<img alt="Maxime GRIS" src="https://avatars2.githubusercontent.com/u/10827551?v=3&s=117" width="117">](https://github.com/maximegris) |
|
||||
:---:
|
||||
|[Maxime GRIS](https://github.com/maximegris)|
|
||||
- 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)
|
||||
|
||||
[build-badge]: https://travis-ci.org/maximegris/angular-electron.svg?branch=master
|
||||
[build]: https://travis-ci.org/maximegris/angular-electron.svg?branch=master
|
||||
|
||||
159
angular.json
Normal file
159
angular.json
Normal file
@@ -0,0 +1,159 @@
|
||||
{
|
||||
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
|
||||
"version": 1,
|
||||
"newProjectRoot": "projects",
|
||||
"projects": {
|
||||
"angular-electron": {
|
||||
"root": "",
|
||||
"sourceRoot": "src",
|
||||
"projectType": "application",
|
||||
"architect": {
|
||||
"build": {
|
||||
"builder": "@angular-devkit/build-angular:browser",
|
||||
"options": {
|
||||
"outputPath": "dist",
|
||||
"index": "src/index.html",
|
||||
"main": "src/main.ts",
|
||||
"tsConfig": "src/tsconfig.app.json",
|
||||
"polyfills": "src/polyfills.ts",
|
||||
"assets": [
|
||||
"src/assets",
|
||||
"src/favicon.ico",
|
||||
"src/favicon.png",
|
||||
"src/favicon.icns",
|
||||
"src/favicon.256x256.png",
|
||||
"src/favicon.512x512.png"
|
||||
],
|
||||
"styles": [
|
||||
"src/styles.scss"
|
||||
],
|
||||
"scripts": []
|
||||
},
|
||||
"configurations": {
|
||||
"dev": {
|
||||
"optimization": false,
|
||||
"outputHashing": "all",
|
||||
"sourceMap": true,
|
||||
"extractCss": true,
|
||||
"namedChunks": false,
|
||||
"aot": false,
|
||||
"extractLicenses": true,
|
||||
"vendorChunk": false,
|
||||
"buildOptimizer": false,
|
||||
"fileReplacements": [
|
||||
{
|
||||
"replace": "src/environments/environment.ts",
|
||||
"with": "src/environments/environment.dev.ts"
|
||||
}
|
||||
]
|
||||
},
|
||||
"production": {
|
||||
"optimization": true,
|
||||
"outputHashing": "all",
|
||||
"sourceMap": false,
|
||||
"extractCss": true,
|
||||
"namedChunks": false,
|
||||
"aot": true,
|
||||
"extractLicenses": true,
|
||||
"vendorChunk": false,
|
||||
"buildOptimizer": true,
|
||||
"fileReplacements": [
|
||||
{
|
||||
"replace": "src/environments/environment.ts",
|
||||
"with": "src/environments/environment.prod.ts"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"serve": {
|
||||
"builder": "@angular-devkit/build-angular:dev-server",
|
||||
"options": {
|
||||
"browserTarget": "angular-electron:build"
|
||||
},
|
||||
"configurations": {
|
||||
"dev": {
|
||||
"browserTarget": "angular-electron:build:dev"
|
||||
},
|
||||
"production": {
|
||||
"browserTarget": "angular-electron:build:production"
|
||||
}
|
||||
}
|
||||
},
|
||||
"extract-i18n": {
|
||||
"builder": "@angular-devkit/build-angular:extract-i18n",
|
||||
"options": {
|
||||
"browserTarget": "angular-electron:build"
|
||||
}
|
||||
},
|
||||
"test": {
|
||||
"builder": "@angular-devkit/build-angular:karma",
|
||||
"options": {
|
||||
"main": "src/test.ts",
|
||||
"polyfills": "src/polyfills-test.ts",
|
||||
"tsConfig": "src/tsconfig.spec.json",
|
||||
"karmaConfig": "src/karma.conf.js",
|
||||
"scripts": [],
|
||||
"styles": [
|
||||
"src/styles.scss"
|
||||
],
|
||||
"assets": [
|
||||
"src/assets",
|
||||
"src/favicon.ico",
|
||||
"src/favicon.png",
|
||||
"src/favicon.icns",
|
||||
"src/favicon.256x256.png",
|
||||
"src/favicon.512x512.png"
|
||||
]
|
||||
}
|
||||
},
|
||||
"lint": {
|
||||
"builder": "@angular-devkit/build-angular:tslint",
|
||||
"options": {
|
||||
"tsConfig": [
|
||||
"src/tsconfig.app.json",
|
||||
"src/tsconfig.spec.json"
|
||||
],
|
||||
"exclude": [
|
||||
"**/node_modules/**"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"angular-electron-e2e": {
|
||||
"root": "e2e",
|
||||
"projectType": "application",
|
||||
"architect": {
|
||||
"e2e": {
|
||||
"builder": "@angular-devkit/build-angular:protractor",
|
||||
"options": {
|
||||
"protractorConfig": "e2e/protractor.conf.js",
|
||||
"devServerTarget": "angular-electron:serve"
|
||||
}
|
||||
},
|
||||
"lint": {
|
||||
"builder": "@angular-devkit/build-angular:tslint",
|
||||
"options": {
|
||||
"tsConfig": [
|
||||
"e2e/tsconfig.e2e.json"
|
||||
],
|
||||
"exclude": [
|
||||
"**/node_modules/**"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"defaultProject": "angular-electron",
|
||||
"schematics": {
|
||||
"@schematics/angular:component": {
|
||||
"prefix": "app",
|
||||
"styleext": "scss"
|
||||
},
|
||||
"@schematics/angular:directive": {
|
||||
"prefix": "app"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -7,7 +7,7 @@ exports.config = {
|
||||
allScriptsTimeout: 25000,
|
||||
delayBrowserTimeInSeconds: 0,
|
||||
specs: [
|
||||
'./e2e/**/*.e2e-spec.ts'
|
||||
'./**/*.e2e-spec.ts'
|
||||
],
|
||||
capabilities: {
|
||||
'browserName': 'chrome',
|
||||
@@ -1,8 +1,24 @@
|
||||
{
|
||||
"productName": "angular-electron",
|
||||
"directories": {
|
||||
"output": "app-builds"
|
||||
"output": "release/"
|
||||
},
|
||||
"files": [
|
||||
"**/*",
|
||||
"!**/*.ts",
|
||||
"!*.code-workspace",
|
||||
"!LICENSE.md",
|
||||
"!package.json",
|
||||
"!package-lock.json",
|
||||
"!src/",
|
||||
"!e2e/",
|
||||
"!hooks/",
|
||||
"!angular.json",
|
||||
"!_config.yml",
|
||||
"!karma.conf.js",
|
||||
"!tsconfig.json",
|
||||
"!tslint.json"
|
||||
],
|
||||
"win": {
|
||||
"icon": "dist",
|
||||
"target": [
|
||||
|
||||
@@ -1,196 +0,0 @@
|
||||
<!--
|
||||
#
|
||||
# Licensed to the Apache Software Foundation (ASF) under one
|
||||
# or more contributor license agreements. See the NOTICE file
|
||||
# distributed with this work for additional information
|
||||
# regarding copyright ownership. The ASF licenses this file
|
||||
# to you under the Apache License, Version 2.0 (the
|
||||
# "License"); you may not use this file except in compliance
|
||||
# with the License. You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing,
|
||||
# software distributed under the License is distributed on an
|
||||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
# KIND, either express or implied. See the License for the
|
||||
# specific language governing permissions and limitations
|
||||
# under the License.
|
||||
#
|
||||
-->
|
||||
# Cordova Hooks
|
||||
|
||||
Cordova Hooks represent special scripts which could be added by application and plugin developers or even by your own build system to customize cordova commands. Hook scripts could be defined by adding them to the special predefined folder (`/hooks`) or via configuration files (`config.xml` and `plugin.xml`) and run serially in the following order:
|
||||
* Application hooks from `/hooks`;
|
||||
* Application hooks from `config.xml`;
|
||||
* Plugin hooks from `plugins/.../plugin.xml`.
|
||||
|
||||
__Remember__: Make your scripts executable.
|
||||
|
||||
__Note__: `.cordova/hooks` directory is also supported for backward compatibility, but we don't recommend using it as it is deprecated.
|
||||
|
||||
## Supported hook types
|
||||
The following hook types are supported:
|
||||
|
||||
after_build/
|
||||
after_compile/
|
||||
after_docs/
|
||||
after_emulate/
|
||||
after_platform_add/
|
||||
after_platform_rm/
|
||||
after_platform_ls/
|
||||
after_plugin_add/
|
||||
after_plugin_ls/
|
||||
after_plugin_rm/
|
||||
after_plugin_search/
|
||||
after_plugin_install/ <-- Plugin hooks defined in plugin.xml are executed exclusively for a plugin being installed
|
||||
after_prepare/
|
||||
after_run/
|
||||
after_serve/
|
||||
before_build/
|
||||
before_compile/
|
||||
before_docs/
|
||||
before_emulate/
|
||||
before_platform_add/
|
||||
before_platform_rm/
|
||||
before_platform_ls/
|
||||
before_plugin_add/
|
||||
before_plugin_ls/
|
||||
before_plugin_rm/
|
||||
before_plugin_search/
|
||||
before_plugin_install/ <-- Plugin hooks defined in plugin.xml are executed exclusively for a plugin being installed
|
||||
before_plugin_uninstall/ <-- Plugin hooks defined in plugin.xml are executed exclusively for a plugin being uninstalled
|
||||
before_prepare/
|
||||
before_run/
|
||||
before_serve/
|
||||
pre_package/ <-- Windows 8 and Windows Phone only.
|
||||
|
||||
## Ways to define hooks
|
||||
### Via '/hooks' directory
|
||||
To execute custom action when corresponding hook type is fired, use hook type as a name for a subfolder inside 'hooks' directory and place you script file here, for example:
|
||||
|
||||
# script file will be automatically executed after each build
|
||||
hooks/after_build/after_build_custom_action.js
|
||||
|
||||
|
||||
### Config.xml
|
||||
|
||||
Hooks can be defined in project's `config.xml` using `<hook>` elements, for example:
|
||||
|
||||
<hook type="before_build" src="scripts/appBeforeBuild.bat" />
|
||||
<hook type="before_build" src="scripts/appBeforeBuild.js" />
|
||||
<hook type="before_plugin_install" src="scripts/appBeforePluginInstall.js" />
|
||||
|
||||
<platform name="wp8">
|
||||
<hook type="before_build" src="scripts/wp8/appWP8BeforeBuild.bat" />
|
||||
<hook type="before_build" src="scripts/wp8/appWP8BeforeBuild.js" />
|
||||
<hook type="before_plugin_install" src="scripts/wp8/appWP8BeforePluginInstall.js" />
|
||||
...
|
||||
</platform>
|
||||
|
||||
<platform name="windows8">
|
||||
<hook type="before_build" src="scripts/windows8/appWin8BeforeBuild.bat" />
|
||||
<hook type="before_build" src="scripts/windows8/appWin8BeforeBuild.js" />
|
||||
<hook type="before_plugin_install" src="scripts/windows8/appWin8BeforePluginInstall.js" />
|
||||
...
|
||||
</platform>
|
||||
|
||||
### Plugin hooks (plugin.xml)
|
||||
|
||||
As a plugin developer you can define hook scripts using `<hook>` elements in a `plugin.xml` like that:
|
||||
|
||||
<hook type="before_plugin_install" src="scripts/beforeInstall.js" />
|
||||
<hook type="after_build" src="scripts/afterBuild.js" />
|
||||
|
||||
<platform name="wp8">
|
||||
<hook type="before_plugin_install" src="scripts/wp8BeforeInstall.js" />
|
||||
<hook type="before_build" src="scripts/wp8BeforeBuild.js" />
|
||||
...
|
||||
</platform>
|
||||
|
||||
`before_plugin_install`, `after_plugin_install`, `before_plugin_uninstall` plugin hooks will be fired exclusively for the plugin being installed/uninstalled.
|
||||
|
||||
## Script Interface
|
||||
|
||||
### Javascript
|
||||
|
||||
If you are writing hooks in Javascript you should use the following module definition:
|
||||
```javascript
|
||||
module.exports = function(context) {
|
||||
...
|
||||
}
|
||||
```
|
||||
|
||||
You can make your scipts async using Q:
|
||||
```javascript
|
||||
module.exports = function(context) {
|
||||
var Q = context.requireCordovaModule('q');
|
||||
var deferral = new Q.defer();
|
||||
|
||||
setTimeout(function(){
|
||||
console.log('hook.js>> end');
|
||||
deferral.resolve();
|
||||
}, 1000);
|
||||
|
||||
return deferral.promise;
|
||||
}
|
||||
```
|
||||
|
||||
`context` object contains hook type, executed script full path, hook options, command-line arguments passed to Cordova and top-level "cordova" object:
|
||||
```json
|
||||
{
|
||||
"hook": "before_plugin_install",
|
||||
"scriptLocation": "c:\\script\\full\\path\\appBeforePluginInstall.js",
|
||||
"cmdLine": "The\\exact\\command\\cordova\\run\\with arguments",
|
||||
"opts": {
|
||||
"projectRoot":"C:\\path\\to\\the\\project",
|
||||
"cordova": {
|
||||
"platforms": ["wp8"],
|
||||
"plugins": ["com.plugin.withhooks"],
|
||||
"version": "0.21.7-dev"
|
||||
},
|
||||
"plugin": {
|
||||
"id": "com.plugin.withhooks",
|
||||
"pluginInfo": {
|
||||
...
|
||||
},
|
||||
"platform": "wp8",
|
||||
"dir": "C:\\path\\to\\the\\project\\plugins\\com.plugin.withhooks"
|
||||
}
|
||||
},
|
||||
"cordova": {...}
|
||||
}
|
||||
|
||||
```
|
||||
`context.opts.plugin` object will only be passed to plugin hooks scripts.
|
||||
|
||||
You can also require additional Cordova modules in your script using `context.requireCordovaModule` in the following way:
|
||||
```javascript
|
||||
var Q = context.requireCordovaModule('q');
|
||||
```
|
||||
|
||||
__Note__: new module loader script interface is used for the `.js` files defined via `config.xml` or `plugin.xml` only.
|
||||
For compatibility reasons hook files specified via `/hooks` folders are run via Node child_process spawn, see 'Non-javascript' section below.
|
||||
|
||||
### Non-javascript
|
||||
|
||||
Non-javascript scripts are run via Node child_process spawn from the project's root directory and have the root directory passes as the first argument. All other options are passed to the script using environment variables:
|
||||
|
||||
* CORDOVA_VERSION - The version of the Cordova-CLI.
|
||||
* CORDOVA_PLATFORMS - Comma separated list of platforms that the command applies to (e.g.: android, ios).
|
||||
* CORDOVA_PLUGINS - Comma separated list of plugin IDs that the command applies to (e.g.: org.apache.cordova.file, org.apache.cordova.file-transfer)
|
||||
* CORDOVA_HOOK - Path to the hook that is being executed.
|
||||
* CORDOVA_CMDLINE - The exact command-line arguments passed to cordova (e.g.: cordova run ios --emulate)
|
||||
|
||||
If a script returns a non-zero exit code, then the parent cordova command will be aborted.
|
||||
|
||||
## Writing hooks
|
||||
|
||||
We highly recommend writing your hooks using Node.js so that they are
|
||||
cross-platform. Some good examples are shown here:
|
||||
|
||||
[http://devgirl.org/2013/11/12/three-hooks-your-cordovaphonegap-project-needs/](http://devgirl.org/2013/11/12/three-hooks-your-cordovaphonegap-project-needs/)
|
||||
|
||||
Also, note that even if you are working on Windows, and in case your hook scripts aren't bat files (which is recommended, if you want your scripts to work in non-Windows operating systems) Cordova CLI will expect a shebang line as the first line for it to know the interpreter it needs to use to launch the script. The shebang line should match the following example:
|
||||
|
||||
#!/usr/bin/env [name_of_interpreter_executable]
|
||||
@@ -1,23 +0,0 @@
|
||||
import { CONF_LOCAL } from '../environments/environment.local';
|
||||
import { CONF_DEV } from '../environments/environment.dev';
|
||||
import { CONF_PROD } from '../environments/environment.prod';
|
||||
|
||||
const ENV = 'PROFILE';
|
||||
|
||||
const LOCAL: String = 'local';
|
||||
const DEV: String = 'dev';
|
||||
const PROD: String = 'prod';
|
||||
|
||||
let conf: any;
|
||||
|
||||
console.log('Env', ENV);
|
||||
|
||||
if (ENV === PROD) {
|
||||
conf = CONF_PROD;
|
||||
} else if (ENV === DEV) {
|
||||
conf = CONF_DEV;
|
||||
} else {
|
||||
conf = CONF_LOCAL;
|
||||
}
|
||||
|
||||
export const AppConfig = Object.assign({}, conf);
|
||||
@@ -1,20 +0,0 @@
|
||||
// require:
|
||||
var replace = require("replace");
|
||||
var fs = require('fs-extra');
|
||||
var path = require('path');
|
||||
|
||||
// use:
|
||||
var profile = process.env.ENV ? process.env.ENV : 'local';
|
||||
|
||||
console.log('Déplacement du template de fichier de détection de configuration ...');
|
||||
fs.copySync(path.resolve(__dirname,'./app.config.ts.tpl'), path.resolve(__dirname,'../../src/app/app.config.ts'));
|
||||
|
||||
console.log('Application du profil : ' + profile);
|
||||
|
||||
replace({
|
||||
regex: "'PROFILE'",
|
||||
replacement: "'" + profile + "'",
|
||||
paths: ['src/app/app.config.ts'],
|
||||
recursive: true,
|
||||
silent: true,
|
||||
});
|
||||
@@ -1,23 +0,0 @@
|
||||
import { CONF_LOCAL } from '../environments/environment.local';
|
||||
import { CONF_DEV } from '../environments/environment.dev';
|
||||
import { CONF_PROD } from '../environments/environment.prod';
|
||||
|
||||
const ENV = 'PROFILE';
|
||||
|
||||
const LOCAL: String = 'local';
|
||||
const DEV: String = 'dev';
|
||||
const PROD: String = 'prod';
|
||||
|
||||
let conf: any;
|
||||
|
||||
console.log('Env', ENV);
|
||||
|
||||
if (ENV === PROD) {
|
||||
conf = CONF_PROD;
|
||||
} else if (ENV === DEV) {
|
||||
conf = CONF_DEV;
|
||||
} else {
|
||||
conf = CONF_LOCAL;
|
||||
}
|
||||
|
||||
export const AppConfig = Object.assign({}, conf);
|
||||
@@ -1,23 +0,0 @@
|
||||
import { CONF_LOCAL } from '../environments/environment.local';
|
||||
import { CONF_DEV } from '../environments/environment.dev';
|
||||
import { CONF_PROD } from '../environments/environment.prod';
|
||||
|
||||
const ENV = 'PROFILE';
|
||||
|
||||
const LOCAL: String = 'local';
|
||||
const DEV: String = 'dev';
|
||||
const PROD: String = 'prod';
|
||||
|
||||
let conf: any;
|
||||
|
||||
console.log('Env', ENV);
|
||||
|
||||
if (ENV === PROD) {
|
||||
conf = CONF_PROD;
|
||||
} else if (ENV === DEV) {
|
||||
conf = CONF_DEV;
|
||||
} else {
|
||||
conf = CONF_LOCAL;
|
||||
}
|
||||
|
||||
export const AppConfig = Object.assign({}, conf);
|
||||
10
main.ts
10
main.ts
@@ -6,12 +6,6 @@ let win, serve;
|
||||
const args = process.argv.slice(1);
|
||||
serve = args.some(val => val === '--serve');
|
||||
|
||||
try {
|
||||
require('dotenv').config();
|
||||
} catch {
|
||||
console.log('asar');
|
||||
}
|
||||
|
||||
function createWindow() {
|
||||
|
||||
const electronScreen = screen;
|
||||
@@ -27,7 +21,8 @@ function createWindow() {
|
||||
|
||||
if (serve) {
|
||||
require('electron-reload')(__dirname, {
|
||||
electron: require(`${__dirname}/node_modules/electron`)});
|
||||
electron: require(`${__dirname}/node_modules/electron`)
|
||||
});
|
||||
win.loadURL('http://localhost:4200');
|
||||
} else {
|
||||
win.loadURL(url.format({
|
||||
@@ -46,6 +41,7 @@ function createWindow() {
|
||||
// when you should delete the corresponding element.
|
||||
win = null;
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
try {
|
||||
|
||||
111
package.json
111
package.json
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "angular-electron",
|
||||
"version": "3.3.0",
|
||||
"description": "Angular 5 with Electron (Typescript + SASS + Hot Reload)",
|
||||
"version": "5.1.0",
|
||||
"description": "Angular 7 with Electron (Typescript + SASS + Hot Reload)",
|
||||
"homepage": "https://github.com/maximegris/angular-electron",
|
||||
"author": {
|
||||
"name": "Maxime GRIS",
|
||||
@@ -9,7 +9,7 @@
|
||||
},
|
||||
"keywords": [
|
||||
"angular",
|
||||
"angular 5",
|
||||
"angular 7",
|
||||
"electron",
|
||||
"typescript",
|
||||
"sass"
|
||||
@@ -17,67 +17,66 @@
|
||||
"main": "main.js",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"postinstall": "npx electron-builder install-app-deps",
|
||||
"postinstall": "npm run postinstall:electron && electron-builder install-app-deps",
|
||||
"postinstall:web": "node postinstall-web",
|
||||
"postinstall:electron": "node postinstall",
|
||||
"ng": "ng",
|
||||
"start": "node hooks/environments/set_profile.js && npm-run-all -p ng:serve electron:serve",
|
||||
"build": "node hooks/environments/set_profile.js && ng build && npm run electron:tsc",
|
||||
"build:prod": "node hooks/environments/set_profile.js && ng build --prod && npm run electron:tsc",
|
||||
"ng:serve": "ng serve -o",
|
||||
"electron:tsc": "tsc main.ts",
|
||||
"electron:serve": "wait-on http-get://localhost:4200/ && npm run electron:tsc && electron . --serve",
|
||||
"start": "npm run postinstall:electron && npm-run-all -p ng:serve electron:serve",
|
||||
"build": "npm run postinstall:electron && npm run electron:serve-tsc && ng build",
|
||||
"build:dev": "npm run build -- -c dev",
|
||||
"build:prod": "npm run build -- -c production",
|
||||
"ng:serve": "ng serve",
|
||||
"ng:serve:web": "npm run postinstall:web && ng serve -o",
|
||||
"electron:serve-tsc": "tsc -p tsconfig-serve.json",
|
||||
"electron:serve": "wait-on http-get://localhost:4200/ && npm run electron:serve-tsc && electron . --serve",
|
||||
"electron:local": "npm run build:prod && electron .",
|
||||
"electron:linux": "npm run build:prod && npx electron-builder build --linux",
|
||||
"electron:windows": "npm run build:prod && npx electron-builder build --windows",
|
||||
"electron:mac": "npm run build:prod && npx electron-builder build --mac",
|
||||
"test": "karma start ./karma.conf.js",
|
||||
"pree2e:build": "webdriver-manager update --gecko false && npm run ng serve",
|
||||
"pree2e:protractor": "wait-on http-get://localhost:4200/ && protractor ./protractor.conf.js",
|
||||
"e2e": "npm-run-all -p -r pree2e:build pree2e:protractor"
|
||||
"electron:linux": "npm run build:prod && electron-builder build --linux",
|
||||
"electron:windows": "npm run build:prod && electron-builder build --windows",
|
||||
"electron:mac": "npm run build:prod && electron-builder build --mac",
|
||||
"test": "npm run postinstall:web && ng test",
|
||||
"e2e": "npm run postinstall:web && ng e2e",
|
||||
"version": "conventional-changelog -i CHANGELOG.md -s -r 0 && git add CHANGELOG.md"
|
||||
},
|
||||
"dependencies": {},
|
||||
"devDependencies": {
|
||||
"@angular/cli": "1.7.4",
|
||||
"@angular/common": "5.2.9",
|
||||
"@angular/compiler": "5.2.9",
|
||||
"@angular/compiler-cli": "5.2.9",
|
||||
"@angular/core": "5.2.9",
|
||||
"@angular/forms": "5.2.9",
|
||||
"@angular/http": "5.2.9",
|
||||
"@angular/language-service": "5.2.9",
|
||||
"@angular/platform-browser": "5.2.9",
|
||||
"@angular/platform-browser-dynamic": "5.2.9",
|
||||
"@angular/router": "5.2.9",
|
||||
"@ngx-translate/core": "9.1.1",
|
||||
"@ngx-translate/http-loader": "2.0.1",
|
||||
"@types/core-js": "0.9.36",
|
||||
"@types/jasmine": "2.8.6",
|
||||
"@angular-devkit/build-angular": "~0.10.0",
|
||||
"@angular/cli": "7.0.6",
|
||||
"@angular/common": "7.1.1",
|
||||
"@angular/compiler": "7.1.1",
|
||||
"@angular/compiler-cli": "7.1.1",
|
||||
"@angular/core": "7.1.1",
|
||||
"@angular/forms": "7.1.1",
|
||||
"@angular/http": "7.1.1",
|
||||
"@angular/language-service": "7.1.1",
|
||||
"@angular/platform-browser": "7.1.1",
|
||||
"@angular/platform-browser-dynamic": "7.1.1",
|
||||
"@angular/router": "7.1.1",
|
||||
"@ngx-translate/core": "11.0.1",
|
||||
"@ngx-translate/http-loader": "4.0.0",
|
||||
"@types/jasmine": "2.8.7",
|
||||
"@types/jasminewd2": "2.0.3",
|
||||
"@types/node": "7.0.7",
|
||||
"codelyzer": "4.2.1",
|
||||
"core-js": "2.5.5",
|
||||
"cross-env": "5.1.4",
|
||||
"dotenv": "5.0.1",
|
||||
"electron": "1.8.4",
|
||||
"electron-builder": "20.8.1",
|
||||
"electron-reload": "1.2.2",
|
||||
"fs-extra": "5.0.0",
|
||||
"jasmine-core": "2.99.1",
|
||||
"@types/node": "8.9.4",
|
||||
"codelyzer": "4.5.0",
|
||||
"conventional-changelog-cli": "2.0.11",
|
||||
"core-js": "2.5.7",
|
||||
"electron": "3.0.10",
|
||||
"electron-builder": "20.36.2",
|
||||
"electron-reload": "1.3.0",
|
||||
"jasmine-core": "3.3.0",
|
||||
"jasmine-spec-reporter": "4.2.1",
|
||||
"karma": "2.0.0",
|
||||
"karma": "3.1.1",
|
||||
"karma-chrome-launcher": "2.2.0",
|
||||
"karma-coverage-istanbul-reporter": "1.4.2",
|
||||
"karma-jasmine": "1.1.1",
|
||||
"karma-jasmine-html-reporter": "0.2.2",
|
||||
"npm-run-all": "4.1.2",
|
||||
"npx": "10.0.1",
|
||||
"protractor": "5.3.1",
|
||||
"replace": "0.3.0",
|
||||
"rxjs": "5.5.8",
|
||||
"ts-node": "4.1.0",
|
||||
"tslint": "5.9.1",
|
||||
"typescript": "2.6.2",
|
||||
"wait-on": "2.1.0",
|
||||
"webdriver-manager": "12.0.6",
|
||||
"karma-coverage-istanbul-reporter": "2.0.4",
|
||||
"karma-jasmine": "2.0.1",
|
||||
"karma-jasmine-html-reporter": "1.4.0",
|
||||
"npm-run-all": "4.1.5",
|
||||
"protractor": "5.4.1",
|
||||
"rxjs": "6.3.3",
|
||||
"ts-node": "7.0.1",
|
||||
"tslint": "5.11.0",
|
||||
"typescript": "3.1.6",
|
||||
"wait-on": "3.2.0",
|
||||
"webdriver-manager": "12.1.0",
|
||||
"zone.js": "0.8.26"
|
||||
}
|
||||
}
|
||||
|
||||
16
postinstall-web.js
Normal file
16
postinstall-web.js
Normal file
@@ -0,0 +1,16 @@
|
||||
// Allow angular using electron module (native node modules)
|
||||
const fs = require('fs');
|
||||
const f_angular = 'node_modules/@angular-devkit/build-angular/src/angular-cli-files/models/webpack-configs/browser.js';
|
||||
|
||||
fs.readFile(f_angular, 'utf8', function (err, data) {
|
||||
if (err) {
|
||||
return console.log(err);
|
||||
}
|
||||
var result = data.replace(/target: "electron-renderer",/g, '');
|
||||
var result = result.replace(/target: "web",/g, '');
|
||||
var result = result.replace(/return \{/g, 'return {target: "web",');
|
||||
|
||||
fs.writeFile(f_angular, result, 'utf8', function (err) {
|
||||
if (err) return console.log(err);
|
||||
});
|
||||
});
|
||||
16
postinstall.js
Normal file
16
postinstall.js
Normal file
@@ -0,0 +1,16 @@
|
||||
// Allow angular using electron module (native node modules)
|
||||
const fs = require('fs');
|
||||
const f_angular = 'node_modules/@angular-devkit/build-angular/src/angular-cli-files/models/webpack-configs/browser.js';
|
||||
|
||||
fs.readFile(f_angular, 'utf8', function (err, data) {
|
||||
if (err) {
|
||||
return console.log(err);
|
||||
}
|
||||
var result = data.replace(/target: "electron-renderer",/g, '');
|
||||
var result = result.replace(/target: "web",/g, '');
|
||||
var result = result.replace(/return \{/g, 'return {target: "electron-renderer",');
|
||||
|
||||
fs.writeFile(f_angular, result, 'utf8', function (err) {
|
||||
if (err) return console.log(err);
|
||||
});
|
||||
});
|
||||
@@ -1,7 +1,7 @@
|
||||
import { Component } from '@angular/core';
|
||||
import { ElectronService } from './providers/electron.service';
|
||||
import { TranslateService } from '@ngx-translate/core';
|
||||
import { AppConfig } from './app.config';
|
||||
import { AppConfig } from '../environments/environment';
|
||||
|
||||
@Component({
|
||||
selector: 'app-root',
|
||||
|
||||
@@ -1,23 +0,0 @@
|
||||
import { CONF_LOCAL } from '../environments/environment.local';
|
||||
import { CONF_DEV } from '../environments/environment.dev';
|
||||
import { CONF_PROD } from '../environments/environment.prod';
|
||||
|
||||
const ENV = 'prod';
|
||||
|
||||
const LOCAL: String = 'local';
|
||||
const DEV: String = 'dev';
|
||||
const PROD: String = 'prod';
|
||||
|
||||
let conf: any;
|
||||
|
||||
console.log('Env', ENV);
|
||||
|
||||
if (ENV === PROD) {
|
||||
conf = CONF_PROD;
|
||||
} else if (ENV === DEV) {
|
||||
conf = CONF_DEV;
|
||||
} else {
|
||||
conf = CONF_LOCAL;
|
||||
}
|
||||
|
||||
export const AppConfig = Object.assign({}, conf);
|
||||
@@ -1,4 +1,3 @@
|
||||
import 'zone.js/dist/zone-mix';
|
||||
import 'reflect-metadata';
|
||||
import '../polyfills';
|
||||
import { BrowserModule } from '@angular/platform-browser';
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
// `ng build --env=prod` then `index.prod.ts` will be used instead.
|
||||
// The list of which env maps to which file can be found in `.angular-cli.json`.
|
||||
|
||||
export const CONF_DEV = {
|
||||
export const AppConfig = {
|
||||
production: false,
|
||||
environment: 'DEV'
|
||||
};
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
export const CONF_PROD = {
|
||||
export const AppConfig = {
|
||||
production: true,
|
||||
environment: 'PROD'
|
||||
};
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
export const CONF_LOCAL = {
|
||||
export const AppConfig = {
|
||||
production: false,
|
||||
environment: 'LOCAL'
|
||||
};
|
||||
BIN
src/favicon.512x512.png
Normal file
BIN
src/favicon.512x512.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 26 KiB |
@@ -4,41 +4,28 @@
|
||||
module.exports = function (config) {
|
||||
config.set({
|
||||
basePath: '',
|
||||
frameworks: ['jasmine', '@angular/cli'],
|
||||
frameworks: ['jasmine', '@angular-devkit/build-angular'],
|
||||
plugins: [
|
||||
require('karma-jasmine'),
|
||||
require('karma-chrome-launcher'),
|
||||
require('karma-jasmine-html-reporter'),
|
||||
require('karma-coverage-istanbul-reporter'),
|
||||
require('@angular/cli/plugins/karma')
|
||||
require('@angular-devkit/build-angular/plugins/karma')
|
||||
],
|
||||
client:{
|
||||
clearContext: false // leave Jasmine Spec Runner output visible in browser
|
||||
},
|
||||
files: [
|
||||
{ pattern: './src/test.ts', watched: false }
|
||||
],
|
||||
preprocessors: {
|
||||
'./src/test.ts': ['@angular/cli']
|
||||
},
|
||||
mime: {
|
||||
'text/x-typescript': ['ts','tsx']
|
||||
},
|
||||
coverageIstanbulReporter: {
|
||||
dir: require('path').join(__dirname, '../coverage'),
|
||||
reports: [ 'html', 'lcovonly' ],
|
||||
fixWebpackSourcePaths: true
|
||||
},
|
||||
angularCli: {
|
||||
environment: 'dev'
|
||||
},
|
||||
reporters: config.angularCli && config.angularCli.codeCoverage
|
||||
? ['progress', 'coverage-istanbul']
|
||||
: ['progress', 'kjhtml'],
|
||||
reporters: ['progress', 'kjhtml'],
|
||||
port: 9876,
|
||||
colors: true,
|
||||
logLevel: config.LOG_INFO,
|
||||
autoWatch: true,
|
||||
browsers: ['Chrome'],
|
||||
singleRun: false
|
||||
singleRun: true
|
||||
});
|
||||
};
|
||||
@@ -2,7 +2,7 @@ import { enableProdMode } from '@angular/core';
|
||||
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
|
||||
|
||||
import { AppModule } from './app/app.module';
|
||||
import { AppConfig } from './app/app.config';
|
||||
import { AppConfig } from './environments/environment';
|
||||
|
||||
if (AppConfig.production) {
|
||||
enableProdMode();
|
||||
|
||||
3
src/polyfills-test.ts
Normal file
3
src/polyfills-test.ts
Normal file
@@ -0,0 +1,3 @@
|
||||
import 'core-js/es7/reflect';
|
||||
import 'zone.js/dist/zone';
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
* automatically update themselves. This includes Safari >= 10, Chrome >= 55 (including Opera),
|
||||
* Edge >= 13 on the desktop, and iOS 10 and Chrome on mobile.
|
||||
*
|
||||
* Learn more in https://angular.io/docs/ts/latest/guide/browser-support.html
|
||||
* Learn more in https://angular.io/guide/browser-support
|
||||
*/
|
||||
|
||||
/***************************************************************************************************
|
||||
@@ -34,21 +34,23 @@
|
||||
// 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';
|
||||
|
||||
|
||||
/** Evergreen browsers require these. **/
|
||||
// Used for reflect-metadata in JIT. If you use AOT (and only Angular decorators), you can remove.
|
||||
import 'core-js/es7/reflect';
|
||||
|
||||
|
||||
/**
|
||||
* Required to support Web Animations `@angular/platform-browser/animations`.
|
||||
* Needed for: All but Chrome, Firefox and Opera. http://caniuse.com/#feat=web-animation
|
||||
* 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`.
|
||||
|
||||
@@ -70,8 +72,7 @@ import 'core-js/es7/reflect';
|
||||
/***************************************************************************************************
|
||||
* Zone JS is required by default for Angular itself.
|
||||
*/
|
||||
import 'zone.js/dist/zone-mix'; // Included with Angular CLI.
|
||||
|
||||
import 'zone.js/dist/zone'; // Included with Angular CLI.
|
||||
|
||||
|
||||
/***************************************************************************************************
|
||||
|
||||
@@ -6,8 +6,6 @@ import {
|
||||
BrowserDynamicTestingModule,
|
||||
platformBrowserDynamicTesting
|
||||
} from '@angular/platform-browser-dynamic/testing';
|
||||
import { Observable } from 'rxjs/Observable';
|
||||
import { TranslateLoader, TranslateService } from '@ngx-translate/core';
|
||||
|
||||
declare const require: any;
|
||||
|
||||
|
||||
@@ -7,10 +7,6 @@
|
||||
"types": []
|
||||
},
|
||||
"exclude": [
|
||||
"test.ts",
|
||||
"**/*.spec.ts",
|
||||
"dist",
|
||||
"app-builds",
|
||||
"node_modules"
|
||||
"**/*.spec.ts"
|
||||
]
|
||||
}
|
||||
|
||||
@@ -3,15 +3,14 @@
|
||||
"compilerOptions": {
|
||||
"outDir": "../out-tsc/spec",
|
||||
"module": "commonjs",
|
||||
"target": "es5",
|
||||
"baseUrl": "",
|
||||
"types": [
|
||||
"jasmine",
|
||||
"node"
|
||||
]
|
||||
},
|
||||
"files": [
|
||||
"test.ts"
|
||||
"test.ts",
|
||||
"polyfills-test.ts"
|
||||
],
|
||||
"include": [
|
||||
"**/*.spec.ts",
|
||||
@@ -19,7 +18,7 @@
|
||||
],
|
||||
"exclude": [
|
||||
"dist",
|
||||
"app-builds",
|
||||
"release",
|
||||
"node_modules"
|
||||
]
|
||||
}
|
||||
|
||||
26
tsconfig-serve.json
Normal file
26
tsconfig-serve.json
Normal file
@@ -0,0 +1,26 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"sourceMap": true,
|
||||
"declaration": false,
|
||||
"moduleResolution": "node",
|
||||
"emitDecoratorMetadata": true,
|
||||
"experimentalDecorators": true,
|
||||
"target": "es5",
|
||||
"typeRoots": [
|
||||
"node_modules/@types"
|
||||
],
|
||||
"lib": [
|
||||
"es2017",
|
||||
"es2016",
|
||||
"es2015",
|
||||
"dom"
|
||||
]
|
||||
},
|
||||
"include": [
|
||||
"main.ts"
|
||||
],
|
||||
"exclude": [
|
||||
"node_modules",
|
||||
"**/*.spec.ts"
|
||||
]
|
||||
}
|
||||
@@ -13,7 +13,16 @@
|
||||
],
|
||||
"lib": [
|
||||
"es2017",
|
||||
"es2016",
|
||||
"es2015",
|
||||
"dom"
|
||||
]
|
||||
}
|
||||
},
|
||||
"include": [
|
||||
"main.ts",
|
||||
"src/**/*"
|
||||
],
|
||||
"exclude": [
|
||||
"node_modules"
|
||||
]
|
||||
}
|
||||
|
||||
@@ -18,7 +18,6 @@
|
||||
"forin": true,
|
||||
"import-blacklist": [
|
||||
true,
|
||||
"rxjs",
|
||||
"rxjs/Rx"
|
||||
],
|
||||
"import-spacing": true,
|
||||
@@ -117,12 +116,6 @@
|
||||
"check-separator",
|
||||
"check-type"
|
||||
],
|
||||
"directive-selector": [
|
||||
true,
|
||||
"attribute",
|
||||
"app",
|
||||
"camelCase"
|
||||
],
|
||||
"component-selector": [
|
||||
true,
|
||||
"element",
|
||||
|
||||
Reference in New Issue
Block a user