├── .editorconfig ├── .eslintignore ├── .eslintrc.json ├── .github ├── FUNDING.yml ├── ISSUE_TEMPLATE │ ├── bug_report.md │ ├── bug_report.yml │ ├── feature_request.md │ └── feature_request.yml ├── dependabot.yml ├── pull_request_template.md ├── stale.yml └── workflows │ ├── macos.yml │ ├── ubuntu.yml │ └── windows.yml ├── .gitignore ├── .node-version ├── .npmrc ├── .vscode ├── launch.json └── tasks.json ├── CHANGELOG.md ├── CODE_OF_CONDUCT.md ├── HOW_TO.md ├── LICENSE.md ├── README.md ├── _config.yml ├── angular.json ├── angular.webpack.js ├── app ├── main.ts ├── package-lock.json └── package.json ├── e2e ├── main.spec.ts ├── playwright.config.ts └── tsconfig.e2e.json ├── electron-builder.json ├── jest.config.js ├── package-lock.json ├── package.json ├── src ├── app │ ├── app.component.html │ ├── app.component.scss │ ├── app.component.spec.ts │ ├── app.component.ts │ ├── core │ │ ├── core.module.ts │ │ └── services │ │ │ ├── electron │ │ │ ├── electron.service.spec.ts │ │ │ └── electron.service.ts │ │ │ └── index.ts │ ├── detail │ │ ├── detail.component.html │ │ ├── detail.component.scss │ │ ├── detail.component.spec.ts │ │ └── detail.component.ts │ ├── home │ │ ├── home.component.html │ │ ├── home.component.scss │ │ ├── home.component.spec.ts │ │ └── home.component.ts │ └── shared │ │ ├── components │ │ ├── index.ts │ │ └── page-not-found │ │ │ ├── page-not-found.component.html │ │ │ ├── page-not-found.component.scss │ │ │ ├── page-not-found.component.spec.ts │ │ │ └── page-not-found.component.ts │ │ ├── directives │ │ ├── index.ts │ │ └── webview │ │ │ ├── webview.directive.spec.ts │ │ │ └── webview.directive.ts │ │ └── shared.module.ts ├── assets │ ├── .gitkeep │ ├── background.jpg │ ├── i18n │ │ └── en.json │ └── icons │ │ ├── electron.bmp │ │ ├── favicon.256x256.png │ │ ├── favicon.512x512.png │ │ ├── favicon.icns │ │ ├── favicon.ico │ │ └── favicon.png ├── environments │ ├── environment.dev.ts │ ├── environment.prod.ts │ ├── environment.ts │ ├── environment.web.prod.ts │ └── environment.web.ts ├── favicon.ico ├── index.html ├── main.ts ├── polyfills-test.ts ├── polyfills.ts ├── styles.scss ├── tsconfig.app.json ├── tsconfig.spec.json └── typings.d.ts ├── tsconfig.json └── tsconfig.serve.json /.editorconfig: -------------------------------------------------------------------------------- 1 | # Editor configuration, see http://editorconfig.org 2 | root = true 3 | 4 | [*] 5 | charset = utf-8 6 | indent_style = space 7 | indent_size = 2 8 | insert_final_newline = true 9 | trim_trailing_whitespace = true 10 | 11 | [*.ts] 12 | quote_type = single 13 | 14 | [*.md] 15 | max_line_length = off 16 | trim_trailing_whitespace = false 17 | -------------------------------------------------------------------------------- /.eslintignore: -------------------------------------------------------------------------------- 1 | src/environments/* 2 | e2e/playwright.config.ts 3 | -------------------------------------------------------------------------------- /.eslintrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "root": true, 3 | "ignorePatterns": [ 4 | "app/**/*", // ignore nodeJs files 5 | "dist/**/*", 6 | "release/**/*" 7 | ], 8 | "overrides": [ 9 | { 10 | "files": [ 11 | "*.ts" 12 | ], 13 | "parserOptions": { 14 | "project": [ 15 | "./tsconfig.serve.json", 16 | "./src/tsconfig.app.json", 17 | "./src/tsconfig.spec.json", 18 | "./e2e/tsconfig.e2e.json" 19 | ], 20 | "createDefaultProgram": true 21 | }, 22 | "extends": [ 23 | "plugin:@angular-eslint/recommended", 24 | "eslint:recommended", 25 | "plugin:@typescript-eslint/recommended", 26 | "plugin:@typescript-eslint/recommended-requiring-type-checking", 27 | "plugin:@angular-eslint/template/process-inline-templates" 28 | ], 29 | "rules": { 30 | "@typescript-eslint/no-empty-function": 0, 31 | "@typescript-eslint/no-explicit-any": 0, 32 | "@typescript-eslint/no-unsafe-assignment": 0, 33 | "@typescript-eslint/no-unsafe-call": 0, 34 | "@typescript-eslint/no-unsafe-member-access": 0, 35 | "prefer-arrow/prefer-arrow-functions": 0, 36 | "@angular-eslint/directive-selector": 0, 37 | "@angular-eslint/component-selector": [ 38 | "error", 39 | { 40 | "type": "element", 41 | "prefix": "app", 42 | "style": "kebab-case" 43 | } 44 | ], 45 | "jsdoc/newline-after-description": 0 46 | } 47 | }, 48 | { 49 | "files": [ 50 | "*.html" 51 | ], 52 | "extends": [ 53 | "plugin:@angular-eslint/template/recommended" 54 | ], 55 | "rules": { 56 | } 57 | } 58 | ] 59 | } 60 | -------------------------------------------------------------------------------- /.github/FUNDING.yml: -------------------------------------------------------------------------------- 1 | # These are supported funding model platforms 2 | 3 | github: maximegris 4 | patreon: user?u=37550953 5 | open_collective: # Replace with a single Open Collective username 6 | ko_fi: # Replace with a single Ko-fi username 7 | tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel 8 | community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry 9 | liberapay: # Replace with a single Liberapay username 10 | issuehunt: maximegris # Replace with a single IssueHunt username 11 | otechie: # Replace with a single Otechie username 12 | custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2'] 13 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/bug_report.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Bug report 3 | about: Create a report to help us improve 4 | title: '' 5 | labels: '' 6 | assignees: '' 7 | 8 | --- 9 | 10 | **Describe the bug** 11 | A clear and concise description of what the bug is. 12 | 13 | **To Reproduce** 14 | Steps to reproduce the behavior: 15 | 1. Go to '...' 16 | 2. Click on '....' 17 | 3. Scroll down to '....' 18 | 4. See error 19 | 20 | **Expected behavior** 21 | A clear and concise description of what you expected to happen. 22 | 23 | **Screenshots** 24 | If applicable, add screenshots to help explain your problem. 25 | 26 | **Additional context** 27 | - OS: [e.g. iOS] 28 | 29 | Add any other context about the problem here. 30 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/bug_report.yml: -------------------------------------------------------------------------------- 1 | name: "🐛 Bug report" 2 | description: Report errors or unexpected behavior 3 | labels: 4 | - bug 5 | - needs-triage 6 | body: 7 | - type: markdown 8 | attributes: 9 | value: | 10 | Please make sure to [search for existing issues](https://github.com/maximegris/angular-electron/issues) before filing a new one! 11 | 12 | - type: textarea 13 | attributes: 14 | label: Steps to reproduce 15 | description: We highly suggest including a screenshots and a bug report log. 16 | placeholder: | 17 | Tell us the steps required to trigger your bug. 18 | 1. Go to '...' 19 | 2. Click on '....' 20 | 3. Scroll down to '....' 21 | 4. See error 22 | 23 | validations: 24 | required: true 25 | 26 | - type: textarea 27 | attributes: 28 | label: ✔️ Expected Behavior 29 | placeholder: A clear and concise description of what you expected to happen. 30 | validations: 31 | required: true 32 | 33 | - type: textarea 34 | attributes: 35 | label: 🔍 Additional context 36 | description: Add any other context about the problem here. 37 | placeholder: | 38 | OS: [e.g. iOS] 39 | 40 | validations: 41 | required: false 42 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/feature_request.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Feature request 3 | about: Suggest an idea for this project 4 | title: '' 5 | labels: '' 6 | assignees: '' 7 | 8 | --- 9 | 10 | **Is your feature request related to a problem? Please describe.** 11 | A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] 12 | 13 | **Describe the solution you'd like** 14 | A clear and concise description of what you want to happen. 15 | 16 | **Describe alternatives you've considered** 17 | A clear and concise description of any alternative solutions or features you've considered. 18 | 19 | **Additional context** 20 | Add any other context or screenshots about the feature request here. 21 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/feature_request.yml: -------------------------------------------------------------------------------- 1 | name: "⭐ New Feature / Enhancement Request" 2 | description: Propose something new. 3 | labels: 4 | - enhancement 5 | - needs-triage 6 | 7 | body: 8 | - type: markdown 9 | attributes: 10 | value: | 11 | Please limit one request per issue. 12 | 13 | - type: textarea 14 | attributes: 15 | label: Description of the new feature / enhancement 16 | placeholder: | 17 | A clear and concise description of what is the expected behavior of the proposed feature? 18 | validations: 19 | required: true 20 | 21 | - type: textarea 22 | attributes: 23 | label: Scenario when this would be used? 24 | placeholder: | 25 | What is the scenario this would be used? Why is this important? 26 | validations: 27 | required: true 28 | 29 | 30 | -------------------------------------------------------------------------------- /.github/dependabot.yml: -------------------------------------------------------------------------------- 1 | version: 2 2 | updates: 3 | - package-ecosystem: "github-actions" 4 | directory: "/" 5 | schedule: 6 | interval: "weekly" 7 | -------------------------------------------------------------------------------- /.github/pull_request_template.md: -------------------------------------------------------------------------------- 1 | # Description 2 | 3 | Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change. 4 | 5 | Fixes # (issue) 6 | 7 | ## Type of change 8 | 9 | Please delete options that are not relevant. 10 | 11 | - [ ] Bug fix (non-breaking change which fixes an issue) 12 | - [ ] New feature (non-breaking change which adds functionality) 13 | - [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected) 14 | - [ ] This change requires a documentation update 15 | 16 | # Checklist: 17 | 18 | - [ ] I have performed a self-review of my own code 19 | - [ ] I have made corresponding changes to the documentation 20 | - [ ] My changes generate no new warnings 21 | - [ ] I have run tests (npm run test & npm run e2e) that prove my fix is effective or that my feature works 22 | -------------------------------------------------------------------------------- /.github/stale.yml: -------------------------------------------------------------------------------- 1 | # Number of days of inactivity before an issue becomes stale 2 | daysUntilStale: 15 3 | # Number of days of inactivity before a stale issue is closed 4 | daysUntilClose: 7 5 | # Issues with these labels will never be considered stale 6 | exemptLabels: 7 | - pinned 8 | - security 9 | # Label to use when marking an issue as stale 10 | staleLabel: wontfix 11 | # Comment to post when marking an issue as stale. Set to `false` to disable 12 | markComment: > 13 | This issue has been automatically marked as stale because it has not had 14 | recent activity. It will be closed if no further activity occurs. Thank you 15 | for your contributions. 16 | # Comment to post when closing a stale issue. Set to `false` to disable 17 | closeComment: false 18 | -------------------------------------------------------------------------------- /.github/workflows/macos.yml: -------------------------------------------------------------------------------- 1 | # This is a basic workflow to help you get started with Actions 2 | name: 'MacOS Build' 3 | 4 | # Controls when the action will run. 5 | on: 6 | # Triggers the workflow on push or pull request events but only for the main branch 7 | push: 8 | branches: 9 | - main 10 | pull_request: 11 | branches: 12 | - main 13 | 14 | # Allows you to run this workflow manually from the Actions tab 15 | workflow_dispatch: 16 | 17 | # A workflow run is made up of one or more jobs that can run sequentially or in parallel 18 | permissions: 19 | contents: read 20 | 21 | jobs: 22 | build: 23 | strategy: 24 | matrix: 25 | node-version: [22] 26 | 27 | # The type of runner that the job will run on 28 | runs-on: macos-12 29 | 30 | steps: 31 | - uses: actions/checkout@v3 32 | 33 | - name: Cache node modules 34 | uses: actions/cache@v4 35 | env: 36 | cache-name: cache-node-modules 37 | with: 38 | # npm cache files are stored in `~/.npm` on Linux/macOS 39 | path: ~/.npm 40 | key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }} 41 | restore-keys: | 42 | ${{ runner.os }}-build-${{ env.cache-name }}- 43 | ${{ runner.os }}-build- 44 | ${{ runner.os }}- 45 | 46 | - name: Use Node.js ${{ matrix.node-version }} 47 | uses: actions/setup-node@v3 48 | with: 49 | node-version: ${{ matrix.node-version }} 50 | 51 | - name: Install Dependencies 52 | run: npm i && npm i -D cli-truncate iconv-corefoundation 53 | 54 | - name: Check lint 55 | run: npm run lint 56 | 57 | - name: Build the app 58 | run: npm run electron:build 59 | -------------------------------------------------------------------------------- /.github/workflows/ubuntu.yml: -------------------------------------------------------------------------------- 1 | # This is a basic workflow to help you get started with Actions 2 | name: 'Linux Build' 3 | 4 | # Controls when the action will run. 5 | on: 6 | # Triggers the workflow on push or pull request events but only for the main branch 7 | push: 8 | branches: 9 | - main 10 | pull_request: 11 | branches: 12 | - main 13 | 14 | # Allows you to run this workflow manually from the Actions tab 15 | workflow_dispatch: 16 | 17 | # A workflow run is made up of one or more jobs that can run sequentially or in parallel 18 | jobs: 19 | build: 20 | strategy: 21 | matrix: 22 | node-version: [22] 23 | 24 | # The type of runner that the job will run on 25 | runs-on: ubuntu-22.04 26 | 27 | steps: 28 | - uses: actions/checkout@v3 29 | 30 | - name: Cache node modules 31 | uses: actions/cache@v4 32 | env: 33 | cache-name: cache-node-modules 34 | with: 35 | # npm cache files are stored in `~/.npm` on Linux/macOS 36 | path: ~/.npm 37 | key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }} 38 | restore-keys: | 39 | ${{ runner.os }}-build-${{ env.cache-name }}- 40 | ${{ runner.os }}-build- 41 | ${{ runner.os }}- 42 | 43 | - name: Use Node.js ${{ matrix.node-version }} 44 | uses: actions/setup-node@v3 45 | with: 46 | node-version: ${{ matrix.node-version }} 47 | 48 | - name: Install linux dependencies 49 | run: | 50 | sudo apt-get update 51 | sudo apt-get install -y libgtk-3-dev webkit2gtk-4.0 libappindicator3-dev librsvg2-dev patchelf 52 | 53 | - name: Install Dependencies 54 | run: npm i 55 | 56 | - name: Check lint 57 | run: npm run lint 58 | 59 | - name: Run headless unit test 60 | uses: GabrielBB/xvfb-action@v1 61 | with: 62 | run: npm run test 63 | 64 | - name: Run headless e2e test 65 | uses: GabrielBB/xvfb-action@v1 66 | with: 67 | run: npm run e2e 68 | 69 | - name: Build the app 70 | run: npm run electron:build 71 | -------------------------------------------------------------------------------- /.github/workflows/windows.yml: -------------------------------------------------------------------------------- 1 | # This is a basic workflow to help you get started with Actions 2 | name: 'Windows Build' 3 | 4 | # Controls when the action will run. 5 | on: 6 | # Triggers the workflow on push or pull request events but only for the main branch 7 | push: 8 | branches: 9 | - main 10 | pull_request: 11 | branches: 12 | - main 13 | 14 | # Allows you to run this workflow manually from the Actions tab 15 | workflow_dispatch: 16 | 17 | # A workflow run is made up of one or more jobs that can run sequentially or in parallel 18 | permissions: 19 | contents: read 20 | 21 | jobs: 22 | build: 23 | strategy: 24 | matrix: 25 | node-version: [22] 26 | 27 | # The type of runner that the job will run on 28 | runs-on: windows-2022 29 | 30 | steps: 31 | - uses: actions/checkout@v3 32 | 33 | - name: Cache node modules 34 | uses: actions/cache@v4 35 | env: 36 | cache-name: cache-node-modules 37 | with: 38 | # npm cache files are stored in `~/.npm` 39 | path: ~/.npm 40 | key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }} 41 | restore-keys: | 42 | ${{ runner.os }}-build-${{ env.cache-name }}- 43 | ${{ runner.os }}-build- 44 | ${{ runner.os }}- 45 | 46 | - name: Use Node.js ${{ matrix.node-version }} 47 | uses: actions/setup-node@v3 48 | with: 49 | node-version: ${{ matrix.node-version }} 50 | 51 | - name: Install Dependencies 52 | run: npm i 53 | 54 | - name: Check lint 55 | run: npm run lint 56 | 57 | - name: Run headless unit test 58 | run: npm run test 59 | 60 | - name: Run headless e2e test 61 | run: npm run e2e 62 | 63 | - name: Build the app 64 | run: npm run electron:build 65 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # See http://help.github.com/ignore-files/ for more about ignoring files. 2 | 3 | # compiled output 4 | /dist 5 | /tmp 6 | /out-tsc 7 | /app-builds 8 | /release 9 | main.js 10 | src/**/*.js 11 | *.js.map 12 | 13 | # dependencies 14 | node_modules 15 | 16 | # IDEs and editors 17 | .idea 18 | .project 19 | .classpath 20 | .c9/ 21 | *.launch 22 | .settings/ 23 | *.sublime-workspace 24 | 25 | # IDE - VSCode 26 | .vscode/* 27 | .vscode/settings.json 28 | !.vscode/tasks.json 29 | !.vscode/launch.json 30 | !.vscode/extensions.json 31 | 32 | # misc 33 | /.angular/cache 34 | /.sass-cache 35 | /connect.lock 36 | /coverage 37 | /libpeerconnection.log 38 | npm-debug.log 39 | testem.log 40 | /typings 41 | .nx 42 | 43 | # e2e 44 | /e2e/*.js 45 | !/e2e/protractor.conf.js 46 | /e2e/*.map 47 | /e2e/tracing 48 | /e2e/screenshots 49 | 50 | # System Files 51 | .DS_Store 52 | Thumbs.db 53 | -------------------------------------------------------------------------------- /.node-version: -------------------------------------------------------------------------------- 1 | 22 2 | -------------------------------------------------------------------------------- /.npmrc: -------------------------------------------------------------------------------- 1 | save=true 2 | save-exact=true 3 | -------------------------------------------------------------------------------- /.vscode/launch.json: -------------------------------------------------------------------------------- 1 | { 2 | // Use IntelliSense to learn about possible attributes. 3 | // Hover to view descriptions of existing attributes. 4 | // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 5 | "version": "0.2.0", 6 | "configurations": [ 7 | { 8 | "name": "Renderer", 9 | "type": "chrome", 10 | "request": "attach", 11 | "port": 9876, 12 | "url": "http://localhost:4200", 13 | "sourceMaps": true, 14 | "timeout": 10000, 15 | "trace": "verbose", 16 | "sourceMapPathOverrides": { 17 | "webpack:///./*": "${workspaceFolder}/*" 18 | }, 19 | "preLaunchTask": "Build.Renderer" 20 | }, 21 | { 22 | "name": "Main", 23 | "type": "node", 24 | "request": "launch", 25 | "protocol": "inspector", 26 | "cwd": "${workspaceFolder}", 27 | "runtimeExecutable": "${workspaceFolder}/node_modules/.bin/electron", 28 | "trace": "verbose", 29 | "runtimeArgs": [ 30 | "--serve", 31 | ".", 32 | "--remote-debugging-port=9876" 33 | ], 34 | "windows": { 35 | "runtimeExecutable": "${workspaceFolder}/node_modules/.bin/electron.cmd" 36 | }, 37 | "preLaunchTask": "Build.Main" 38 | } 39 | ], 40 | "compounds": [ 41 | { 42 | "name": "Application Debug", 43 | "configurations": [ "Renderer", "Main" ] 44 | } 45 | ] 46 | } -------------------------------------------------------------------------------- /.vscode/tasks.json: -------------------------------------------------------------------------------- 1 | { 2 | "version": "2.0.0", 3 | "tasks": [ 4 | { 5 | "label": "Build.Main", 6 | "type": "shell", 7 | "command": "npm run electron:serve-tsc", 8 | "isBackground": false, 9 | "group": { 10 | "kind": "build", 11 | "isDefault": true 12 | }, 13 | "problemMatcher": { 14 | "owner": "typescript", 15 | "source": "ts", 16 | "applyTo": "closedDocuments", 17 | "fileLocation": ["relative", "${cwd}"], 18 | "pattern": "$tsc", 19 | "background": { 20 | "activeOnStart": true, 21 | "beginsPattern": "^.*", 22 | "endsPattern": "^.*Terminal will be reused by tasks, press any key to close it.*" 23 | } 24 | } 25 | }, 26 | { 27 | "label": "Build.Renderer", 28 | "type": "shell", 29 | "command": "npm run ng:serve", 30 | "isBackground": true, 31 | "group": { 32 | "kind": "build", 33 | "isDefault": true 34 | }, 35 | "problemMatcher": { 36 | "owner": "typescript", 37 | "source": "ts", 38 | "applyTo": "closedDocuments", 39 | "fileLocation": ["relative", "${cwd}"], 40 | "pattern": "$tsc", 41 | "background": { 42 | "activeOnStart": true, 43 | "beginsPattern": "^.*", 44 | "endsPattern": "^.*Compiled successfully.*" 45 | } 46 | } 47 | } 48 | ] 49 | } -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- 1 | ## 15.0.0 (2025-06-04) 2 | 3 | * Bump actions/cache from 3 to 4 ([0d85918](https://github.com/maximegris/angular-electron/commit/0d85918)) 4 | * misc/ use node22 on actions ([2e8c096](https://github.com/maximegris/angular-electron/commit/2e8c096)) 5 | * misc: upgrade to angular 19 & Electron 36 ([793ea57](https://github.com/maximegris/angular-electron/commit/793ea57)) 6 | 7 | 8 | 9 | ## 14.0.1 (2024-04-27) 10 | 11 | * [Bumped Version] 14.0.1 ([801e99e](https://github.com/maximegris/angular-electron/commit/801e99e)) 12 | * Create feature_request.yml ([0b26402](https://github.com/maximegris/angular-electron/commit/0b26402)) 13 | * forms for open issues bug and new feature ([c997da6](https://github.com/maximegris/angular-electron/commit/c997da6)) 14 | * misc/ Github action : update node version ([05707de](https://github.com/maximegris/angular-electron/commit/05707de)) 15 | * misc/ GitHub actions: node 20, ubuntu 22.04 + pin versions ([872e696](https://github.com/maximegris/angular-electron/commit/872e696)) 16 | * misc/ unit-test : replace Karma & Jasmine with Jest ([f36aa91](https://github.com/maximegris/angular-electron/commit/f36aa91)) 17 | * misc/ Upgrade to Angular 17 & Electron 27 ([2ec1cec](https://github.com/maximegris/angular-electron/commit/2ec1cec)) 18 | * misc/ Upgrade to Electron 30 ([1a431cd](https://github.com/maximegris/angular-electron/commit/1a431cd)) 19 | * chore: fix lint ([822853f](https://github.com/maximegris/angular-electron/commit/822853f)) 20 | 21 | 22 | 23 | ## 13.0.0 (2023-06-30) 24 | 25 | * [Bumped Version] 13.0.0 ([e1a4e49](https://github.com/maximegris/angular-electron/commit/e1a4e49)) 26 | * fix/ Use globalThis property, a standard way of accessing the global this on browser & Node ([45bdbfa](https://github.com/maximegris/angular-electron/commit/45bdbfa)) 27 | * misc/ disable 'jsdoc/newline-after-description' rule ([9b22567](https://github.com/maximegris/angular-electron/commit/9b22567)) 28 | * misc/ Enable Typescript strict mode ([f60add8](https://github.com/maximegris/angular-electron/commit/f60add8)) 29 | * misc/ Update angular material HOW TO guide ([18c5431](https://github.com/maximegris/angular-electron/commit/18c5431)) 30 | * misc/ Upgrade electron-builder dependency ([04a3b14](https://github.com/maximegris/angular-electron/commit/04a3b14)) 31 | * misc/ Upgrade to Angular 15.2.9 & Electron 24 ([7c78613](https://github.com/maximegris/angular-electron/commit/7c78613)) 32 | * misc/ Upgrade to Angular 16.1.3 & Electron 2 ([5f8e817](https://github.com/maximegris/angular-electron/commit/5f8e817)) 33 | 34 | 35 | 36 | ## 12.0.0 (2023-02-17) 37 | 38 | * [Bumped Version] 12.0.0 ([f78a81f](https://github.com/maximegris/angular-electron/commit/f78a81f)) 39 | * misc/ Upgrade to Electron 22 ([8cb0acd](https://github.com/maximegris/angular-electron/commit/8cb0acd)) 40 | * package json description updated ([8726c0a](https://github.com/maximegris/angular-electron/commit/8726c0a)) 41 | * fix(test): remove require.context (not needed) ([680d18d](https://github.com/maximegris/angular-electron/commit/680d18d)) 42 | * refactor: use latest eslint ([41abef1](https://github.com/maximegris/angular-electron/commit/41abef1)) 43 | * refactor: use latest eslint & change docs ([9f8add6](https://github.com/maximegris/angular-electron/commit/9f8add6)) 44 | * feat: use latest angular / angular-builder / angular-eslint ([fd9f876](https://github.com/maximegris/angular-electron/commit/fd9f876)) 45 | 46 | 47 | 48 | ## 11.2.0 (2022-10-16) 49 | 50 | * [Bumped Version] 11.2.0 ([0fd7a31](https://github.com/maximegris/angular-electron/commit/0fd7a31)) 51 | * misc/ Upgrade to Electron 21 ([ed23e89](https://github.com/maximegris/angular-electron/commit/ed23e89)) 52 | 53 | 54 | 55 | ## 11.1.0 (2022-08-12) 56 | 57 | * [Bumped Version] 11.1.0 ([a3eeb6a](https://github.com/maximegris/angular-electron/commit/a3eeb6a)) 58 | * Bump actions/cache from 2 to 3 ([85b8624](https://github.com/maximegris/angular-electron/commit/85b8624)) 59 | * Bump actions/checkout from 2 to 3 ([0650214](https://github.com/maximegris/angular-electron/commit/0650214)) 60 | * Bump actions/setup-node from 1 to 3 ([f9a55b6](https://github.com/maximegris/angular-electron/commit/f9a55b6)) 61 | * refactor/ build electron archive as asar ([e1da5b5](https://github.com/maximegris/angular-electron/commit/e1da5b5)) 62 | * refactor/ replace deprecated url.format with URL WHATWG API ([c491c48](https://github.com/maximegris/angular-electron/commit/c491c48)) 63 | 64 | 65 | 66 | ## 11.0.0 (2022-07-20) 67 | 68 | * [Bumped Version] 11.0.0 ([91a8574](https://github.com/maximegris/angular-electron/commit/91a8574)) 69 | * misc/ Upgrade to Angular 14 & Electron 19 ([dbacec7](https://github.com/maximegris/angular-electron/commit/dbacec7)) 70 | * chore: Included githubactions in the dependabot config ([36f2a66](https://github.com/maximegris/angular-electron/commit/36f2a66)) 71 | * chore: Set permissions for GitHub actions ([ca54dda](https://github.com/maximegris/angular-electron/commit/ca54dda)) 72 | 73 | 74 | 75 | ## 10.5.2 (2022-04-23) 76 | 77 | * [Bumped Version] 10.5.2 ([c26be0a](https://github.com/maximegris/angular-electron/commit/c26be0a)) 78 | * Bump plist from 3.0.4 to 3.0.5 ([bedaba3](https://github.com/maximegris/angular-electron/commit/bedaba3)) 79 | * fix/ macos action ([f1d89b1](https://github.com/maximegris/angular-electron/commit/f1d89b1)) 80 | * misc/ add electron-reloader ([c885a24](https://github.com/maximegris/angular-electron/commit/c885a24)) 81 | 82 | 83 | 84 | ## 10.5.1 (2022-04-02) 85 | 86 | * [Bumped Version] 10.5.1 ([ad23ace](https://github.com/maximegris/angular-electron/commit/ad23ace)) 87 | * fix/ macos action ([ff71c32](https://github.com/maximegris/angular-electron/commit/ff71c32)) 88 | * fix/ remove demo.gif ([ccd468d](https://github.com/maximegris/angular-electron/commit/ccd468d)) 89 | * migrate to main branch ([2c7cd98](https://github.com/maximegris/angular-electron/commit/2c7cd98)) 90 | * misc/ Upgrade to Electron 18 ([7251676](https://github.com/maximegris/angular-electron/commit/7251676)) 91 | * Set theme jekyll-theme-cayman ([1f0ba34](https://github.com/maximegris/angular-electron/commit/1f0ba34)) 92 | * fix: github action ([d6b5784](https://github.com/maximegris/angular-electron/commit/d6b5784)) 93 | 94 | 95 | 96 | ## 10.5.0 (2022-02-24) 97 | 98 | * [Bumped Version] 10.5.0 ([92fe8ed](https://github.com/maximegris/angular-electron/commit/92fe8ed)) 99 | * Bump follow-redirects from 1.14.5 to 1.14.7 ([606d54d](https://github.com/maximegris/angular-electron/commit/606d54d)) 100 | * Bump log4js from 6.3.0 to 6.4.0 ([27adf26](https://github.com/maximegris/angular-electron/commit/27adf26)) 101 | * Bump nanoid from 3.1.30 to 3.2.0 ([e05d98b](https://github.com/maximegris/angular-electron/commit/e05d98b)) 102 | * fix/ global error in console when building web app only ([58424a2](https://github.com/maximegris/angular-electron/commit/58424a2)) 103 | * misc/ github actions on 14.x, 16.x, 17.x ([4fe8c2c](https://github.com/maximegris/angular-electron/commit/4fe8c2c)) 104 | * misc/ Upgrade to Electron 17 ([4964bae](https://github.com/maximegris/angular-electron/commit/4964bae)) 105 | * use local electron from devDependencies instead of npx ([a029060](https://github.com/maximegris/angular-electron/commit/a029060)) 106 | 107 | 108 | 109 | ## 10.4.1 (2021-11-17) 110 | 111 | * [Bumped Version] 10.4.1 ([c5096fa](https://github.com/maximegris/angular-electron/commit/c5096fa)) 112 | * misc/ Upgrade eslint version ([4321d9d](https://github.com/maximegris/angular-electron/commit/4321d9d)) 113 | * misc/ Upgrade to Angular 13.0.0 ([99e9f35](https://github.com/maximegris/angular-electron/commit/99e9f35)) 114 | 115 | 116 | 117 | ## 10.4.0 (2021-11-17) 118 | 119 | * [Bumped Version] 10.4.0 ([7a4f527](https://github.com/maximegris/angular-electron/commit/7a4f527)) 120 | * misc/ upgrade to Angular 12.2.13 ([74df637](https://github.com/maximegris/angular-electron/commit/74df637)) 121 | * misc/ upgrade to Electron 16 ([65d285c](https://github.com/maximegris/angular-electron/commit/65d285c)) 122 | * misc/ upgrade wait-on dependency ([e427f26](https://github.com/maximegris/angular-electron/commit/e427f26)) 123 | 124 | 125 | 126 | ## 10.3.1 (2021-11-17) 127 | 128 | * [Bumped Version] 10.3.1 ([ebde830](https://github.com/maximegris/angular-electron/commit/ebde830)) 129 | * fix/ TS Config : module resolution in main process ([a9d3044](https://github.com/maximegris/angular-electron/commit/a9d3044)) 130 | 131 | 132 | 133 | ## 10.3.0 (2021-11-15) 134 | 135 | * [Bumped Version] 10.3.0 ([20e9142](https://github.com/maximegris/angular-electron/commit/20e9142)) 136 | * fix/Polyfill Node.js core modules in Webpack (5+) ([e3c0d9f](https://github.com/maximegris/angular-electron/commit/e3c0d9f)) 137 | * ref/ move angularCompilerOptions to tsconfig ([e07410b](https://github.com/maximegris/angular-electron/commit/e07410b)) 138 | * remove include statement from base tsconfig.json ([aebec1a](https://github.com/maximegris/angular-electron/commit/aebec1a)) 139 | * Update README.md ([47fc3ff](https://github.com/maximegris/angular-electron/commit/47fc3ff)) 140 | 141 | 142 | 143 | ## 10.2.0 (2021-11-14) 144 | 145 | * [Bumped Version] 10.2.0 ([edb5269](https://github.com/maximegris/angular-electron/commit/edb5269)) 146 | * add missing @ on the SCSS import for Material theme fix ([dc9ee14](https://github.com/maximegris/angular-electron/commit/dc9ee14)) 147 | * bugfix/ electron builder 22.11 needs Node 14+ ([c7dbb3f](https://github.com/maximegris/angular-electron/commit/c7dbb3f)) 148 | * Bump electron from 13.1.7 to 13.3.0 ([fe0280a](https://github.com/maximegris/angular-electron/commit/fe0280a)) 149 | * remove screenshot test ([62facb1](https://github.com/maximegris/angular-electron/commit/62facb1)) 150 | * replace Spectron by Playwright ([558c646](https://github.com/maximegris/angular-electron/commit/558c646)) 151 | * Update README.md ([4b44d8b](https://github.com/maximegris/angular-electron/commit/4b44d8b)) 152 | * Update README.md ([c385d6a](https://github.com/maximegris/angular-electron/commit/c385d6a)) 153 | 154 | 155 | 156 | ## 10.1.0 (2021-07-17) 157 | 158 | * [Bumped Version] 10.1.0 ([f399d75](https://github.com/maximegris/angular-electron/commit/f399d75)) 159 | * Fix typo & some spacing ([d2b6ee0](https://github.com/maximegris/angular-electron/commit/d2b6ee0)) 160 | * Fix typo in branch section ([623d0fa](https://github.com/maximegris/angular-electron/commit/623d0fa)) 161 | * ref/action-xvfb-linux ([60b591b](https://github.com/maximegris/angular-electron/commit/60b591b)) 162 | * Upgrade to Angular 12.1.2 / Electron 13.1.7 ([8274ae3](https://github.com/maximegris/angular-electron/commit/8274ae3)) 163 | 164 | 165 | 166 | ## 10.0.2 (2021-06-25) 167 | 168 | * [Bumped Version] 10.0.2 ([e8f36a3](https://github.com/maximegris/angular-electron/commit/e8f36a3)) 169 | * ci/ workflow ubuntu without test ([2b819d7](https://github.com/maximegris/angular-electron/commit/2b819d7)) 170 | * fix/ spectron e2e test ([742095f](https://github.com/maximegris/angular-electron/commit/742095f)) 171 | * ref/ set default angular eslint rules ([7d531d1](https://github.com/maximegris/angular-electron/commit/7d531d1)) 172 | 173 | 174 | 175 | ## 10.0.1 (2021-06-19) 176 | 177 | * [Bumped Version] 10.0.1 ([9b79616](https://github.com/maximegris/angular-electron/commit/9b79616)) 178 | * fix/ use node 3rd party libraries in renderer process ([1fb08a7](https://github.com/maximegris/angular-electron/commit/1fb08a7)) 179 | * ref/ eslint conf ([af0a677](https://github.com/maximegris/angular-electron/commit/af0a677)) 180 | * update README (electron builder two package structure) ([2e29232](https://github.com/maximegris/angular-electron/commit/2e29232)) 181 | * Update README.md ([33f5f6d](https://github.com/maximegris/angular-electron/commit/33f5f6d)) 182 | 183 | 184 | 185 | ## 10.0.0 (2021-05-30) 186 | 187 | * [Bumped Version] 10.0.0 ([987e996](https://github.com/maximegris/angular-electron/commit/987e996)) 188 | * [Bumped Version] 10.0.0 ([38f58de](https://github.com/maximegris/angular-electron/commit/38f58de)) 189 | * add HOW_TO.md ([3a85294](https://github.com/maximegris/angular-electron/commit/3a85294)) 190 | * fix/ github actions - angular-cli need node 12+ ([154d3fc](https://github.com/maximegris/angular-electron/commit/154d3fc)) 191 | * fix/ github actions - angular12 need node 11+ ([323aeb8](https://github.com/maximegris/angular-electron/commit/323aeb8)) 192 | * github action - node 12/14/15 ([dd9cf0d](https://github.com/maximegris/angular-electron/commit/dd9cf0d)) 193 | * ref/ electron builder two packages build ([d533e49](https://github.com/maximegris/angular-electron/commit/d533e49)) 194 | * ref/ move how to install with ng add in HOW_TO.md ([34e1232](https://github.com/maximegris/angular-electron/commit/34e1232)) 195 | * Upgrade to Angular 12 / Electron 13 ([fc006d2](https://github.com/maximegris/angular-electron/commit/fc006d2)) 196 | 197 | 198 | 199 | ## 9.0.8 (2021-05-30) 200 | 201 | * [Bumped Version] 9.0.8 ([21197ab](https://github.com/maximegris/angular-electron/commit/21197ab)) 202 | * Added how to install Angular Material to readme ([d904101](https://github.com/maximegris/angular-electron/commit/d904101)) 203 | * fix README typo ([aa691d9](https://github.com/maximegris/angular-electron/commit/aa691d9)) 204 | * Update electron version ([b1f4451](https://github.com/maximegris/angular-electron/commit/b1f4451)) 205 | * Update electron version ([494c607](https://github.com/maximegris/angular-electron/commit/494c607)) 206 | * fix: solving bug related in fsevents/fsevents#320 ([5b091ca](https://github.com/maximegris/angular-electron/commit/5b091ca)), closes [fsevents/fsevents#320](https://github.com/fsevents/fsevents/issues/320) 207 | 208 | 209 | 210 | ## 9.0.7 (2021-04-07) 211 | 212 | * [Bumped Version] 9.0.7 ([b8371ee](https://github.com/maximegris/angular-electron/commit/b8371ee)) 213 | * Account for the change in context isolation with Electron 12 ([d08ae8f](https://github.com/maximegris/angular-electron/commit/d08ae8f)) 214 | * fix/ angular.json - files to lint ([ec7ce0c](https://github.com/maximegris/angular-electron/commit/ec7ce0c)) 215 | * misc/ vscode debug ([f4225a3](https://github.com/maximegris/angular-electron/commit/f4225a3)) 216 | * montée version Angular 11.2.8 / Electrion 12.0.2 ([371dafa](https://github.com/maximegris/angular-electron/commit/371dafa)) 217 | * Update FUNDING.yml ([54a42eb](https://github.com/maximegris/angular-electron/commit/54a42eb)) 218 | * Update FUNDING.yml ([3749cfa](https://github.com/maximegris/angular-electron/commit/3749cfa)) 219 | 220 | 221 | 222 | ## 9.0.6 (2021-03-21) 223 | 224 | * [Bumped Version] 9.0.6 ([0a7842f](https://github.com/maximegris/angular-electron/commit/0a7842f)) 225 | * Create pull_request_template.md ([adac86e](https://github.com/maximegris/angular-electron/commit/adac86e)) 226 | * fix/ eslint parsing 'parserOptions.project' ([08ce022](https://github.com/maximegris/angular-electron/commit/08ce022)) 227 | * img for loading the portable .exe ([5c18d64](https://github.com/maximegris/angular-electron/commit/5c18d64)) 228 | * misc/ add code of conduct ([742c9fb](https://github.com/maximegris/angular-electron/commit/742c9fb)) 229 | * misc/ readme typo ([f4d3ebb](https://github.com/maximegris/angular-electron/commit/f4d3ebb)) 230 | * misc/ remove useless files from final package ([414d61b](https://github.com/maximegris/angular-electron/commit/414d61b)) 231 | * misc/ Update issue templates ([2dede45](https://github.com/maximegris/angular-electron/commit/2dede45)) 232 | 233 | 234 | 235 | ## 9.0.5 (2021-03-19) 236 | 237 | * [Bumped version] 9.0.5 ([2e8e630](https://github.com/maximegris/angular-electron/commit/2e8e630)) 238 | * add github actions badges ([6b505e3](https://github.com/maximegris/angular-electron/commit/6b505e3)) 239 | * github actions on master & puul request ([e474264](https://github.com/maximegris/angular-electron/commit/e474264)) 240 | * misc / upgrade to angular 11.2.6 ([982cbac](https://github.com/maximegris/angular-electron/commit/982cbac)) 241 | * misc/ upgrade angular-eslint to 2.0.2 ([b8230c9](https://github.com/maximegris/angular-electron/commit/b8230c9)) 242 | * misc/ upgrade to Electron 12.0.1 ([d2f9fc2](https://github.com/maximegris/angular-electron/commit/d2f9fc2)) 243 | * redirect to github actions when click on badges ([a26d5f1](https://github.com/maximegris/angular-electron/commit/a26d5f1)) 244 | * ref/ replace electron.remote (deprecated) by @electron/remote ([8a4b624](https://github.com/maximegris/angular-electron/commit/8a4b624)) 245 | * remove travisci ([831ea51](https://github.com/maximegris/angular-electron/commit/831ea51)) 246 | * set github actions ([edb6f2a](https://github.com/maximegris/angular-electron/commit/edb6f2a)) 247 | 248 | 249 | 250 | ## 9.0.4 (2021-02-13) 251 | 252 | * [Bumped Version] 9.0.4 ([e6d0aa6](https://github.com/maximegris/angular-electron/commit/e6d0aa6)) 253 | * extractCss true by default & deprecated ([4af9def](https://github.com/maximegris/angular-electron/commit/4af9def)) 254 | * Fix typo in introduction ([c3b8258](https://github.com/maximegris/angular-electron/commit/c3b8258)) 255 | * misc/ upgrade to Angular 11.2.0 & Electrion 11.2.0 ([0662793](https://github.com/maximegris/angular-electron/commit/0662793)) 256 | * spelling ([3b7f69a](https://github.com/maximegris/angular-electron/commit/3b7f69a)) 257 | * target only chrome 85 matching electron version ([b947d2d](https://github.com/maximegris/angular-electron/commit/b947d2d)) 258 | * Update README.md ([bdb91e4](https://github.com/maximegris/angular-electron/commit/bdb91e4)) 259 | 260 | 261 | 262 | ## 9.0.3 (2020-12-08) 263 | 264 | * [Bumped Version] 9.0.3 ([fe55273](https://github.com/maximegris/angular-electron/commit/fe55273)) 265 | * fix/ upgrade angular to 11.0.2 ([203e608](https://github.com/maximegris/angular-electron/commit/203e608)) 266 | * misc/ upgrade dependencies ([922bbf9](https://github.com/maximegris/angular-electron/commit/922bbf9)) 267 | * misc/ upgrade to Electron 11 ([becaa73](https://github.com/maximegris/angular-electron/commit/becaa73)) 268 | 269 | 270 | 271 | ## 9.0.2 (2020-11-15) 272 | 273 | * [Bumped Version] 9.0.2 ([be43e09](https://github.com/maximegris/angular-electron/commit/be43e09)) 274 | * Fix typo in eslint rule ([b8429b8](https://github.com/maximegris/angular-electron/commit/b8429b8)) 275 | * misc/ remove old code ([9933622](https://github.com/maximegris/angular-electron/commit/9933622)) 276 | 277 | 278 | 279 | ## 9.0.1 (2020-11-14) 280 | 281 | * [Bumped Version] 9.0.1 ([066dcdb](https://github.com/maximegris/angular-electron/commit/066dcdb)) 282 | * ref/ support remote module in unit test ([04d9e8a](https://github.com/maximegris/angular-electron/commit/04d9e8a)) 283 | 284 | 285 | 286 | ## 9.0.0 (2020-11-14) 287 | 288 | * [Bumped Version] 9.0.0 ([a7964be](https://github.com/maximegris/angular-electron/commit/a7964be)) 289 | * misc/ upgrade to Angular 11 ([d265dfa](https://github.com/maximegris/angular-electron/commit/d265dfa)) 290 | 291 | 292 | 293 | ## 8.0.6 (2020-11-14) 294 | 295 | * [Bumped Version] 8.0.6 ([e0fb539](https://github.com/maximegris/angular-electron/commit/e0fb539)) 296 | * fix/ zonejs version ([0b9b8b3](https://github.com/maximegris/angular-electron/commit/0b9b8b3)) 297 | 298 | 299 | 300 | ## 8.0.5 (2020-09-28) 301 | 302 | * [Bumped Version] 8.0.5 ([2374427](https://github.com/maximegris/angular-electron/commit/2374427)) 303 | * misc/ ci - remove fast finish option ([d4ce11d](https://github.com/maximegris/angular-electron/commit/d4ce11d)) 304 | * misc/ enable remote module in renderer process (needed for spectron) ([3309855](https://github.com/maximegris/angular-electron/commit/3309855)) 305 | * misc/ revert electron because spectron cannot handle: electron-userland/spectron#693 ([b1affd0](https://github.com/maximegris/angular-electron/commit/b1affd0)), closes [electron-userland/spectron#693](https://github.com/electron-userland/spectron/issues/693) 306 | * misc/ upgrade to Electron 10 & Angular 10.1 ([07786a2](https://github.com/maximegris/angular-electron/commit/07786a2)) 307 | 308 | 309 | 310 | ## 8.0.4 (2020-08-30) 311 | 312 | * [Bumped Version] 8.0.4 ([ac3682d](https://github.com/maximegris/angular-electron/commit/ac3682d)) 313 | * fix/ ng lint config ([753f828](https://github.com/maximegris/angular-electron/commit/753f828)) 314 | * fix/ README typo (e2e chapter) ([85aaf86](https://github.com/maximegris/angular-electron/commit/85aaf86)) 315 | * fix/ travis ci conf ([2632a2d](https://github.com/maximegris/angular-electron/commit/2632a2d)) 316 | * misc/ clarify node lib import ([f41ce65](https://github.com/maximegris/angular-electron/commit/f41ce65)) 317 | * misc/ upgrade Electron 10 ([b71c514](https://github.com/maximegris/angular-electron/commit/b71c514)) 318 | * ref/ clean custom webpack target ('electron-renderer' or 'web') ([e3a4e01](https://github.com/maximegris/angular-electron/commit/e3a4e01)) 319 | * Update README.md ([5cf5e2b](https://github.com/maximegris/angular-electron/commit/5cf5e2b)) 320 | * Update README.md ([0b70270](https://github.com/maximegris/angular-electron/commit/0b70270)) 321 | 322 | 323 | 324 | ## 8.0.3 (2020-08-12) 325 | 326 | * [Bumped Version] 8.0.2 ([84598a5](https://github.com/maximegris/angular-electron/commit/84598a5)) 327 | * [Bumped Version] 8.0.3 ([00ce410](https://github.com/maximegris/angular-electron/commit/00ce410)) 328 | * fix/ e2e tests with Spectron ([472afc8](https://github.com/maximegris/angular-electron/commit/472afc8)) 329 | * fix/ require error with nodeIntegration = false ([61c5c6b](https://github.com/maximegris/angular-electron/commit/61c5c6b)) 330 | * misc/ Upgrade Angular (10.0.9) and Electron (9.2.0) ([e3d2fca](https://github.com/maximegris/angular-electron/commit/e3d2fca)) 331 | 332 | 333 | 334 | ## 8.0.1 (2020-08-12) 335 | 336 | * [Bumped Version] 8.0.1 ([e032729](https://github.com/maximegris/angular-electron/commit/e032729)) 337 | * fix/ eslint on main.ts file ([4b17ab6](https://github.com/maximegris/angular-electron/commit/4b17ab6)) 338 | * misc/ remove warinng npm start ( tsconfg.app include key) ([8a73b4a](https://github.com/maximegris/angular-electron/commit/8a73b4a)) 339 | * misc/ upgrade Angular ([a1ef40d](https://github.com/maximegris/angular-electron/commit/a1ef40d)) 340 | 341 | 342 | 343 | ## 8.0.0 (2020-07-13) 344 | 345 | * [Bumped Version] 8.0.0 ([78a4c9e](https://github.com/maximegris/angular-electron/commit/78a4c9e)) 346 | * added "style" key to "schematics" ([6f5bbc5](https://github.com/maximegris/angular-electron/commit/6f5bbc5)) 347 | * Create FUNDING.yml ([087570a](https://github.com/maximegris/angular-electron/commit/087570a)) 348 | * misc/ update README (Angular & Electron version) ([2d33b15](https://github.com/maximegris/angular-electron/commit/2d33b15)) 349 | * ref/ Upgrade to Angular 10.3 & Electron 9.1 ([84f0519](https://github.com/maximegris/angular-electron/commit/84f0519)) 350 | * Update README.md ([11d0a17](https://github.com/maximegris/angular-electron/commit/11d0a17)) 351 | 352 | 353 | 354 | ## 7.2.1 (2020-06-20) 355 | 356 | * [Bumped Version] 7.2.1 ([cabd11e](https://github.com/maximegris/angular-electron/commit/cabd11e)) 357 | * ref/ keep only 1 eslint config ([e942747](https://github.com/maximegris/angular-electron/commit/e942747)) 358 | 359 | 360 | 361 | ## 7.2.0 (2020-06-20) 362 | 363 | * [Bumped Version] 7.2.0 ([a98a84a](https://github.com/maximegris/angular-electron/commit/a98a84a)) 364 | * feat/ merge electron-builder npm scripts ([ddd92b3](https://github.com/maximegris/angular-electron/commit/ddd92b3)) 365 | * fix/ ng lint with eslint ([92d7419](https://github.com/maximegris/angular-electron/commit/92d7419)) 366 | * misc/ upgrade Electron (9.0.4) / Angular (9.1.11) ([21f7401](https://github.com/maximegris/angular-electron/commit/21f7401)) 367 | * ref/ electron remote deprecated ([a8628fc](https://github.com/maximegris/angular-electron/commit/a8628fc)) 368 | 369 | 370 | 371 | ## 7.1.0 (2020-05-02) 372 | 373 | * [Bumped Version] 7.1.0 ([8dffcea](https://github.com/maximegris/angular-electron/commit/8dffcea)) 374 | * feat/ VSCode : add Debugging config for man process (#465) + Karma ([acc62d9](https://github.com/maximegris/angular-electron/commit/acc62d9)), closes [#465](https://github.com/maximegris/angular-electron/issues/465) 375 | * fix/ Karma configuration to debug easily ([273e752](https://github.com/maximegris/angular-electron/commit/273e752)) 376 | 377 | 378 | 379 | ## 7.0.5 (2020-04-26) 380 | 381 | * [Bumped Version] 7.0.5 ([63eed52](https://github.com/maximegris/angular-electron/commit/63eed52)) 382 | * Upgrade Angular 9.1.3 & Electron 8.2.3 ([00b9d43](https://github.com/maximegris/angular-electron/commit/00b9d43)) 383 | 384 | 385 | 386 | ## 7.0.4 (2020-04-20) 387 | 388 | * [Bumped Version] 7.0.4 ([dbce7a0](https://github.com/maximegris/angular-electron/commit/dbce7a0)) 389 | * ref/ make app reloading/working with and without usehash routing strategy ([386ce67](https://github.com/maximegris/angular-electron/commit/386ce67)) 390 | * Transparent background issue fix for Linux ([4c0c169](https://github.com/maximegris/angular-electron/commit/4c0c169)) 391 | 392 | 393 | 394 | ## 7.0.3 (2020-04-11) 395 | 396 | * [Bumped Version] 7.0.2 ([c4c36f6](https://github.com/maximegris/angular-electron/commit/c4c36f6)) 397 | * [Bumped Version] 7.0.3 ([6206066](https://github.com/maximegris/angular-electron/commit/6206066)) 398 | * Fix a typo in README.md ([86ac910](https://github.com/maximegris/angular-electron/commit/86ac910)) 399 | * fix/ polyfills in tsconfig ([cf4f172](https://github.com/maximegris/angular-electron/commit/cf4f172)) 400 | * misc/ changelog ([19f6027](https://github.com/maximegris/angular-electron/commit/19f6027)) 401 | * misc/ Changelog ([67437ba](https://github.com/maximegris/angular-electron/commit/67437ba)) 402 | * misc/ maj angular 9.1.1 & electron 8.2.1 ([061e01e](https://github.com/maximegris/angular-electron/commit/061e01e)) 403 | * misc/ maj eslint dep ([09fc1f7](https://github.com/maximegris/angular-electron/commit/09fc1f7)) 404 | * moved all app icons to assets/icons folder ([7d6bb69](https://github.com/maximegris/angular-electron/commit/7d6bb69)) 405 | * ref/ set allowRendererProcessReuse to true ([7c5c43b](https://github.com/maximegris/angular-electron/commit/7c5c43b)) 406 | 407 | 408 | 409 | ## 7.0.1 (2020-02-22) 410 | 411 | * [Bumped Version] 7.0.1 ([7a84ca0](https://github.com/maximegris/angular-electron/commit/7a84ca0)) 412 | * fix/ README dependencies version ([7276d96](https://github.com/maximegris/angular-electron/commit/7276d96)) 413 | * misc/ upgrade Angular 9.0.2 & Electron 8.0.1 ([174b36f](https://github.com/maximegris/angular-electron/commit/174b36f)) 414 | * ref/ travis test node 10 & 12 ([8b7ee5b](https://github.com/maximegris/angular-electron/commit/8b7ee5b)) 415 | 416 | 417 | 418 | ## 7.0.0 (2020-02-09) 419 | 420 | * [Bumped Version] 7.0.0 ([0f304d2](https://github.com/maximegris/angular-electron/commit/0f304d2)) 421 | * cast isElectron to boolean #429 ([ee06695](https://github.com/maximegris/angular-electron/commit/ee06695)), closes [#429](https://github.com/maximegris/angular-electron/issues/429) 422 | * feat/ update angular 8 deps ([7df49ff](https://github.com/maximegris/angular-electron/commit/7df49ff)) 423 | * feat/ update to Angular 9 & Electron 8 ([a304034](https://github.com/maximegris/angular-electron/commit/a304034)) 424 | * fix/ e2e tests ([395d2da](https://github.com/maximegris/angular-electron/commit/395d2da)) 425 | * hot reload note ([28e1854](https://github.com/maximegris/angular-electron/commit/28e1854)) 426 | * ref/ upgrade electron to v8 ([320ce2f](https://github.com/maximegris/angular-electron/commit/320ce2f)) 427 | 428 | 429 | 430 | ## 6.4.1 (2019-12-25) 431 | 432 | * feat/ update Electron (7.1.2) ([3d76ff5](https://github.com/maximegris/angular-electron/commit/3d76ff5)) 433 | * misc/ maj changelog ([eb46727](https://github.com/maximegris/angular-electron/commit/eb46727)) 434 | * reef/ update stale bot ([671b7c9](https://github.com/maximegris/angular-electron/commit/671b7c9)) 435 | * ref/ remove usunsed files ([9bf5824](https://github.com/maximegris/angular-electron/commit/9bf5824)) 436 | 437 | 438 | 439 | ## 6.4.0 (2019-11-19) 440 | 441 | * [Bumped Version] 6.4.0 ([fac9eef](https://github.com/maximegris/angular-electron/commit/fac9eef)) 442 | * #412 change selector of WebviewDirective ([76e7918](https://github.com/maximegris/angular-electron/commit/76e7918)), closes [#412](https://github.com/maximegris/angular-electron/issues/412) 443 | * eslint-migration ([7637f45](https://github.com/maximegris/angular-electron/commit/7637f45)) 444 | * eslint-migration - disable warnings/errors ([99e7ec0](https://github.com/maximegris/angular-electron/commit/99e7ec0)) 445 | * eslint-migration - fix removed translation import ([2f64f37](https://github.com/maximegris/angular-electron/commit/2f64f37)) 446 | * eslint-migration - remove tslint.json configuration ([3c1f9f6](https://github.com/maximegris/angular-electron/commit/3c1f9f6)) 447 | * karma-electron ([21f97fd](https://github.com/maximegris/angular-electron/commit/21f97fd)) 448 | * karma-electron - remove chrome deps for travis ([0f09907](https://github.com/maximegris/angular-electron/commit/0f09907)) 449 | * misc/ add npmrc ([9d94f9c](https://github.com/maximegris/angular-electron/commit/9d94f9c)) 450 | * misc/ typo README ([d52b03a](https://github.com/maximegris/angular-electron/commit/d52b03a)) 451 | * permissive eslint rules to remove linter warnings ([964b57f](https://github.com/maximegris/angular-electron/commit/964b57f)) 452 | * require is not defined ([632c454](https://github.com/maximegris/angular-electron/commit/632c454)) 453 | 454 | 455 | 456 | ## 6.3.1 (2019-11-01) 457 | 458 | * [Bumped Version] 6.3.1 ([671b6a3](https://github.com/maximegris/angular-electron/commit/671b6a3)) 459 | * #395 - require is not defined ([c4b2cb6](https://github.com/maximegris/angular-electron/commit/c4b2cb6)), closes [#395](https://github.com/maximegris/angular-electron/issues/395) 460 | * changelog ([39b0bca](https://github.com/maximegris/angular-electron/commit/39b0bca)) 461 | 462 | 463 | 464 | ## 6.3.0 (2019-10-25) 465 | 466 | * [Bumped Version] 6.3.0 ([09f9646](https://github.com/maximegris/angular-electron/commit/09f9646)) 467 | * misc/ change Electron version to 7.0.0 in README ([6a4e2de](https://github.com/maximegris/angular-electron/commit/6a4e2de)) 468 | * misc/ remove link to dependenciesci ([93d5a8c](https://github.com/maximegris/angular-electron/commit/93d5a8c)) 469 | * misc/ upgrade Electron 7 ([d732340](https://github.com/maximegris/angular-electron/commit/d732340)) 470 | 471 | 472 | 473 | ## 6.2.0 (2019-09-29) 474 | 475 | * [Bumped Version] 6.2.0 ([8838e0e](https://github.com/maximegris/angular-electron/commit/8838e0e)) 476 | * Maj Changelog ([bc4c950](https://github.com/maximegris/angular-electron/commit/bc4c950)) 477 | * misc/ add Stale to close unactive issues ([398bdf1](https://github.com/maximegris/angular-electron/commit/398bdf1)) 478 | * Upgrade Angular 8.2.8 & Electron 6.0.10 ([2ecda63](https://github.com/maximegris/angular-electron/commit/2ecda63)) 479 | 480 | 481 | 482 | ## 6.1.0 (2019-08-15) 483 | 484 | * [Bumped Version] 6.1.0 ([b47c594](https://github.com/maximegris/angular-electron/commit/b47c594)) 485 | * [DELETE]: vscode settings removed ([becc9b4](https://github.com/maximegris/angular-electron/commit/becc9b4)) 486 | * [UPDATE]: Typescript version fixes ([a284c23](https://github.com/maximegris/angular-electron/commit/a284c23)) 487 | * Angular src restructured as modular as per angular official guidelines, .travis.yml support added fo ([5983703](https://github.com/maximegris/angular-electron/commit/5983703)) 488 | * bump tslint & codelyzer versions, update tslint rules & alphabetize ([8425cdc](https://github.com/maximegris/angular-electron/commit/8425cdc)) 489 | * Corejs path updates ([88056d6](https://github.com/maximegris/angular-electron/commit/88056d6)) 490 | * Electron 6.0.0 ([1aef350](https://github.com/maximegris/angular-electron/commit/1aef350)) 491 | * fix/ Version Electron in README ([acf0d4f](https://github.com/maximegris/angular-electron/commit/acf0d4f)) 492 | * misc/ upgrade Angular 8.2 / Spectron 7 ([6e2211f](https://github.com/maximegris/angular-electron/commit/6e2211f)) 493 | * Update dependencies ([bd51f28](https://github.com/maximegris/angular-electron/commit/bd51f28)) 494 | 495 | 496 | 497 | ## 6.0.1 (2019-05-31) 498 | 499 | * [Bumped Version] 6.0.1 ([4f9cef3](https://github.com/maximegris/angular-electron/commit/4f9cef3)) 500 | * Add CI for macOS. ([3ba02e3](https://github.com/maximegris/angular-electron/commit/3ba02e3)) 501 | * ref/ strict version build-angular & zonejs ([5a24b56](https://github.com/maximegris/angular-electron/commit/5a24b56)) 502 | * ref/ strict version codelyzer ([6ede0c8](https://github.com/maximegris/angular-electron/commit/6ede0c8)) 503 | * Remove Node.js v12. ([ccbf6cd](https://github.com/maximegris/angular-electron/commit/ccbf6cd)) 504 | * Run CI for Node.js version 10 ([2538965](https://github.com/maximegris/angular-electron/commit/2538965)) 505 | * Use service xvfb. ([4db31e3](https://github.com/maximegris/angular-electron/commit/4db31e3)) 506 | 507 | 508 | 509 | ## 6.0.0 (2019-05-31) 510 | 511 | * [Bumped Version] 6.0.0 ([fb719ab](https://github.com/maximegris/angular-electron/commit/fb719ab)) 512 | * bump angular version ([7a564a0](https://github.com/maximegris/angular-electron/commit/7a564a0)) 513 | * Fix Travis CI link ([10aaa4c](https://github.com/maximegris/angular-electron/commit/10aaa4c)) 514 | * Not gitignore src/karma.conf.js ([7599320](https://github.com/maximegris/angular-electron/commit/7599320)) 515 | * ref/ upgrade Angular 8 and Electron 5 ([92334cf](https://github.com/maximegris/angular-electron/commit/92334cf)) 516 | * update versions and prepare for electron 5 ([07a5786](https://github.com/maximegris/angular-electron/commit/07a5786)) 517 | * version bump ([bb1d6bb](https://github.com/maximegris/angular-electron/commit/bb1d6bb)) 518 | * feat(CI): update Ubuntu and Node versions in Travis ([e0ff557](https://github.com/maximegris/angular-electron/commit/e0ff557)) 519 | * fix: type conflicts ([a2971bf](https://github.com/maximegris/angular-electron/commit/a2971bf)) 520 | * fix(e2e): add mocha types ([20e1e89](https://github.com/maximegris/angular-electron/commit/20e1e89)) 521 | * fix(e2e): without devTools ([2581983](https://github.com/maximegris/angular-electron/commit/2581983)), closes [/github.com/electron/spectron/issues/174#issuecomment-319242097](https://github.com//github.com/electron/spectron/issues/174/issues/issuecomment-319242097) 522 | * chore: Spectron for e2e tests ([901438a](https://github.com/maximegris/angular-electron/commit/901438a)) 523 | 524 | 525 | 526 | ## 5.1.0 (2018-11-30) 527 | 528 | * [Bumped Version] 5.1.0 ([b790e12](https://github.com/maximegris/angular-electron/commit/b790e12)) 529 | * fix/ typo Angular 7 ([fde371f](https://github.com/maximegris/angular-electron/commit/fde371f)) 530 | * fix/ typo README ([723233c](https://github.com/maximegris/angular-electron/commit/723233c)) 531 | * fix/ typo script npm electron:windows ([45bab44](https://github.com/maximegris/angular-electron/commit/45bab44)) 532 | * ref/ remve npx - fix vulnerabilities ([41aeb57](https://github.com/maximegris/angular-electron/commit/41aeb57)) 533 | * update README ([f146d5d](https://github.com/maximegris/angular-electron/commit/f146d5d)) 534 | 535 | 536 | 537 | ## 5.0.0 (2018-11-11) 538 | 539 | * Fix typos in README file ([0440ee9](https://github.com/maximegris/angular-electron/commit/0440ee9)) 540 | * ref/ Generate changelog ([a89b3ce](https://github.com/maximegris/angular-electron/commit/a89b3ce)) 541 | * ref/ Upgrade to Angular 7 ([315a79b](https://github.com/maximegris/angular-electron/commit/315a79b)) 542 | * Update electron-builder.json files rule ([82c7bcf](https://github.com/maximegris/angular-electron/commit/82c7bcf)) 543 | * Update Version Electron 2 to 3 #hacktoberfest ([f083328](https://github.com/maximegris/angular-electron/commit/f083328)) 544 | 545 | 546 | 547 | ## 4.2.2 (2018-08-22) 548 | 549 | * fix/ build serve & electron with single tsc command ([9106c8f](https://github.com/maximegris/angular-electron/commit/9106c8f)) 550 | * fix/ typo README ([a9448aa](https://github.com/maximegris/angular-electron/commit/a9448aa)) 551 | 552 | 553 | 554 | ## 4.2.1 (2018-08-22) 555 | 556 | * fix/ jslib in main process error ([ef33f5e](https://github.com/maximegris/angular-electron/commit/ef33f5e)) 557 | 558 | 559 | 560 | ## 4.2.0 (2018-08-19) 561 | 562 | * [Bumped Version] V4.2.0 ([0da3856](https://github.com/maximegris/angular-electron/commit/0da3856)) 563 | * 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) 564 | * Make sure tsconfig be used. ([961c8b1](https://github.com/maximegris/angular-electron/commit/961c8b1)) 565 | * ref/ remove some directories of tsconfig.app.json ([1adad4a](https://github.com/maximegris/angular-electron/commit/1adad4a)) 566 | * Upgrade Angular (6.1.2) deps ([d8818c1](https://github.com/maximegris/angular-electron/commit/d8818c1)) 567 | 568 | 569 | 570 | ## 4.1.0 (2018-06-27) 571 | 572 | * Allow Angular Using Electron Modules ([ec705ee](https://github.com/maximegris/angular-electron/commit/ec705ee)) 573 | * fix/ version angular (revert 6.0.6 -> 6.0.5) ([63a41b8](https://github.com/maximegris/angular-electron/commit/63a41b8)) 574 | * fix/ version ts-node ([0d8341a](https://github.com/maximegris/angular-electron/commit/0d8341a)) 575 | * ref/ postinstall web & electron ([50657d0](https://github.com/maximegris/angular-electron/commit/50657d0)) 576 | * update README ([1d48e32](https://github.com/maximegris/angular-electron/commit/1d48e32)) 577 | * feat(zone): add zone-patch-electron to patch Electron native APIs in polyfills ([01842e2](https://github.com/maximegris/angular-electron/commit/01842e2)) 578 | 579 | 580 | 581 | ## 4.0.0 (2018-05-25) 582 | 583 | * misc/ remove unused packages ([a7e33b6](https://github.com/maximegris/angular-electron/commit/a7e33b6)) 584 | * misc/ update Changelog ([b758122](https://github.com/maximegris/angular-electron/commit/b758122)) 585 | * ref/ upgrade angular to 6.0.3 ([e7fac6e](https://github.com/maximegris/angular-electron/commit/e7fac6e)) 586 | * refactor: update electron, electron-builder to latest (2.0.2, 20.14.7) ([f19e6ee](https://github.com/maximegris/angular-electron/commit/f19e6ee)) 587 | * refactor: upgrade to NodeJS 8, Angular 6, CLI 6, Electron 2.0, RxJS 6.1 ([e37efdb](https://github.com/maximegris/angular-electron/commit/e37efdb)) 588 | * refactor(hooks): replace hooks to ng-cli fileReplacements logic ([c940037](https://github.com/maximegris/angular-electron/commit/c940037)) 589 | * fix(test): create polyfills-test.ts for karma test & setup Travis CI ([7fbc68c](https://github.com/maximegris/angular-electron/commit/7fbc68c)) 590 | * fix(travis): set progress to false (speed up npm) ([be48531](https://github.com/maximegris/angular-electron/commit/be48531)) 591 | 592 | 593 | 594 | ## 3.4.1 (2018-05-25) 595 | 596 | * misc/ update changelog ([70b359f](https://github.com/maximegris/angular-electron/commit/70b359f)) 597 | * Modify electron builder configuration to remove source code and tests ([0cf6899](https://github.com/maximegris/angular-electron/commit/0cf6899)) 598 | * version 3.4.1 ([308ea9c](https://github.com/maximegris/angular-electron/commit/308ea9c)) 599 | 600 | 601 | 602 | ## 3.4.0 (2018-05-25) 603 | 604 | * misc/ update changelog ([7d5eeb3](https://github.com/maximegris/angular-electron/commit/7d5eeb3)) 605 | * ref/ remove contributors ([6dc97a1](https://github.com/maximegris/angular-electron/commit/6dc97a1)) 606 | * The file is unused ([05c9e39](https://github.com/maximegris/angular-electron/commit/05c9e39)) 607 | * Translation issue ([35354b1](https://github.com/maximegris/angular-electron/commit/35354b1)) 608 | * version 3.4.0 ([06d6b0f](https://github.com/maximegris/angular-electron/commit/06d6b0f)) 609 | 610 | 611 | 612 | ## 3.3.0 (2018-04-15) 613 | 614 | * add Changelog file ([71083f1](https://github.com/maximegris/angular-electron/commit/71083f1)) 615 | * fix/ typo README.md (production variables) ([a8c2b63](https://github.com/maximegris/angular-electron/commit/a8c2b63)) 616 | * version 3.3.0 ([a88bda6](https://github.com/maximegris/angular-electron/commit/a88bda6)) 617 | * version 3.3.0 changelog ([ddfbbf9](https://github.com/maximegris/angular-electron/commit/ddfbbf9)) 618 | 619 | 620 | 621 | ## 3.2.0 (2018-04-15) 622 | 623 | * 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) 624 | * fix/ app e2e spec ([8046b2a](https://github.com/maximegris/angular-electron/commit/8046b2a)) 625 | * Including electron to eliminate Electron not found err sg ([d78203f](https://github.com/maximegris/angular-electron/commit/d78203f)) 626 | * provide webFrame access ([6bd044e](https://github.com/maximegris/angular-electron/commit/6bd044e)) 627 | * ref/ add node/electron module import as exemple : fs and remote ([e3ad12d](https://github.com/maximegris/angular-electron/commit/e3ad12d)) 628 | * remove copyfiles ([9af5138](https://github.com/maximegris/angular-electron/commit/9af5138)) 629 | * update dependencies ([89963ab](https://github.com/maximegris/angular-electron/commit/89963ab)) 630 | * version 3.2.0 ([8dc69fa](https://github.com/maximegris/angular-electron/commit/8dc69fa)) 631 | 632 | 633 | 634 | ## 3.1.0 (2018-03-15) 635 | 636 | * 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)) 637 | * Fix to change environment ([448d68b](https://github.com/maximegris/angular-electron/commit/448d68b)) 638 | * version 3.1.0 ([f7c71e7](https://github.com/maximegris/angular-electron/commit/f7c71e7)) 639 | 640 | 641 | 642 | ## 3.0.1 (2018-03-07) 643 | 644 | * fix/ icon app ([22699ef](https://github.com/maximegris/angular-electron/commit/22699ef)) 645 | * version 3.0.1 ([5258ff1](https://github.com/maximegris/angular-electron/commit/5258ff1)) 646 | 647 | 648 | 649 | ## 3.0.0 (2018-02-25) 650 | 651 | * fix/ TranslateModule test ([7863aa9](https://github.com/maximegris/angular-electron/commit/7863aa9)) 652 | * Ng not ejected anymore ([67ab31c](https://github.com/maximegris/angular-electron/commit/67ab31c)) 653 | * pin all dependency versions ([0558d6a](https://github.com/maximegris/angular-electron/commit/0558d6a)) 654 | * update dependencies and fix unit tests ([4d3ca6e](https://github.com/maximegris/angular-electron/commit/4d3ca6e)) 655 | 656 | 657 | 658 | ## 2.7.1 (2018-02-15) 659 | 660 | * ref/ dernière version cli ([3df8158](https://github.com/maximegris/angular-electron/commit/3df8158)) 661 | * version 2.7.1 ([1ae6f7a](https://github.com/maximegris/angular-electron/commit/1ae6f7a)) 662 | 663 | 664 | 665 | ## 2.7.0 (2018-02-15) 666 | 667 | * Correction of a word. ([d6655c7](https://github.com/maximegris/angular-electron/commit/d6655c7)) 668 | * feat/ add webview directive ([e1b5600](https://github.com/maximegris/angular-electron/commit/e1b5600)) 669 | * migrate Angular to 5.2.0 ([b8cf343](https://github.com/maximegris/angular-electron/commit/b8cf343)) 670 | * ref/ Remove sponsor ([2a28239](https://github.com/maximegris/angular-electron/commit/2a28239)) 671 | * ref/ update angular & dep ([e3b1fab](https://github.com/maximegris/angular-electron/commit/e3b1fab)) 672 | * ref/ upgrade electron (security issue) ([f6a0c4e](https://github.com/maximegris/angular-electron/commit/f6a0c4e)) 673 | * version bump + logo resize ([3545d16](https://github.com/maximegris/angular-electron/commit/3545d16)) 674 | * 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) 675 | * 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) 676 | 677 | 678 | 679 | ## 2.4.1 (2017-12-14) 680 | 681 | * fix/ Manage icons for linux binary generation ([ccd0601](https://github.com/maximegris/angular-electron/commit/ccd0601)) 682 | * version 2.4.1 ([5fcfca0](https://github.com/maximegris/angular-electron/commit/5fcfca0)) 683 | 684 | 685 | 686 | ## 2.4.0 (2017-12-08) 687 | 688 | * Use HttpClientModule ([5704e2e](https://github.com/maximegris/angular-electron/commit/5704e2e)) 689 | * version 2.4.0 ([0437b33](https://github.com/maximegris/angular-electron/commit/0437b33)) 690 | 691 | 692 | 693 | ## 2.3.0 (2017-12-04) 694 | 695 | * add ngx translate ([facda37](https://github.com/maximegris/angular-electron/commit/facda37)) 696 | 697 | 698 | 699 | ## 2.2.0 (2017-11-28) 700 | 701 | * Brought back scripts defined in webpack.config.js ([441da3d](https://github.com/maximegris/angular-electron/commit/441da3d)) 702 | * migrate to Angular 5.0.3 ([f4bc5b2](https://github.com/maximegris/angular-electron/commit/f4bc5b2)) 703 | * Update LICENSE badge ([fa783aa](https://github.com/maximegris/angular-electron/commit/fa783aa)) 704 | * Update to electron-builder ([0e94b52](https://github.com/maximegris/angular-electron/commit/0e94b52)) 705 | 706 | 707 | 708 | ## 2.1.1 (2017-11-19) 709 | 710 | * Move codesponsor ([064be4c](https://github.com/maximegris/angular-electron/commit/064be4c)) 711 | 712 | 713 | 714 | ## 2.1.0 (2017-11-19) 715 | 716 | * Add codesponsor ([87e695d](https://github.com/maximegris/angular-electron/commit/87e695d)) 717 | * Add script for winportable ([2be2dae](https://github.com/maximegris/angular-electron/commit/2be2dae)) 718 | * Add support for building a Windows self-contained executable ([7cfa790](https://github.com/maximegris/angular-electron/commit/7cfa790)) 719 | * fix/ electron-packager need favicon >= 256x256 on Windows ([d2c253f](https://github.com/maximegris/angular-electron/commit/d2c253f)) 720 | * fix/ refact webpack config (inspired by ng eject Angular 5) ([d1c30ac](https://github.com/maximegris/angular-electron/commit/d1c30ac)) 721 | * fix/ replace aotPlugin in no prod mode ([a0caf1e](https://github.com/maximegris/angular-electron/commit/a0caf1e)) 722 | * fix/ Replace AotPlugin to AngularCompilerPlugin ([bef106e](https://github.com/maximegris/angular-electron/commit/bef106e)) 723 | * fix/ Update README Angular 5 ([93c6949](https://github.com/maximegris/angular-electron/commit/93c6949)) 724 | * fix/ webpack template path ([518b66b](https://github.com/maximegris/angular-electron/commit/518b66b)) 725 | * Mgrate to Angular 5.0.2 ([bd7bed6](https://github.com/maximegris/angular-electron/commit/bd7bed6)) 726 | * Update package.json ([b16cf73](https://github.com/maximegris/angular-electron/commit/b16cf73)) 727 | * Version 2.1.0 ([fccef2f](https://github.com/maximegris/angular-electron/commit/fccef2f)) 728 | 729 | 730 | 731 | ## 2.0.0 (2017-11-13) 732 | 733 | * Add buffer to externals ([7e797f0](https://github.com/maximegris/angular-electron/commit/7e797f0)) 734 | * Edit a typo on README ([956a2bc](https://github.com/maximegris/angular-electron/commit/956a2bc)) 735 | * 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) 736 | * 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) 737 | * License MIT ([73494b7](https://github.com/maximegris/angular-electron/commit/73494b7)) 738 | * Migrate to Angular 5 ([3a3ffe1](https://github.com/maximegris/angular-electron/commit/3a3ffe1)) 739 | 740 | 741 | 742 | ## 1.9.0 (2017-09-22) 743 | 744 | * feat/ launch electron & webpack in // (npm run start) ([8c37cc4](https://github.com/maximegris/angular-electron/commit/8c37cc4)) 745 | * ref/ Exclude node_modules (tslint) ([412a0a5](https://github.com/maximegris/angular-electron/commit/412a0a5)) 746 | 747 | 748 | 749 | ## 1.8.1 (2017-09-22) 750 | 751 | * ref/ add package-lock in gitignore ([4edd98d](https://github.com/maximegris/angular-electron/commit/4edd98d)) 752 | * remove package-lock ([8e98627](https://github.com/maximegris/angular-electron/commit/8e98627)) 753 | * upgrade angular version 4.4.3 ([10d0f87](https://github.com/maximegris/angular-electron/commit/10d0f87)) 754 | * version 1.8.1 ([70879d1](https://github.com/maximegris/angular-electron/commit/70879d1)) 755 | 756 | 757 | 758 | ## 1.8.0 (2017-09-09) 759 | 760 | * upgrade lib version ([2ac2aa0](https://github.com/maximegris/angular-electron/commit/2ac2aa0)) 761 | 762 | 763 | 764 | ## 1.7.0 (2017-08-18) 765 | 766 | * 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)) 767 | 768 | 769 | 770 | ## 1.6.1 (2017-07-27) 771 | 772 | * fix/ angular-cli error in prod compilation with aot ([c26a5ae](https://github.com/maximegris/angular-electron/commit/c26a5ae)) 773 | * version 1.6.1 ([899babd](https://github.com/maximegris/angular-electron/commit/899babd)) 774 | 775 | 776 | 777 | ## 1.6.0 (2017-07-16) 778 | 779 | * ajout package-lock npm v5 ([09c0840](https://github.com/maximegris/angular-electron/commit/09c0840)) 780 | * Change background img ([7e58717](https://github.com/maximegris/angular-electron/commit/7e58717)) 781 | * Fix npm run build:prod ([c23bade](https://github.com/maximegris/angular-electron/commit/c23bade)) 782 | * 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) 783 | * fix/ e2e test with jasmine2 ([9c51f32](https://github.com/maximegris/angular-electron/commit/9c51f32)) 784 | * fix/ typescript issues ([bb0a6ab](https://github.com/maximegris/angular-electron/commit/bb0a6ab)) 785 | * increment version deps ([bde452c](https://github.com/maximegris/angular-electron/commit/bde452c)) 786 | * Revert last pull request - break production compilation ([ccc9064](https://github.com/maximegris/angular-electron/commit/ccc9064)) 787 | * upgrade angular version to 4.3.0 ([ab16959](https://github.com/maximegris/angular-electron/commit/ab16959)) 788 | 789 | 790 | 791 | ## 1.5.0 (2017-06-10) 792 | 793 | * fix/ karma Unit test ([ea13d6d](https://github.com/maximegris/angular-electron/commit/ea13d6d)) 794 | * fix/ remove yarn because of error with module dep in prod builds ([8a49a45](https://github.com/maximegris/angular-electron/commit/8a49a45)) 795 | * update yarn lock ([18c0e62](https://github.com/maximegris/angular-electron/commit/18c0e62)) 796 | 797 | 798 | 799 | ## 1.4.4 (2017-06-08) 800 | 801 | * fix/ Fix npm run lint ([db7972a](https://github.com/maximegris/angular-electron/commit/db7972a)) 802 | * ref/ electron ./dist more generic ([7e71add](https://github.com/maximegris/angular-electron/commit/7e71add)) 803 | * Replace const icon to let icon ([dadf65f](https://github.com/maximegris/angular-electron/commit/dadf65f)) 804 | 805 | 806 | 807 | ## 1.4.3 (2017-06-06) 808 | 809 | * fix/ favicon path during packaging ([aa2b012](https://github.com/maximegris/angular-electron/commit/aa2b012)) 810 | * remove build node 8 till node-sass failed ([34f201d](https://github.com/maximegris/angular-electron/commit/34f201d)) 811 | * v1.4.3 ([4961fb0](https://github.com/maximegris/angular-electron/commit/4961fb0)) 812 | 813 | 814 | 815 | ## 1.4.2 (2017-05-31) 816 | 817 | * Change dep versions ([62d08d3](https://github.com/maximegris/angular-electron/commit/62d08d3)) 818 | * install npm dep when building ([56948d0](https://github.com/maximegris/angular-electron/commit/56948d0)) 819 | * Minor update ([5f282b7](https://github.com/maximegris/angular-electron/commit/5f282b7)) 820 | * No hot reload in browser ([7892f0d](https://github.com/maximegris/angular-electron/commit/7892f0d)) 821 | * update Electron v1.6.10 ([f2f2080](https://github.com/maximegris/angular-electron/commit/f2f2080)) 822 | * upgrade ng/electron dependencies ([78b0f27](https://github.com/maximegris/angular-electron/commit/78b0f27)) 823 | * chore(package): bump dependencies ([b62c7b6](https://github.com/maximegris/angular-electron/commit/b62c7b6)) 824 | 825 | 826 | 827 | ## 1.4.0 (2017-05-23) 828 | 829 | * 1.4.0 ([23213c4](https://github.com/maximegris/angular-electron/commit/23213c4)) 830 | * Change style home page ([93dcc52](https://github.com/maximegris/angular-electron/commit/93dcc52)) 831 | * Fixed compiler warnings ([fca6b15](https://github.com/maximegris/angular-electron/commit/fca6b15)) 832 | * ref/ electron main from js to ts ([835d32b](https://github.com/maximegris/angular-electron/commit/835d32b)) 833 | * Remove caret & tilde ([dd98155](https://github.com/maximegris/angular-electron/commit/dd98155)) 834 | 835 | 836 | 837 | ## 1.3.5 (2017-05-18) 838 | 839 | * Add new tags ([cd07a86](https://github.com/maximegris/angular-electron/commit/cd07a86)) 840 | * v 1.3.5 ([d528a71](https://github.com/maximegris/angular-electron/commit/d528a71)) 841 | 842 | 843 | 844 | ## 1.3.4 (2017-05-12) 845 | 846 | * feat/ add nodejs native lib in webpack config ([27d9bc6](https://github.com/maximegris/angular-electron/commit/27d9bc6)) 847 | * Fix issue #15 ([d77cbf1](https://github.com/maximegris/angular-electron/commit/d77cbf1)), closes [#15](https://github.com/maximegris/angular-electron/issues/15) 848 | * Ref/ Electron packager in external file ([17b04e8](https://github.com/maximegris/angular-electron/commit/17b04e8)) 849 | * version 1.3.4 ([374af16](https://github.com/maximegris/angular-electron/commit/374af16)) 850 | 851 | 852 | 853 | ## 1.3.3 (2017-05-10) 854 | 855 | * Chapters order ([a772b9c](https://github.com/maximegris/angular-electron/commit/a772b9c)) 856 | * Chapters order ([06547e5](https://github.com/maximegris/angular-electron/commit/06547e5)) 857 | * Delete spec file of electron.service ([083498e](https://github.com/maximegris/angular-electron/commit/083498e)) 858 | * Fix issue #15 ([e7cd6e6](https://github.com/maximegris/angular-electron/commit/e7cd6e6)), closes [#15](https://github.com/maximegris/angular-electron/issues/15) 859 | * Move Browser mode chapter ([8818750](https://github.com/maximegris/angular-electron/commit/8818750)) 860 | * Version 1.3.3 ([f4db75b](https://github.com/maximegris/angular-electron/commit/f4db75b)) 861 | 862 | 863 | 864 | ## 1.3.2 (2017-05-05) 865 | 866 | * Add comments of how conditional import works ([e6c1b3b](https://github.com/maximegris/angular-electron/commit/e6c1b3b)) 867 | * Conditional import of Electron/NodeJS libs - The app can be launch in browser mode ([c434f8a](https://github.com/maximegris/angular-electron/commit/c434f8a)) 868 | * Fix indentation ([6a9836a](https://github.com/maximegris/angular-electron/commit/6a9836a)) 869 | * Fix prepree2e script ([b2af4fd](https://github.com/maximegris/angular-electron/commit/b2af4fd)) 870 | * Set e2e tests ([d223974](https://github.com/maximegris/angular-electron/commit/d223974)) 871 | * Suround electron browser by try/catch ([88be472](https://github.com/maximegris/angular-electron/commit/88be472)) 872 | * Update @types/node ([9d43304](https://github.com/maximegris/angular-electron/commit/9d43304)) 873 | * Update readme with e2e info ([01bbf13](https://github.com/maximegris/angular-electron/commit/01bbf13)) 874 | * update version ([0849a0a](https://github.com/maximegris/angular-electron/commit/0849a0a)) 875 | 876 | 877 | 878 | ## 1.3.1 (2017-05-05) 879 | 880 | * Add routing module ([7334ce8](https://github.com/maximegris/angular-electron/commit/7334ce8)) 881 | * Fixed hardcoded path in glob copy, blocking assets after eject ([815d519](https://github.com/maximegris/angular-electron/commit/815d519)) 882 | * update comments in dev/prod env files ([7cf6a51](https://github.com/maximegris/angular-electron/commit/7cf6a51)) 883 | * Version 1.3.1 ([f18ac77](https://github.com/maximegris/angular-electron/commit/f18ac77)) 884 | 885 | 886 | 887 | ## 1.3.0 (2017-05-01) 888 | 889 | * Fix webpack prod/dev env ([8549da1](https://github.com/maximegris/angular-electron/commit/8549da1)) 890 | 891 | 892 | 893 | ## 1.2.1 (2017-04-30) 894 | 895 | * allowJs ([4efd188](https://github.com/maximegris/angular-electron/commit/4efd188)) 896 | * Example url background in scss ([3705a35](https://github.com/maximegris/angular-electron/commit/3705a35)) 897 | * Fix electron build (extract-zip workaround) ([a7ee90e](https://github.com/maximegris/angular-electron/commit/a7ee90e)) 898 | * Fix webpack config url in css ([cea4be5](https://github.com/maximegris/angular-electron/commit/cea4be5)) 899 | * html loader ([c55558a](https://github.com/maximegris/angular-electron/commit/c55558a)) 900 | * update version 1.2.1 ([78e8da7](https://github.com/maximegris/angular-electron/commit/78e8da7)) 901 | 902 | 903 | 904 | ## 1.2.0 (2017-04-19) 905 | 906 | * Set one example of css class in app component ([a15775f](https://github.com/maximegris/angular-electron/commit/a15775f)) 907 | * Update npm dependencies ([0a93ebe](https://github.com/maximegris/angular-electron/commit/0a93ebe)) 908 | 909 | 910 | 911 | ## 1.1.2 (2017-04-18) 912 | 913 | * Fix typo & fix script electron:mac ([bd06859](https://github.com/maximegris/angular-electron/commit/bd06859)) 914 | * Set theme jekyll-theme-architect ([644d857](https://github.com/maximegris/angular-electron/commit/644d857)) 915 | * update README ([97fa63d](https://github.com/maximegris/angular-electron/commit/97fa63d)) 916 | * update README ([23fc0a9](https://github.com/maximegris/angular-electron/commit/23fc0a9)) 917 | * update README ([a8dcf6a](https://github.com/maximegris/angular-electron/commit/a8dcf6a)) 918 | * v1.1.2 ([e29e467](https://github.com/maximegris/angular-electron/commit/e29e467)) 919 | 920 | 921 | 922 | ## 1.1.1 (2017-04-12) 923 | 924 | * Fix webpack.config file path (travisci) ([a172df9](https://github.com/maximegris/angular-electron/commit/a172df9)) 925 | * live reload on disk ([7bb2f8b](https://github.com/maximegris/angular-electron/commit/7bb2f8b)) 926 | * Remove unused dependency (webpack-dev-server) ([e9150f4](https://github.com/maximegris/angular-electron/commit/e9150f4)) 927 | 928 | 929 | 930 | ## 1.1.0 (2017-04-12) 931 | 932 | * add depdencies CI & Licence ([6ceb0f2](https://github.com/maximegris/angular-electron/commit/6ceb0f2)) 933 | * Override webpack configuration ([60d6116](https://github.com/maximegris/angular-electron/commit/60d6116)) 934 | 935 | 936 | 937 | ## 1.0.3 (2017-04-07) 938 | 939 | * Add TravisCI ([e5640fd](https://github.com/maximegris/angular-electron/commit/e5640fd)) 940 | * v1.0.3 ([9866d53](https://github.com/maximegris/angular-electron/commit/9866d53)) 941 | 942 | 943 | 944 | ## 1.0.2 (2017-04-07) 945 | 946 | * Add TravisCI ([ef4b80e](https://github.com/maximegris/angular-electron/commit/ef4b80e)) 947 | * Fix typo ([f964c3f](https://github.com/maximegris/angular-electron/commit/f964c3f)) 948 | * Fix typo ([e42bb5e](https://github.com/maximegris/angular-electron/commit/e42bb5e)) 949 | * Update README ([3bb45b3](https://github.com/maximegris/angular-electron/commit/3bb45b3)) 950 | * Update README with angular-cli doc ([5a57578](https://github.com/maximegris/angular-electron/commit/5a57578)) 951 | * v1.0.2 ([1bd8e0e](https://github.com/maximegris/angular-electron/commit/1bd8e0e)) 952 | 953 | 954 | 955 | ## 1.0.1 (2017-04-03) 956 | 957 | * feat/ Add electron-packager scripts ([57891dc](https://github.com/maximegris/angular-electron/commit/57891dc)) 958 | * ref/ update README ([7fddc20](https://github.com/maximegris/angular-electron/commit/7fddc20)) 959 | * update README ([9a983c1](https://github.com/maximegris/angular-electron/commit/9a983c1)) 960 | * v1.0.0 ([7a21eb9](https://github.com/maximegris/angular-electron/commit/7a21eb9)) 961 | * v1.0.1 ([68275a3](https://github.com/maximegris/angular-electron/commit/68275a3)) 962 | * chore: initial commit from @angular/cli ([616a69e](https://github.com/maximegris/angular-electron/commit/616a69e)) 963 | 964 | 965 | 966 | -------------------------------------------------------------------------------- /CODE_OF_CONDUCT.md: -------------------------------------------------------------------------------- 1 | # Contributor Covenant Code of Conduct 2 | 3 | ## Our Pledge 4 | 5 | We as members, contributors, and leaders pledge to make participation in our 6 | community a harassment-free experience for everyone, regardless of age, body 7 | size, visible or invisible disability, ethnicity, sex characteristics, gender 8 | identity and expression, level of experience, education, socio-economic status, 9 | nationality, personal appearance, race, religion, or sexual identity 10 | and orientation. 11 | 12 | We pledge to act and interact in ways that contribute to an open, welcoming, 13 | diverse, inclusive, and healthy community. 14 | 15 | ## Our Standards 16 | 17 | Examples of behavior that contributes to a positive environment for our 18 | community include: 19 | 20 | * Demonstrating empathy and kindness toward other people 21 | * Being respectful of differing opinions, viewpoints, and experiences 22 | * Giving and gracefully accepting constructive feedback 23 | * Accepting responsibility and apologizing to those affected by our mistakes, 24 | and learning from the experience 25 | * Focusing on what is best not just for us as individuals, but for the 26 | overall community 27 | 28 | Examples of unacceptable behavior include: 29 | 30 | * The use of sexualized language or imagery, and sexual attention or 31 | advances of any kind 32 | * Trolling, insulting or derogatory comments, and personal or political attacks 33 | * Public or private harassment 34 | * Publishing others' private information, such as a physical or email 35 | address, without their explicit permission 36 | * Other conduct which could reasonably be considered inappropriate in a 37 | professional setting 38 | 39 | ## Enforcement Responsibilities 40 | 41 | Community leaders are responsible for clarifying and enforcing our standards of 42 | acceptable behavior and will take appropriate and fair corrective action in 43 | response to any behavior that they deem inappropriate, threatening, offensive, 44 | or harmful. 45 | 46 | Community leaders have the right and responsibility to remove, edit, or reject 47 | comments, commits, code, wiki edits, issues, and other contributions that are 48 | not aligned to this Code of Conduct, and will communicate reasons for moderation 49 | decisions when appropriate. 50 | 51 | ## Scope 52 | 53 | This Code of Conduct applies within all community spaces, and also applies when 54 | an individual is officially representing the community in public spaces. 55 | Examples of representing our community include using an official e-mail address, 56 | posting via an official social media account, or acting as an appointed 57 | representative at an online or offline event. 58 | 59 | ## Enforcement 60 | 61 | Instances of abusive, harassing, or otherwise unacceptable behavior may be 62 | reported to the community leaders responsible for enforcement at 63 | maxime.gris@gmail.com. 64 | All complaints will be reviewed and investigated promptly and fairly. 65 | 66 | All community leaders are obligated to respect the privacy and security of the 67 | reporter of any incident. 68 | 69 | ## Enforcement Guidelines 70 | 71 | Community leaders will follow these Community Impact Guidelines in determining 72 | the consequences for any action they deem in violation of this Code of Conduct: 73 | 74 | ### 1. Correction 75 | 76 | **Community Impact**: Use of inappropriate language or other behavior deemed 77 | unprofessional or unwelcome in the community. 78 | 79 | **Consequence**: A private, written warning from community leaders, providing 80 | clarity around the nature of the violation and an explanation of why the 81 | behavior was inappropriate. A public apology may be requested. 82 | 83 | ### 2. Warning 84 | 85 | **Community Impact**: A violation through a single incident or series 86 | of actions. 87 | 88 | **Consequence**: A warning with consequences for continued behavior. No 89 | interaction with the people involved, including unsolicited interaction with 90 | those enforcing the Code of Conduct, for a specified period of time. This 91 | includes avoiding interactions in community spaces as well as external channels 92 | like social media. Violating these terms may lead to a temporary or 93 | permanent ban. 94 | 95 | ### 3. Temporary Ban 96 | 97 | **Community Impact**: A serious violation of community standards, including 98 | sustained inappropriate behavior. 99 | 100 | **Consequence**: A temporary ban from any sort of interaction or public 101 | communication with the community for a specified period of time. No public or 102 | private interaction with the people involved, including unsolicited interaction 103 | with those enforcing the Code of Conduct, is allowed during this period. 104 | Violating these terms may lead to a permanent ban. 105 | 106 | ### 4. Permanent Ban 107 | 108 | **Community Impact**: Demonstrating a pattern of violation of community 109 | standards, including sustained inappropriate behavior, harassment of an 110 | individual, or aggression toward or disparagement of classes of individuals. 111 | 112 | **Consequence**: A permanent ban from any sort of public interaction within 113 | the community. 114 | 115 | ## Attribution 116 | 117 | This Code of Conduct is adapted from the [Contributor Covenant][homepage], 118 | version 2.0, available at 119 | https://www.contributor-covenant.org/version/2/0/code_of_conduct.html. 120 | 121 | Community Impact Guidelines were inspired by [Mozilla's code of conduct 122 | enforcement ladder](https://github.com/mozilla/diversity). 123 | 124 | [homepage]: https://www.contributor-covenant.org 125 | 126 | For answers to common questions about this code of conduct, see the FAQ at 127 | https://www.contributor-covenant.org/faq. Translations are available at 128 | https://www.contributor-covenant.org/translations. 129 | -------------------------------------------------------------------------------- /HOW_TO.md: -------------------------------------------------------------------------------- 1 | ###*First check it exists a version of your library compatible with the version of Angular defined in package.json.* 2 | 3 | ### How to install ng-bootstrap 4 | 5 | ``` bash 6 | ng add @ng-bootstrap/ng-bootstrap 7 | ``` 8 | 9 | ### How to install ngx-bootstrap 10 | 11 | ``` bash 12 | ng add ngx-bootstrap 13 | ``` 14 | 15 | ### How to install Angular Material 16 | 17 | Replace temporarily custom builders by default ones in `angular.json` 18 | 19 | @angular-builders/custom-webpack:browser => @angular-devkit/build-angular:browser \ 20 | @angular-builders/custom-webpack:dev-server => @angular-devkit/build-angular:dev-server 21 | 22 | Add Angular Material using `ng add` command: 23 | 24 | ``` bash 25 | ng add @angular/material 26 | ``` 27 | You will get the following questions: 28 | 29 | ``` bash 30 | ? Choose a prebuilt theme name, or "custom" for a custom theme: *Choose any theme you like here* 31 | ? Set up global Angular Material typography styles? *Yes* 32 | ? Set up browser animations for Angular Material? *Do not include / error if you choose Include* 33 | ``` 34 | Angular Material Library is now installed in your project. 35 | 36 | Put back custom builders in `angular.json` 37 | 38 | @angular-devkit/build-angular:browser => @angular-builders/custom-webpack:browser \ 39 | @angular-devkit/build-angular:dev-server => @angular-builders/custom-webpack:dev-server 40 | -------------------------------------------------------------------------------- /LICENSE.md: -------------------------------------------------------------------------------- 1 | Copyright 2020 - Maxime GRIS 2 | 3 | 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: 4 | 5 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 6 | 7 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 8 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | [![Angular Logo](https://www.vectorlogo.zone/logos/angular/angular-icon.svg)](https://angular.io/) [![Electron Logo](https://www.vectorlogo.zone/logos/electronjs/electronjs-icon.svg)](https://electronjs.org/) 2 | 3 | ![Maintained][maintained-badge] 4 | [![Make a pull request][prs-badge]][prs] 5 | [![License][license-badge]](LICENSE.md) 6 | 7 | [![Linux Build][linux-build-badge]][linux-build] 8 | [![MacOS Build][macos-build-badge]][macos-build] 9 | [![Windows Build][windows-build-badge]][windows-build] 10 | 11 | [![Watch on GitHub][github-watch-badge]][github-watch] 12 | [![Star on GitHub][github-star-badge]][github-star] 13 | [![Tweet][twitter-badge]][twitter] 14 | 15 | # Introduction 16 | 17 | Bootstrap and package your project with Angular 19 and Electron 36 (Typescript + SASS + Hot Reload) for creating Desktop applications. 18 | 19 | Currently runs with: 20 | 21 | - Angular v19.2.14 22 | - Electron v36.0.0 23 | 24 | With this sample, you can: 25 | 26 | - Run your app in a local development environment with Electron & Hot reload 27 | - Run your app in a production environment 28 | - Execute your tests with Jest and Playwright (E2E) 29 | - Package your app into an executable file for Linux, Windows & Mac 30 | 31 | /!\ Hot reload only pertains to the renderer process. The main electron process is not able to be hot reloaded, only restarted. 32 | 33 | /!\ Angular CLI & Electron Builder needs Node 18.10 or later to work correctly. 34 | 35 | ## Getting Started 36 | 37 | *Clone this repository locally:* 38 | 39 | ``` bash 40 | git clone https://github.com/maximegris/angular-electron.git 41 | ``` 42 | 43 | *Install dependencies with npm (used by Electron renderer process):* 44 | 45 | ``` bash 46 | npm install 47 | ``` 48 | 49 | There is an issue with `yarn` and `node_modules` when the application is built by the packager. Please use `npm` as dependencies manager. 50 | 51 | If you want to generate Angular components with Angular-cli , you **MUST** install `@angular/cli` in npm global context. 52 | Please follow [Angular-cli documentation](https://github.com/angular/angular-cli) if you had installed a previous version of `angular-cli`. 53 | 54 | ``` bash 55 | npm install -g @angular/cli 56 | ``` 57 | 58 | *Install NodeJS dependencies with npm (used by Electron main process):* 59 | 60 | ``` bash 61 | cd app/ 62 | npm install 63 | ``` 64 | 65 | Why two package.json ? This project follow [Electron Builder two package.json structure](https://www.electron.build/tutorials/two-package-structure) in order to optimize final bundle and be still able to use Angular `ng add` feature. 66 | 67 | ## To build for development 68 | 69 | - **in a terminal window** -> npm start 70 | 71 | Voila! You can use your Angular + Electron app in a local development environment with hot reload! 72 | 73 | The application code is managed by `app/main.ts`. In this sample, the app runs with a simple Angular App (http://localhost:4200), and an Electron window. \ 74 | The Angular component contains an example of Electron and NodeJS native lib import. \ 75 | You can disable "Developer Tools" by commenting `win.webContents.openDevTools();` in `app/main.ts`. 76 | 77 | ## Project structure 78 | 79 | | Folder | Description | 80 | |--------|--------------------------------------------------| 81 | | app | Electron main process folder (NodeJS) | 82 | | src | Electron renderer process folder (Web / Angular) | 83 | 84 | ## How to import 3rd party libraries 85 | 86 | This sample project runs in both modes (web and electron). To make this work, **you have to import your dependencies the right way**. \ 87 | 88 | There are two kind of 3rd party libraries : 89 | - NodeJS's one - Uses NodeJS core module (crypto, fs, util...) 90 | - I suggest you add this kind of 3rd party library in `dependencies` of both `app/package.json` and `package.json (root folder)` in order to make it work in both Electron's Main process (app folder) and Electron's Renderer process (src folder). 91 | 92 | Please check `providers/electron.service.ts` to watch how conditional import of libraries has to be done when using NodeJS / 3rd party libraries in renderer context (i.e. Angular). 93 | 94 | - Web's one (like bootstrap, material, tailwind...) 95 | - It have to be added in `dependencies` of `package.json (root folder)` 96 | 97 | ## Add a dependency with ng-add 98 | 99 | You may encounter some difficulties with `ng-add` because this project doesn't use the defaults `@angular-builders`. \ 100 | For example you can find [here](HOW_TO.md) how to install Angular-Material with `ng-add`. 101 | 102 | ## Browser mode 103 | 104 | Maybe you only want to execute the application in the browser with hot reload? Just run `npm run ng:serve:web`. 105 | 106 | ## Included Commands 107 | 108 | | Command | Description | 109 | |--------------------------|-------------------------------------------------------------------------------------------------------| 110 | | `npm run ng:serve` | Execute the app in the web browser (DEV mode) | 111 | | `npm run web:build` | Build the app that can be used directly in the web browser. Your built files are in the /dist folder. | 112 | | `npm run electron:local` | Builds your application and start electron locally | 113 | | `npm run electron:build` | Builds your application and creates an app consumable based on your operating system | 114 | 115 | **Your application is optimised. Only /dist folder and NodeJS dependencies are included in the final bundle.** 116 | 117 | ## You want to use a specific lib (like rxjs) in electron main thread ? 118 | 119 | YES! You can do it! Just by importing your library in npm dependencies section of `app/package.json` with `npm install --save XXXXX`. \ 120 | It will be loaded by electron during build phase and added to your final bundle. \ 121 | Then use your library by importing it in `app/main.ts` file. Quite simple, isn't it? 122 | 123 | ## E2E Testing 124 | 125 | E2E Test scripts can be found in `e2e` folder. 126 | 127 | | Command | Description | 128 | |---------------|---------------------------| 129 | | `npm run e2e` | Execute end to end tests | 130 | 131 | Note: To make it work behind a proxy, you can add this proxy exception in your terminal 132 | `export {no_proxy,NO_PROXY}="127.0.0.1,localhost"` 133 | 134 | ## Debug with VsCode 135 | 136 | [VsCode](https://code.visualstudio.com/) debug configuration is available! In order to use it, you need the extension [Debugger for Chrome](https://marketplace.visualstudio.com/items?itemName=msjsdiag.debugger-for-chrome). 137 | 138 | Then set some breakpoints in your application's source code. 139 | 140 | Finally from VsCode press **Ctrl+Shift+D** and select **Application Debug** and press **F5**. 141 | 142 | Please note that Hot reload is only available in Renderer process. 143 | 144 | ## Want to use Angular Material ? Ngx-Bootstrap ? 145 | 146 | Please refer to [HOW_TO file](./HOW_TO.md) 147 | 148 | ## Branch & Packages version 149 | 150 | - Angular 4 & Electron 1 : Branch [angular4](https://github.com/maximegris/angular-electron/tree/angular4) 151 | - Angular 5 & Electron 1 : Branch [angular5](https://github.com/maximegris/angular-electron/tree/angular5) 152 | - Angular 6 & Electron 3 : Branch [angular6](https://github.com/maximegris/angular-electron/tree/angular6) 153 | - Angular 7 & Electron 3 : Branch [angular7](https://github.com/maximegris/angular-electron/tree/angular7) 154 | - Angular 8 & Electron 7 : Branch [angular8](https://github.com/maximegris/angular-electron/tree/angular8) 155 | - Angular 9 & Electron 7 : Branch [angular9](https://github.com/maximegris/angular-electron/tree/angular9) 156 | - Angular 10 & Electron 9 : Branch [angular10](https://github.com/maximegris/angular-electron/tree/angular10) 157 | - Angular 11 & Electron 12 : Branch [angular11](https://github.com/maximegris/angular-electron/tree/angular11) 158 | - Angular 12 & Electron 16 : Branch [angular12](https://github.com/maximegris/angular-electron/tree/angular12) 159 | - Angular 13 & Electron 18 : Branch [angular13](https://github.com/maximegris/angular-electron/tree/angular13) 160 | - Angular 14 & Electron 21 : Branch [angular14](https://github.com/maximegris/angular-electron/tree/angular14) 161 | - Angular 15 & Electron 24 : Branch [angular15](https://github.com/maximegris/angular-electron/tree/angular15) 162 | - Angular 16 & Electron 25 : Branch [angular16](https://github.com/maximegris/angular-electron/tree/angular16) 163 | - Angular 17 & Electron 30 : Branch [angular17](https://github.com/maximegris/angular-electron/tree/angular17) 164 | - Angular 19 & Electron 36 : (main) 165 | 166 | [maintained-badge]: https://img.shields.io/badge/maintained-yes-brightgreen 167 | [license-badge]: https://img.shields.io/badge/license-MIT-blue.svg 168 | [license]: https://github.com/maximegris/angular-electron/blob/main/LICENSE.md 169 | [prs-badge]: https://img.shields.io/badge/PRs-welcome-red.svg 170 | [prs]: http://makeapullrequest.com 171 | 172 | [linux-build-badge]: https://github.com/maximegris/angular-electron/workflows/Linux%20Build/badge.svg 173 | [linux-build]: https://github.com/maximegris/angular-electron/actions?query=workflow%3A%22Linux+Build%22 174 | [macos-build-badge]: https://github.com/maximegris/angular-electron/workflows/MacOS%20Build/badge.svg 175 | [macos-build]: https://github.com/maximegris/angular-electron/actions?query=workflow%3A%22MacOS+Build%22 176 | [windows-build-badge]: https://github.com/maximegris/angular-electron/workflows/Windows%20Build/badge.svg 177 | [windows-build]: https://github.com/maximegris/angular-electron/actions?query=workflow%3A%22Windows+Build%22 178 | 179 | [github-watch-badge]: https://img.shields.io/github/watchers/maximegris/angular-electron.svg?style=social 180 | [github-watch]: https://github.com/maximegris/angular-electron/watchers 181 | [github-star-badge]: https://img.shields.io/github/stars/maximegris/angular-electron.svg?style=social 182 | [github-star]: https://github.com/maximegris/angular-electron/stargazers 183 | [twitter]: https://twitter.com/intent/tweet?text=Check%20out%20angular-electron!%20https://github.com/maximegris/angular-electron%20%F0%9F%91%8D 184 | [twitter-badge]: https://img.shields.io/twitter/url/https/github.com/maximegris/angular-electron.svg?style=social 185 | -------------------------------------------------------------------------------- /_config.yml: -------------------------------------------------------------------------------- 1 | theme: jekyll-theme-architect -------------------------------------------------------------------------------- /angular.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "./node_modules/@angular/cli/lib/config/schema.json", 3 | "cli": { 4 | "schematicCollections": [ 5 | "@angular-eslint/schematics" 6 | ] 7 | }, 8 | "version": 1, 9 | "newProjectRoot": "projects", 10 | "projects": { 11 | "angular-electron": { 12 | "root": "", 13 | "sourceRoot": "src", 14 | "projectType": "application", 15 | "schematics": { 16 | "@schematics/angular:application": { 17 | "strict": true 18 | }, 19 | "@schematics/angular:component": { 20 | "style": "scss" 21 | } 22 | }, 23 | "prefix": "app", 24 | "architect": { 25 | "build": { 26 | "builder": "@angular-builders/custom-webpack:browser", 27 | "options": { 28 | "outputPath": "dist", 29 | "index": "src/index.html", 30 | "main": "src/main.ts", 31 | "tsConfig": "src/tsconfig.app.json", 32 | "polyfills": "src/polyfills.ts", 33 | "inlineStyleLanguage": "scss", 34 | "assets": [ 35 | "src/favicon.ico", 36 | "src/assets" 37 | ], 38 | "styles": [ 39 | "src/styles.scss" 40 | ], 41 | "scripts": [], 42 | "customWebpackConfig": { 43 | "path": "./angular.webpack.js", 44 | "replaceDuplicatePlugins": true 45 | } 46 | }, 47 | "configurations": { 48 | "dev": { 49 | "optimization": false, 50 | "outputHashing": "none", 51 | "sourceMap": true, 52 | "namedChunks": false, 53 | "aot": false, 54 | "extractLicenses": true, 55 | "vendorChunk": false, 56 | "buildOptimizer": false, 57 | "fileReplacements": [ 58 | { 59 | "replace": "src/environments/environment.ts", 60 | "with": "src/environments/environment.dev.ts" 61 | } 62 | ] 63 | }, 64 | "production": { 65 | "optimization": true, 66 | "outputHashing": "all", 67 | "sourceMap": false, 68 | "namedChunks": false, 69 | "aot": true, 70 | "extractLicenses": true, 71 | "vendorChunk": false, 72 | "buildOptimizer": true, 73 | "fileReplacements": [ 74 | { 75 | "replace": "src/environments/environment.ts", 76 | "with": "src/environments/environment.prod.ts" 77 | } 78 | ] 79 | }, 80 | "web": { 81 | "optimization": false, 82 | "outputHashing": "none", 83 | "sourceMap": true, 84 | "namedChunks": false, 85 | "aot": false, 86 | "extractLicenses": true, 87 | "vendorChunk": false, 88 | "buildOptimizer": false, 89 | "fileReplacements": [ 90 | { 91 | "replace": "src/environments/environment.ts", 92 | "with": "src/environments/environment.web.ts" 93 | } 94 | ] 95 | }, 96 | "web-production": { 97 | "optimization": true, 98 | "outputHashing": "all", 99 | "sourceMap": false, 100 | "namedChunks": false, 101 | "aot": true, 102 | "extractLicenses": true, 103 | "vendorChunk": false, 104 | "buildOptimizer": true, 105 | "fileReplacements": [ 106 | { 107 | "replace": "src/environments/environment.ts", 108 | "with": "src/environments/environment.web.prod.ts" 109 | } 110 | ] 111 | } 112 | } 113 | }, 114 | "serve": { 115 | "builder": "@angular-builders/custom-webpack:dev-server", 116 | "options": { 117 | "buildTarget": "angular-electron:build" 118 | }, 119 | "configurations": { 120 | "dev": { 121 | "buildTarget": "angular-electron:build:dev" 122 | }, 123 | "production": { 124 | "buildTarget": "angular-electron:build:production" 125 | }, 126 | "web": { 127 | "buildTarget": "angular-electron:build:web" 128 | }, 129 | "web-production": { 130 | "buildTarget": "angular-electron:build:web-production" 131 | } 132 | } 133 | }, 134 | "extract-i18n": { 135 | "builder": "@angular/build:extract-i18n", 136 | "options": { 137 | "buildTarget": "angular-electron:build" 138 | } 139 | }, 140 | "test": { 141 | "builder": "@angular-builders/jest:run", 142 | "options": { 143 | "polyfills": ["src/polyfills-test.ts"], 144 | "tsConfig": "src/tsconfig.spec.json", 145 | "globalMocks": ["styleTransform", "matchMedia", "getComputedStyle"] 146 | } 147 | }, 148 | "lint": { 149 | "builder": "@angular-eslint/builder:lint", 150 | "options": { 151 | "lintFilePatterns": [ 152 | "src/**/*.ts", 153 | "src/**/*.html" 154 | ] 155 | } 156 | } 157 | } 158 | }, 159 | "angular-electron-e2e": { 160 | "root": "e2e", 161 | "projectType": "application", 162 | "architect": { 163 | "lint": { 164 | "builder": "@angular-eslint/builder:lint", 165 | "options": { 166 | "lintFilePatterns": [ 167 | "e2e/**/*.ts" 168 | ] 169 | } 170 | } 171 | } 172 | } 173 | }, 174 | "schematics": { 175 | "@angular-eslint/schematics:application": { 176 | "setParserOptionsProject": true 177 | }, 178 | "@angular-eslint/schematics:library": { 179 | "setParserOptionsProject": true 180 | } 181 | } 182 | } 183 | -------------------------------------------------------------------------------- /angular.webpack.js: -------------------------------------------------------------------------------- 1 | //Polyfill Node.js core modules in Webpack. This module is only needed for webpack 5+. 2 | const NodePolyfillPlugin = require("node-polyfill-webpack-plugin"); 3 | 4 | /** 5 | * Custom angular webpack configuration 6 | */ 7 | module.exports = (config, options) => { 8 | config.target = 'electron-renderer'; 9 | 10 | if (options.fileReplacements) { 11 | for(let fileReplacement of options.fileReplacements) { 12 | if (fileReplacement.replace !== 'src/environments/environment.ts') { 13 | continue; 14 | } 15 | 16 | let fileReplacementParts = fileReplacement['with'].split('.'); 17 | if (fileReplacementParts.length > 1 && ['web'].indexOf(fileReplacementParts[1]) >= 0) { 18 | config.target = 'web'; 19 | } 20 | break; 21 | } 22 | } 23 | 24 | config.plugins = [ 25 | ...config.plugins, 26 | new NodePolyfillPlugin({ 27 | excludeAliases: ["console"] 28 | }) 29 | ]; 30 | 31 | return config; 32 | } 33 | -------------------------------------------------------------------------------- /app/main.ts: -------------------------------------------------------------------------------- 1 | import {app, BrowserWindow, screen} from 'electron'; 2 | import * as path from 'path'; 3 | import * as fs from 'fs'; 4 | 5 | let win: BrowserWindow | null = null; 6 | const args = process.argv.slice(1), 7 | serve = args.some(val => val === '--serve'); 8 | 9 | function createWindow(): BrowserWindow { 10 | 11 | const size = screen.getPrimaryDisplay().workAreaSize; 12 | 13 | // Create the browser window. 14 | win = new BrowserWindow({ 15 | x: 0, 16 | y: 0, 17 | width: size.width, 18 | height: size.height, 19 | webPreferences: { 20 | nodeIntegration: true, 21 | allowRunningInsecureContent: serve, 22 | contextIsolation: false, 23 | webSecurity: !serve 24 | }, 25 | }); 26 | 27 | if (serve) { 28 | import('electron-debug').then(debug => { 29 | debug.default({isEnabled: true, showDevTools: true}); 30 | }); 31 | 32 | import('electron-reloader').then(reloader => { 33 | const reloaderFn = (reloader as any).default || reloader; 34 | reloaderFn(module); 35 | }); 36 | win.loadURL('http://localhost:4200'); 37 | } else { 38 | // Path when running electron executable 39 | let pathIndex = './index.html'; 40 | 41 | if (fs.existsSync(path.join(__dirname, '../dist/index.html'))) { 42 | // Path when running electron in local folder 43 | pathIndex = '../dist/index.html'; 44 | } 45 | 46 | const fullPath = path.join(__dirname, pathIndex); 47 | const url = `file://${path.resolve(fullPath).replace(/\\/g, '/')}`; 48 | win.loadURL(url); 49 | } 50 | 51 | // Emitted when the window is closed. 52 | win.on('closed', () => { 53 | // Dereference the window object, usually you would store window 54 | // in an array if your app supports multi windows, this is the time 55 | // when you should delete the corresponding element. 56 | win = null; 57 | }); 58 | 59 | return win; 60 | } 61 | 62 | try { 63 | // This method will be called when Electron has finished 64 | // initialization and is ready to create browser windows. 65 | // Some APIs can only be used after this event occurs. 66 | // Added 400 ms to fix the black background issue while using transparent window. More detais at https://github.com/electron/electron/issues/15947 67 | app.on('ready', () => setTimeout(createWindow, 400)); 68 | 69 | // Quit when all windows are closed. 70 | app.on('window-all-closed', () => { 71 | // On OS X it is common for applications and their menu bar 72 | // to stay active until the user quits explicitly with Cmd + Q 73 | if (process.platform !== 'darwin') { 74 | app.quit(); 75 | } 76 | }); 77 | 78 | app.on('activate', () => { 79 | // On OS X it's common to re-create a window in the app when the 80 | // dock icon is clicked and there are no other windows open. 81 | if (win === null) { 82 | createWindow(); 83 | } 84 | }); 85 | 86 | } catch (e) { 87 | // Catch Error 88 | // throw e; 89 | } 90 | -------------------------------------------------------------------------------- /app/package-lock.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "angular-electron", 3 | "version": "15.0.0", 4 | "lockfileVersion": 2, 5 | "requires": true, 6 | "packages": { 7 | "": { 8 | "name": "angular-electron", 9 | "version": "15.0.0" 10 | } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /app/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "angular-electron", 3 | "description": "Angular Electron sample", 4 | "author": { 5 | "name": "Maxime GRIS", 6 | "email": "maxime.gris@gmail.com" 7 | }, 8 | "version": "15.0.0", 9 | "main": "main.js", 10 | "private": true, 11 | "dependencies": { 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /e2e/main.spec.ts: -------------------------------------------------------------------------------- 1 | import { BrowserContext, ElectronApplication, Page, _electron as electron } from 'playwright'; 2 | import { test, expect } from '@playwright/test'; 3 | import * as PATH from 'path'; 4 | 5 | test.describe('Check Home Page', () => { 6 | let app: ElectronApplication; 7 | let firstWindow: Page; 8 | let context: BrowserContext; 9 | 10 | test.beforeAll( async () => { 11 | app = await electron.launch({ args: [PATH.join(__dirname, '../app/main.js'), PATH.join(__dirname, '../app/package.json')] }); 12 | context = app.context(); 13 | await context.tracing.start({ screenshots: true, snapshots: true }); 14 | firstWindow = await app.firstWindow(); 15 | await firstWindow.waitForLoadState('domcontentloaded'); 16 | }); 17 | 18 | test('Launch electron app', async () => { 19 | 20 | const windowState: { isVisible: boolean; isDevToolsOpened: boolean; isCrashed: boolean } = await app.evaluate(async (process) => { 21 | const mainWindow = process.BrowserWindow.getAllWindows()[0]; 22 | 23 | const getState = () => ({ 24 | isVisible: mainWindow.isVisible(), 25 | isDevToolsOpened: mainWindow.webContents.isDevToolsOpened(), 26 | isCrashed: mainWindow.webContents.isCrashed(), 27 | }); 28 | 29 | return new Promise((resolve) => { 30 | if (mainWindow.isVisible()) { 31 | resolve(getState()); 32 | } else { 33 | mainWindow.once('ready-to-show', () => setTimeout(() => resolve(getState()), 0)); 34 | } 35 | }); 36 | }); 37 | 38 | expect(windowState.isVisible).toBeTruthy(); 39 | expect(windowState.isDevToolsOpened).toBeFalsy(); 40 | expect(windowState.isCrashed).toBeFalsy(); 41 | }); 42 | 43 | // test('Check Home Page design', async ({ browserName}) => { 44 | // // Uncomment if you change the design of Home Page in order to create a new screenshot 45 | // const screenshot = await firstWindow.screenshot({ path: '/tmp/home.png' }); 46 | // expect(screenshot).toMatchSnapshot(`home-${browserName}.png`); 47 | // }); 48 | 49 | test('Check title', async () => { 50 | const elem = await firstWindow.$('app-home h1'); 51 | const text = elem ? await elem.innerText() : null; 52 | expect(text).toBe('App works !'); 53 | }); 54 | 55 | test.afterAll( async () => { 56 | await context.tracing.stop({ path: 'e2e/tracing/trace.zip' }); 57 | await app.close(); 58 | }); 59 | }); 60 | -------------------------------------------------------------------------------- /e2e/playwright.config.ts: -------------------------------------------------------------------------------- 1 | /** @type {import('@playwright/test').PlaywrightTestConfig} */ 2 | const config = { 3 | testDir: '.', 4 | timeout: 45000, 5 | outputDir: './screenshots', 6 | use: { 7 | headless: false, 8 | viewport: { width: 1280, height: 720 }, 9 | launchOptions: { 10 | slowMo: 1000, 11 | }, 12 | trace: 'on', 13 | }, 14 | expect: { 15 | toMatchSnapshot: { threshold: 0.2 }, 16 | }, 17 | }; 18 | 19 | // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access 20 | module.exports = config; 21 | -------------------------------------------------------------------------------- /e2e/tsconfig.e2e.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../tsconfig.json", 3 | "compilerOptions": { 4 | "outDir": "../out-tsc/e2e", 5 | "module": "commonjs", 6 | "types": [ 7 | "node" 8 | ] 9 | }, 10 | "include": [ 11 | "**.spec.ts" 12 | ], 13 | } 14 | -------------------------------------------------------------------------------- /electron-builder.json: -------------------------------------------------------------------------------- 1 | { 2 | "asar": true, 3 | "directories": { 4 | "output": "release/" 5 | }, 6 | "files": [ 7 | "**/*", 8 | "!**/*.ts", 9 | "!*.map", 10 | "!package.json", 11 | "!package-lock.json", 12 | { 13 | "from": "../dist", 14 | "filter": ["**/*"] 15 | } 16 | ], 17 | "win": { 18 | "icon": "dist/assets/icons", 19 | "target": [ 20 | "portable" 21 | ] 22 | }, 23 | "portable": { 24 | "splashImage": "dist/assets/icons/electron.bmp" 25 | }, 26 | "mac": { 27 | "icon": "dist/assets/icons", 28 | "target": [ 29 | "dmg" 30 | ] 31 | }, 32 | "linux": { 33 | "icon": "dist/assets/icons", 34 | "target": [ 35 | "AppImage" 36 | ] 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /jest.config.js: -------------------------------------------------------------------------------- 1 | const esModules = [].join('|'); 2 | 3 | module.exports = { 4 | rootDir : './src', 5 | transformIgnorePatterns: [`/node_modules/(?!${esModules})`], 6 | transform: { 7 | '^.+\\.tsx?$': [ 8 | 'ts-jest', 9 | { 10 | allowSyntheticDefaultImports: true, 11 | }, 12 | ], 13 | '^.+\\.js$': 'babel-jest', 14 | }, 15 | }; 16 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "angular-electron", 3 | "version": "15.0.0", 4 | "description": "Angular 19 with Electron 36 (Typescript + SASS + Hot Reload)", 5 | "homepage": "https://github.com/maximegris/angular-electron", 6 | "author": { 7 | "name": "Maxime GRIS", 8 | "email": "maxime.gris@gmail.com" 9 | }, 10 | "keywords": [ 11 | "angular", 12 | "angular 19", 13 | "electron", 14 | "electron 36", 15 | "nodejs", 16 | "typescript", 17 | "jest", 18 | "playwright", 19 | "eslint", 20 | "sass", 21 | "windows", 22 | "mac", 23 | "linux" 24 | ], 25 | "main": "app/main.js", 26 | "private": true, 27 | "scripts": { 28 | "postinstall": "electron-builder install-app-deps", 29 | "ng": "ng", 30 | "start": "npm-run-all -p electron:serve ng:serve", 31 | "ng:serve": "ng serve -c web -o", 32 | "build": "npm run electron:serve-tsc && ng build --base-href ./", 33 | "build:dev": "npm run build -- -c dev", 34 | "build:prod": "npm run build -- -c production", 35 | "web:build": "npm run build -- -c web-production", 36 | "electron": "electron", 37 | "electron:serve-tsc": "tsc -p tsconfig.serve.json", 38 | "electron:serve": "wait-on tcp:4200 && npm run electron:serve-tsc && electron . --serve", 39 | "electron:local": "npm run build:dev && electron .", 40 | "electron:build": "npm run build:prod && electron-builder build --publish=never", 41 | "test": "ng test --watch=false", 42 | "test:watch": "ng test", 43 | "e2e": "npm run build:prod && playwright test -c e2e/playwright.config.ts e2e/", 44 | "e2e:show-trace": "playwright show-trace e2e/tracing/trace.zip", 45 | "version": "conventional-changelog -i CHANGELOG.md -s -r 0 && git add CHANGELOG.md", 46 | "lint": "ng lint" 47 | }, 48 | "dependencies": { 49 | "@angular/common": "19.2.14", 50 | "@angular/compiler": "19.2.14", 51 | "@angular/core": "19.2.14", 52 | "@angular/forms": "19.2.14", 53 | "@angular/language-service": "19.2.14", 54 | "@angular/platform-browser": "19.2.14", 55 | "@angular/platform-browser-dynamic": "19.2.14", 56 | "@angular/router": "19.2.14", 57 | "rxjs": "7.8.1", 58 | "tslib": "2.6.2", 59 | "zone.js": "0.15.1" 60 | }, 61 | "devDependencies": { 62 | "@angular-builders/custom-webpack": "19.0.1", 63 | "@angular-builders/jest": "19.0.1", 64 | "@angular-eslint/builder": "19.7.1", 65 | "@angular-eslint/eslint-plugin": "19.7.1", 66 | "@angular-eslint/eslint-plugin-template": "19.7.1", 67 | "@angular-eslint/schematics": "19.7.1", 68 | "@angular-eslint/template-parser": "19.7.1", 69 | "@angular/build": "^19.2.14", 70 | "@angular/cli": "19.2.14", 71 | "@angular/compiler-cli": "19.2.14", 72 | "@ngx-translate/core": "16.0.4", 73 | "@ngx-translate/http-loader": "16.0.1", 74 | "@playwright/test": "1.52.0", 75 | "@types/jest": "29.5.14", 76 | "@types/node": "22.15.29", 77 | "@typescript-eslint/eslint-plugin": "8.33.1", 78 | "@typescript-eslint/parser": "8.33.1", 79 | "conventional-changelog-cli": "4.1.0", 80 | "electron": "36.4.0", 81 | "electron-builder": "26.0.12", 82 | "electron-debug": "4.1.0", 83 | "electron-reloader": "1.2.3", 84 | "eslint": "9.28.0", 85 | "eslint-plugin-import": "2.31.0", 86 | "eslint-plugin-jsdoc": "50.7.1", 87 | "eslint-plugin-prefer-arrow": "1.2.3", 88 | "jest": "29.7.0", 89 | "node-polyfill-webpack-plugin": "4.1.0", 90 | "npm-run-all": "4.1.5", 91 | "playwright": "1.52.0", 92 | "ts-node": "10.9.2", 93 | "typescript": "5.8.3", 94 | "wait-on": "7.2.0", 95 | "webdriver-manager": "12.1.9" 96 | }, 97 | "engines": { 98 | "node": ">= 22.12.0 >= 24.0.0", 99 | "typescript": ">= 5.8.0 < 5.9.0" 100 | }, 101 | "browserslist": [ 102 | "chrome 136" 103 | ] 104 | } 105 | -------------------------------------------------------------------------------- /src/app/app.component.html: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /src/app/app.component.scss: -------------------------------------------------------------------------------- 1 | :host { 2 | 3 | } -------------------------------------------------------------------------------- /src/app/app.component.spec.ts: -------------------------------------------------------------------------------- 1 | import {TestBed, waitForAsync} from '@angular/core/testing'; 2 | import {AppComponent} from './app.component'; 3 | import {TranslateModule} from '@ngx-translate/core'; 4 | import {ElectronService} from './core/services'; 5 | import {provideRouter} from '@angular/router'; 6 | 7 | describe('AppComponent', () => { 8 | beforeEach(waitForAsync(() => { 9 | void TestBed.configureTestingModule({ 10 | declarations: [], 11 | imports: [AppComponent, TranslateModule.forRoot()], 12 | providers: [provideRouter([]), ElectronService] 13 | }).compileComponents(); 14 | })); 15 | 16 | it('should create the app', waitForAsync(() => { 17 | const fixture = TestBed.createComponent(AppComponent); 18 | const app = fixture.debugElement.componentInstance; 19 | expect(app).toBeTruthy(); 20 | })); 21 | }); 22 | -------------------------------------------------------------------------------- /src/app/app.component.ts: -------------------------------------------------------------------------------- 1 | import { Component } from '@angular/core'; 2 | import { ElectronService } from './core/services'; 3 | import { TranslateService } from '@ngx-translate/core'; 4 | import { APP_CONFIG } from '../environments/environment'; 5 | import { RouterOutlet } from '@angular/router'; 6 | 7 | @Component({ 8 | selector: 'app-root', 9 | templateUrl: './app.component.html', 10 | styleUrls: ['./app.component.scss'], 11 | standalone: true, 12 | imports: [RouterOutlet] 13 | }) 14 | export class AppComponent { 15 | constructor( 16 | private electronService: ElectronService, 17 | private translate: TranslateService 18 | ) { 19 | this.translate.setDefaultLang('en'); 20 | console.log('APP_CONFIG', APP_CONFIG); 21 | 22 | if (electronService.isElectron) { 23 | console.log(process.env); 24 | console.log('Run in electron'); 25 | console.log('Electron ipcRenderer', this.electronService.ipcRenderer); 26 | console.log('NodeJS childProcess', this.electronService.childProcess); 27 | } else { 28 | console.log('Run in browser'); 29 | } 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /src/app/core/core.module.ts: -------------------------------------------------------------------------------- 1 | import { NgModule } from '@angular/core'; 2 | import { CommonModule } from '@angular/common'; 3 | 4 | @NgModule({ 5 | declarations: [], 6 | imports: [ 7 | CommonModule 8 | ] 9 | }) 10 | export class CoreModule { } 11 | -------------------------------------------------------------------------------- /src/app/core/services/electron/electron.service.spec.ts: -------------------------------------------------------------------------------- 1 | import {TestBed, waitForAsync} from '@angular/core/testing'; 2 | 3 | import { ElectronService } from './electron.service'; 4 | 5 | describe('ElectronService', () => { 6 | beforeEach(waitForAsync(() => TestBed.configureTestingModule({}))); 7 | 8 | it('should be created', () => { 9 | const service: ElectronService = TestBed.get(ElectronService); 10 | expect(service).toBeTruthy(); 11 | }); 12 | }); 13 | -------------------------------------------------------------------------------- /src/app/core/services/electron/electron.service.ts: -------------------------------------------------------------------------------- 1 | import { Injectable } from '@angular/core'; 2 | 3 | // If you import a module but never use any of the imported values other than as TypeScript types, 4 | // the resulting javascript file will look as if you never imported the module at all. 5 | import { ipcRenderer, webFrame } from 'electron'; 6 | import * as childProcess from 'child_process'; 7 | import * as fs from 'fs'; 8 | 9 | @Injectable({ 10 | providedIn: 'root' 11 | }) 12 | export class ElectronService { 13 | ipcRenderer!: typeof ipcRenderer; 14 | webFrame!: typeof webFrame; 15 | childProcess!: typeof childProcess; 16 | fs!: typeof fs; 17 | 18 | constructor() { 19 | // Conditional imports 20 | if (this.isElectron) { 21 | this.ipcRenderer = (window as any).require('electron').ipcRenderer; 22 | this.webFrame = (window as any).require('electron').webFrame; 23 | 24 | this.fs = (window as any).require('fs'); 25 | 26 | this.childProcess = (window as any).require('child_process'); 27 | this.childProcess.exec('node -v', (error, stdout, stderr) => { 28 | if (error) { 29 | console.error(`error: ${error.message}`); 30 | return; 31 | } 32 | if (stderr) { 33 | console.error(`stderr: ${stderr}`); 34 | return; 35 | } 36 | console.log(`stdout:\n${stdout}`); 37 | }); 38 | 39 | // Notes : 40 | // * A NodeJS's dependency imported with 'window.require' MUST BE present in `dependencies` of both `app/package.json` 41 | // and `package.json (root folder)` in order to make it work here in Electron's Renderer process (src folder) 42 | // because it will loaded at runtime by Electron. 43 | // * A NodeJS's dependency imported with TS module import (ex: import { Dropbox } from 'dropbox') CAN only be present 44 | // in `dependencies` of `package.json (root folder)` because it is loaded during build phase and does not need to be 45 | // in the final bundle. Reminder : only if not used in Electron's Main process (app folder) 46 | 47 | // If you want to use a NodeJS 3rd party deps in Renderer process, 48 | // ipcRenderer.invoke can serve many common use cases. 49 | // https://www.electronjs.org/docs/latest/api/ipc-renderer#ipcrendererinvokechannel-args 50 | } 51 | } 52 | 53 | get isElectron(): boolean { 54 | return !!(window && window.process && window.process.type); 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /src/app/core/services/index.ts: -------------------------------------------------------------------------------- 1 | export * from './electron/electron.service'; 2 | -------------------------------------------------------------------------------- /src/app/detail/detail.component.html: -------------------------------------------------------------------------------- 1 |
2 |

3 | {{ 'PAGES.DETAIL.TITLE' | translate }} 4 |

5 | 6 | {{ 'PAGES.DETAIL.BACK_TO_HOME' | translate }} 7 |
8 | -------------------------------------------------------------------------------- /src/app/detail/detail.component.scss: -------------------------------------------------------------------------------- 1 | :host { 2 | 3 | } -------------------------------------------------------------------------------- /src/app/detail/detail.component.spec.ts: -------------------------------------------------------------------------------- 1 | import {ComponentFixture, TestBed, waitForAsync} from '@angular/core/testing'; 2 | 3 | import {DetailComponent} from './detail.component'; 4 | import {TranslateModule} from '@ngx-translate/core'; 5 | import {provideRouter} from '@angular/router'; 6 | 7 | describe('DetailComponent', () => { 8 | let component: DetailComponent; 9 | let fixture: ComponentFixture; 10 | 11 | beforeEach(waitForAsync(() => { 12 | void TestBed.configureTestingModule({ 13 | declarations: [], 14 | imports: [DetailComponent, TranslateModule.forRoot()], 15 | providers: [provideRouter([])] 16 | }).compileComponents(); 17 | 18 | fixture = TestBed.createComponent(DetailComponent); 19 | component = fixture.componentInstance; 20 | fixture.detectChanges(); 21 | })); 22 | 23 | it('should create', () => { 24 | expect(component).toBeTruthy(); 25 | }); 26 | 27 | it('should render title in a h1 tag', waitForAsync(() => { 28 | const compiled = fixture.debugElement.nativeElement; 29 | expect(compiled.querySelector('h1').textContent).toContain( 30 | 'PAGES.DETAIL.TITLE' 31 | ); 32 | })); 33 | }); 34 | -------------------------------------------------------------------------------- /src/app/detail/detail.component.ts: -------------------------------------------------------------------------------- 1 | import { Component, OnInit } from '@angular/core'; 2 | import { RouterLink } from '@angular/router'; 3 | import { TranslateModule } from '@ngx-translate/core'; 4 | 5 | @Component({ 6 | selector: 'app-detail', 7 | templateUrl: './detail.component.html', 8 | styleUrls: ['./detail.component.scss'], 9 | standalone: true, 10 | imports: [RouterLink, TranslateModule] 11 | }) 12 | export class DetailComponent implements OnInit { 13 | 14 | constructor() { } 15 | 16 | ngOnInit(): void { 17 | console.log('DetailComponent INIT'); 18 | } 19 | 20 | } 21 | -------------------------------------------------------------------------------- /src/app/home/home.component.html: -------------------------------------------------------------------------------- 1 |
2 |

3 | {{ 'PAGES.HOME.TITLE' | translate }} 4 |

5 | 6 | {{ 'PAGES.HOME.GO_TO_DETAIL' | translate }} 7 |
8 | -------------------------------------------------------------------------------- /src/app/home/home.component.scss: -------------------------------------------------------------------------------- 1 | :host { 2 | 3 | } -------------------------------------------------------------------------------- /src/app/home/home.component.spec.ts: -------------------------------------------------------------------------------- 1 | import {ComponentFixture, TestBed, waitForAsync} from '@angular/core/testing'; 2 | 3 | import {HomeComponent} from './home.component'; 4 | import {TranslateModule} from '@ngx-translate/core'; 5 | import {provideRouter} from '@angular/router'; 6 | 7 | describe('HomeComponent', () => { 8 | let component: HomeComponent; 9 | let fixture: ComponentFixture; 10 | 11 | beforeEach(waitForAsync(() => { 12 | void TestBed.configureTestingModule({ 13 | declarations: [], 14 | imports: [HomeComponent, TranslateModule.forRoot()], 15 | providers: [provideRouter([])] 16 | }).compileComponents(); 17 | 18 | fixture = TestBed.createComponent(HomeComponent); 19 | component = fixture.componentInstance; 20 | fixture.detectChanges(); 21 | })); 22 | 23 | it('should create', () => { 24 | expect(component).toBeTruthy(); 25 | }); 26 | 27 | it('should render title in a h1 tag', waitForAsync(() => { 28 | const compiled = fixture.debugElement.nativeElement; 29 | expect(compiled.querySelector('h1').textContent).toContain( 30 | 'PAGES.HOME.TITLE' 31 | ); 32 | })); 33 | }); 34 | -------------------------------------------------------------------------------- /src/app/home/home.component.ts: -------------------------------------------------------------------------------- 1 | import { Component, OnInit } from '@angular/core'; 2 | import { Router, RouterLink } from '@angular/router'; 3 | import { TranslateModule } from '@ngx-translate/core'; 4 | 5 | @Component({ 6 | selector: 'app-home', 7 | templateUrl: './home.component.html', 8 | styleUrls: ['./home.component.scss'], 9 | standalone: true, 10 | imports: [RouterLink, TranslateModule] 11 | }) 12 | export class HomeComponent implements OnInit { 13 | 14 | constructor(private router: Router) { } 15 | 16 | ngOnInit(): void { 17 | console.log('HomeComponent INIT'); 18 | } 19 | 20 | } 21 | -------------------------------------------------------------------------------- /src/app/shared/components/index.ts: -------------------------------------------------------------------------------- 1 | export * from './page-not-found/page-not-found.component'; 2 | -------------------------------------------------------------------------------- /src/app/shared/components/page-not-found/page-not-found.component.html: -------------------------------------------------------------------------------- 1 |

2 | page-not-found works! 3 |

4 | -------------------------------------------------------------------------------- /src/app/shared/components/page-not-found/page-not-found.component.scss: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/maximegris/angular-electron/bab2bb2925246db472a7f1b03d1ff7481350a447/src/app/shared/components/page-not-found/page-not-found.component.scss -------------------------------------------------------------------------------- /src/app/shared/components/page-not-found/page-not-found.component.spec.ts: -------------------------------------------------------------------------------- 1 | import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; 2 | 3 | import { PageNotFoundComponent } from './page-not-found.component'; 4 | 5 | describe('PageNotFoundComponent', () => { 6 | let component: PageNotFoundComponent; 7 | let fixture: ComponentFixture; 8 | 9 | beforeEach(waitForAsync(() => { 10 | void TestBed.configureTestingModule({ 11 | declarations: [] 12 | }) 13 | .compileComponents(); 14 | 15 | fixture = TestBed.createComponent(PageNotFoundComponent); 16 | component = fixture.componentInstance; 17 | fixture.detectChanges(); 18 | })); 19 | 20 | it('should create', () => { 21 | expect(component).toBeTruthy(); 22 | }); 23 | }); 24 | -------------------------------------------------------------------------------- /src/app/shared/components/page-not-found/page-not-found.component.ts: -------------------------------------------------------------------------------- 1 | import { Component, OnInit } from '@angular/core'; 2 | 3 | @Component({ 4 | selector: 'app-page-not-found', 5 | templateUrl: './page-not-found.component.html', 6 | styleUrls: ['./page-not-found.component.scss'], 7 | standalone: true 8 | }) 9 | export class PageNotFoundComponent implements OnInit { 10 | constructor() {} 11 | 12 | ngOnInit(): void { 13 | console.log('PageNotFoundComponent INIT'); 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /src/app/shared/directives/index.ts: -------------------------------------------------------------------------------- 1 | export * from './webview/webview.directive'; 2 | -------------------------------------------------------------------------------- /src/app/shared/directives/webview/webview.directive.spec.ts: -------------------------------------------------------------------------------- 1 | import { WebviewDirective } from './webview.directive'; 2 | 3 | describe('WebviewDirective', () => { 4 | it('should create an instance', () => { 5 | const directive = new WebviewDirective(); 6 | expect(directive).toBeTruthy(); 7 | }); 8 | }); 9 | -------------------------------------------------------------------------------- /src/app/shared/directives/webview/webview.directive.ts: -------------------------------------------------------------------------------- 1 | import { Directive } from '@angular/core'; 2 | 3 | @Directive({ 4 | selector: 'webview', 5 | standalone: true 6 | }) 7 | export class WebviewDirective { 8 | constructor() { } 9 | } 10 | -------------------------------------------------------------------------------- /src/app/shared/shared.module.ts: -------------------------------------------------------------------------------- 1 | import { NgModule } from '@angular/core'; 2 | import { CommonModule } from '@angular/common'; 3 | 4 | import { TranslateModule } from '@ngx-translate/core'; 5 | 6 | import { FormsModule } from '@angular/forms'; 7 | 8 | @NgModule({ 9 | declarations: [], 10 | imports: [CommonModule, TranslateModule, FormsModule], 11 | exports: [TranslateModule, FormsModule] 12 | }) 13 | export class SharedModule {} 14 | -------------------------------------------------------------------------------- /src/assets/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/maximegris/angular-electron/bab2bb2925246db472a7f1b03d1ff7481350a447/src/assets/.gitkeep -------------------------------------------------------------------------------- /src/assets/background.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/maximegris/angular-electron/bab2bb2925246db472a7f1b03d1ff7481350a447/src/assets/background.jpg -------------------------------------------------------------------------------- /src/assets/i18n/en.json: -------------------------------------------------------------------------------- 1 | { 2 | "PAGES": { 3 | "HOME": { 4 | "TITLE": "App works !", 5 | "GO_TO_DETAIL": "Go to Detail" 6 | }, 7 | "DETAIL": { 8 | "TITLE": "Detail page !", 9 | "BACK_TO_HOME": "Back to Home" 10 | } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /src/assets/icons/electron.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/maximegris/angular-electron/bab2bb2925246db472a7f1b03d1ff7481350a447/src/assets/icons/electron.bmp -------------------------------------------------------------------------------- /src/assets/icons/favicon.256x256.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/maximegris/angular-electron/bab2bb2925246db472a7f1b03d1ff7481350a447/src/assets/icons/favicon.256x256.png -------------------------------------------------------------------------------- /src/assets/icons/favicon.512x512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/maximegris/angular-electron/bab2bb2925246db472a7f1b03d1ff7481350a447/src/assets/icons/favicon.512x512.png -------------------------------------------------------------------------------- /src/assets/icons/favicon.icns: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/maximegris/angular-electron/bab2bb2925246db472a7f1b03d1ff7481350a447/src/assets/icons/favicon.icns -------------------------------------------------------------------------------- /src/assets/icons/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/maximegris/angular-electron/bab2bb2925246db472a7f1b03d1ff7481350a447/src/assets/icons/favicon.ico -------------------------------------------------------------------------------- /src/assets/icons/favicon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/maximegris/angular-electron/bab2bb2925246db472a7f1b03d1ff7481350a447/src/assets/icons/favicon.png -------------------------------------------------------------------------------- /src/environments/environment.dev.ts: -------------------------------------------------------------------------------- 1 | export const APP_CONFIG = { 2 | production: false, 3 | environment: 'DEV' 4 | }; 5 | -------------------------------------------------------------------------------- /src/environments/environment.prod.ts: -------------------------------------------------------------------------------- 1 | export const APP_CONFIG = { 2 | production: true, 3 | environment: 'PROD' 4 | }; 5 | -------------------------------------------------------------------------------- /src/environments/environment.ts: -------------------------------------------------------------------------------- 1 | export const APP_CONFIG = { 2 | production: false, 3 | environment: 'LOCAL' 4 | }; 5 | -------------------------------------------------------------------------------- /src/environments/environment.web.prod.ts: -------------------------------------------------------------------------------- 1 | export const APP_CONFIG = { 2 | production: true, 3 | environment: 'WEB-PROD' 4 | }; 5 | -------------------------------------------------------------------------------- /src/environments/environment.web.ts: -------------------------------------------------------------------------------- 1 | export const APP_CONFIG = { 2 | production: false, 3 | environment: 'WEB' 4 | }; 5 | -------------------------------------------------------------------------------- /src/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/maximegris/angular-electron/bab2bb2925246db472a7f1b03d1ff7481350a447/src/favicon.ico -------------------------------------------------------------------------------- /src/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Angular Electron 6 | 7 | 8 | 9 | 10 | 11 | 12 | Loading... 13 | 14 | 15 | -------------------------------------------------------------------------------- /src/main.ts: -------------------------------------------------------------------------------- 1 | import { enableProdMode } from '@angular/core'; 2 | import { bootstrapApplication } from '@angular/platform-browser'; 3 | import { provideHttpClient, withInterceptorsFromDi } from '@angular/common/http'; 4 | import { importProvidersFrom } from '@angular/core'; 5 | import { provideRouter } from '@angular/router'; 6 | 7 | import { AppComponent } from './app/app.component'; 8 | import { APP_CONFIG } from './environments/environment'; 9 | import { CoreModule } from './app/core/core.module'; 10 | import { SharedModule } from './app/shared/shared.module'; 11 | import { TranslateModule, TranslateLoader } from '@ngx-translate/core'; 12 | import { TranslateHttpLoader } from '@ngx-translate/http-loader'; 13 | import { HttpClient } from '@angular/common/http'; 14 | import { PageNotFoundComponent } from './app/shared/components'; 15 | import { HomeComponent } from './app/home/home.component'; 16 | import { DetailComponent } from './app/detail/detail.component'; 17 | 18 | // AoT requires an exported function for factories 19 | const httpLoaderFactory = (http: HttpClient): TranslateHttpLoader => new TranslateHttpLoader(http, './assets/i18n/', '.json'); 20 | 21 | if (APP_CONFIG.production) { 22 | enableProdMode(); 23 | } 24 | 25 | bootstrapApplication(AppComponent, { 26 | providers: [ 27 | provideHttpClient(withInterceptorsFromDi()), 28 | provideRouter([ 29 | { 30 | path: '', 31 | redirectTo: 'home', 32 | pathMatch: 'full' 33 | }, 34 | { 35 | path: 'home', 36 | component: HomeComponent 37 | }, 38 | { 39 | path: 'detail', 40 | component: DetailComponent 41 | }, 42 | { 43 | path: '**', 44 | component: PageNotFoundComponent 45 | } 46 | ]), 47 | importProvidersFrom( 48 | CoreModule, 49 | SharedModule, 50 | TranslateModule.forRoot({ 51 | loader: { 52 | provide: TranslateLoader, 53 | useFactory: httpLoaderFactory, 54 | deps: [HttpClient] 55 | } 56 | }) 57 | ) 58 | ] 59 | }).catch(err => console.error(err)); 60 | -------------------------------------------------------------------------------- /src/polyfills-test.ts: -------------------------------------------------------------------------------- 1 | import 'zone.js'; 2 | -------------------------------------------------------------------------------- /src/polyfills.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file includes polyfills needed by Angular and is loaded before the app. 3 | * You can add your own extra polyfills to this file. 4 | * 5 | * This file is divided into 2 sections: 6 | * 1. Browser polyfills. These are applied before loading ZoneJS and are sorted by browsers. 7 | * 2. Application imports. Files imported after ZoneJS that should be loaded before your main 8 | * file. 9 | * 10 | * The current setup is for so-called "evergreen" browsers; the last versions of browsers that 11 | * automatically update themselves. This includes Safari >= 10, Chrome >= 55 (including Opera), 12 | * Edge >= 13 on the desktop, and iOS 10 and Chrome on mobile. 13 | * 14 | * Learn more in https://angular.io/guide/browser-support 15 | */ 16 | 17 | /*************************************************************************************************** 18 | * BROWSER POLYFILLS 19 | */ 20 | 21 | /** 22 | * By default, zone.js will patch all possible macroTask and DomEvents 23 | * user can disable parts of macroTask/DomEvents patch by setting following flags 24 | * because those flags need to be set before `zone.js` being loaded, and webpack 25 | * will put import in the top of bundle, so user need to create a separate file 26 | * in this directory (for example: zone-flags.ts), and put the following flags 27 | * into that file, and then add the following code before importing zone.js. 28 | * import './zone-flags.ts'; 29 | * 30 | * The flags allowed in zone-flags.ts are listed here. 31 | * 32 | * The following flags will work for all browsers. 33 | * 34 | * (window as any).__Zone_disable_requestAnimationFrame = true; // disable patch requestAnimationFrame 35 | * (window as any).__Zone_disable_on_property = true; // disable patch onProperty such as onclick 36 | * (window as any).__zone_symbol__UNPATCHED_EVENTS = ['scroll', 'mousemove']; // disable patch specified eventNames 37 | * 38 | * in IE/Edge developer tools, the addEventListener will also be wrapped by zone.js 39 | * with the following flag, it will bypass `zone.js` patch for IE/Edge 40 | * 41 | * (window as any).__Zone_enable_cross_context_check = true; 42 | * 43 | */ 44 | 45 | /*************************************************************************************************** 46 | * Zone JS is required by default for Angular itself. 47 | */ 48 | import 'zone.js'; // Included with Angular CLI. 49 | 50 | 51 | /*************************************************************************************************** 52 | * APPLICATION IMPORTS 53 | */ 54 | -------------------------------------------------------------------------------- /src/styles.scss: -------------------------------------------------------------------------------- 1 | /* You can add global styles to this file, and also import other style files */ 2 | html, body { 3 | margin: 0; 4 | padding: 0; 5 | 6 | height: 100%; 7 | font-family: Arial, Helvetica, sans-serif; 8 | } 9 | 10 | /* CAN (MUST) BE REMOVED ! Sample Global style */ 11 | .container { 12 | height: 100%; 13 | display: flex; 14 | flex-direction: column; 15 | align-items: center; 16 | justify-content: center; 17 | 18 | background: url(./assets/background.jpg) no-repeat center fixed; 19 | -webkit-background-size: cover; /* pour anciens Chrome et Safari */ 20 | background-size: cover; /* version standardisée */ 21 | 22 | .title { 23 | color: white; 24 | margin: 0; 25 | padding: 50px 20px; 26 | } 27 | 28 | a { 29 | color: #fff !important; 30 | text-transform: uppercase; 31 | text-decoration: none; 32 | background: #ed3330; 33 | padding: 20px; 34 | border-radius: 5px; 35 | display: inline-block; 36 | border: none; 37 | transition: all 0.4s ease 0s; 38 | 39 | &:hover { 40 | background: #fff; 41 | color: #ed3330 !important; 42 | letter-spacing: 1px; 43 | -webkit-box-shadow: 0px 5px 40px -10px rgba(0,0,0,0.57); 44 | -moz-box-shadow: 0px 5px 40px -10px rgba(0,0,0,0.57); 45 | box-shadow: 5px 40px -10px rgba(0,0,0,0.57); 46 | transition: all 0.4s ease 0s; 47 | } 48 | } 49 | } 50 | 51 | -------------------------------------------------------------------------------- /src/tsconfig.app.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../tsconfig.json", 3 | "compilerOptions": { 4 | "outDir": "../out-tsc/app", 5 | "baseUrl": "", 6 | "types": [ 7 | "node" 8 | ] 9 | }, 10 | "files": [ 11 | "main.ts", 12 | "polyfills.ts" 13 | ], 14 | "include": [ 15 | "**/*.ts", 16 | "**/*.d.ts" 17 | ], 18 | "exclude": [ 19 | "**/*.spec.ts" 20 | ] 21 | } 22 | -------------------------------------------------------------------------------- /src/tsconfig.spec.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../tsconfig.json", 3 | "compilerOptions": { 4 | "esModuleInterop": true, 5 | "outDir": "../out-tsc/spec", 6 | "types": [ 7 | "jest", 8 | "node" 9 | ] 10 | }, 11 | "files": [ 12 | "polyfills-test.ts" 13 | ], 14 | "include": [ 15 | "**/*.spec.ts", 16 | "**/*.d.ts" 17 | ], 18 | "exclude": [ 19 | "dist", 20 | "release", 21 | "node_modules" 22 | ] 23 | } 24 | -------------------------------------------------------------------------------- /src/typings.d.ts: -------------------------------------------------------------------------------- 1 | /* SystemJS module definition */ 2 | declare const nodeModule: NodeModule; 3 | interface NodeModule { 4 | id: string; 5 | } 6 | interface Window { 7 | process: any; 8 | require: any; 9 | } 10 | -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compileOnSave": false, 3 | "compilerOptions": { 4 | "strict": true, 5 | "outDir": "./dist/out-tsc", 6 | "module": "es2022", 7 | "esModuleInterop": true, 8 | "sourceMap": true, 9 | "declaration": false, 10 | "moduleResolution": "node", 11 | "emitDecoratorMetadata": true, 12 | "experimentalDecorators": true, 13 | "allowJs": true, 14 | "target": "ES2022", 15 | "typeRoots": [ 16 | "node_modules/@types" 17 | ], 18 | "lib": [ 19 | "es2017", 20 | "es2016", 21 | "es2015", 22 | "es2018", 23 | "dom" 24 | ], 25 | "useDefineForClassFields": false 26 | }, 27 | "exclude": [ 28 | "node_modules" 29 | ], 30 | "angularCompilerOptions": { 31 | "strictTemplates": true, 32 | "fullTemplateTypeCheck": true, 33 | "annotateForClosureCompiler": true, 34 | "strictInjectionParameters": true, 35 | "skipTemplateCodegen": false, 36 | "preserveWhitespaces": true, 37 | "skipMetadataEmit": false, 38 | "disableTypeScriptVersionCheck": true 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /tsconfig.serve.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "sourceMap": true, 4 | "declaration": false, 5 | "moduleResolution": "node", 6 | "emitDecoratorMetadata": true, 7 | "experimentalDecorators": true, 8 | "module": "commonjs", 9 | "target": "es2015", 10 | "types": [ 11 | "node" 12 | ], 13 | "lib": [ 14 | "es2017", 15 | "es2016", 16 | "es2015", 17 | "dom" 18 | ] 19 | }, 20 | "files": [ 21 | "app/main.ts" 22 | ], 23 | "exclude": [ 24 | "node_modules", 25 | "**/*.spec.ts" 26 | ] 27 | } 28 | --------------------------------------------------------------------------------