Initial commit
16
.editorconfig
Normal file
|
@ -0,0 +1,16 @@
|
|||
# Editor configuration, see http://editorconfig.org
|
||||
root = true
|
||||
|
||||
[*]
|
||||
charset = utf-8
|
||||
indent_style = space
|
||||
indent_size = 2
|
||||
insert_final_newline = true
|
||||
trim_trailing_whitespace = true
|
||||
|
||||
[*.ts]
|
||||
quote_type = single
|
||||
|
||||
[*.md]
|
||||
max_line_length = off
|
||||
trim_trailing_whitespace = false
|
2
.eslintignore
Normal file
|
@ -0,0 +1,2 @@
|
|||
src/environments/*
|
||||
e2e/playwright.config.ts
|
59
.eslintrc.json
Normal file
|
@ -0,0 +1,59 @@
|
|||
{
|
||||
"root": true,
|
||||
"ignorePatterns": [
|
||||
"app/**/*", // ignore nodeJs files
|
||||
"dist/**/*",
|
||||
"release/**/*"
|
||||
],
|
||||
"overrides": [
|
||||
{
|
||||
"files": [
|
||||
"*.ts"
|
||||
],
|
||||
"parserOptions": {
|
||||
"project": [
|
||||
"./tsconfig.serve.json",
|
||||
"./src/tsconfig.app.json",
|
||||
"./src/tsconfig.spec.json",
|
||||
"./e2e/tsconfig.e2e.json"
|
||||
],
|
||||
"createDefaultProgram": true
|
||||
},
|
||||
"extends": [
|
||||
"plugin:@angular-eslint/recommended",
|
||||
"eslint:recommended",
|
||||
"plugin:@typescript-eslint/recommended",
|
||||
"plugin:@typescript-eslint/recommended-requiring-type-checking",
|
||||
"plugin:@angular-eslint/template/process-inline-templates"
|
||||
],
|
||||
"rules": {
|
||||
"@typescript-eslint/no-empty-function": 0,
|
||||
"@typescript-eslint/no-explicit-any": 0,
|
||||
"@typescript-eslint/no-unsafe-assignment": 0,
|
||||
"@typescript-eslint/no-unsafe-call": 0,
|
||||
"@typescript-eslint/no-unsafe-member-access": 0,
|
||||
"prefer-arrow/prefer-arrow-functions": 0,
|
||||
"@angular-eslint/directive-selector": 0,
|
||||
"@angular-eslint/component-selector": [
|
||||
"error",
|
||||
{
|
||||
"type": "element",
|
||||
"prefix": "app",
|
||||
"style": "kebab-case"
|
||||
}
|
||||
],
|
||||
"jsdoc/newline-after-description": 0
|
||||
}
|
||||
},
|
||||
{
|
||||
"files": [
|
||||
"*.html"
|
||||
],
|
||||
"extends": [
|
||||
"plugin:@angular-eslint/template/recommended"
|
||||
],
|
||||
"rules": {
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
12
.github/FUNDING.yml
vendored
Normal file
|
@ -0,0 +1,12 @@
|
|||
# These are supported funding model platforms
|
||||
|
||||
github: maximegris
|
||||
patreon: user?u=37550953
|
||||
open_collective: # Replace with a single Open Collective username
|
||||
ko_fi: # Replace with a single Ko-fi username
|
||||
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
|
||||
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
|
||||
liberapay: # Replace with a single Liberapay username
|
||||
issuehunt: maximegris # Replace with a single IssueHunt username
|
||||
otechie: # Replace with a single Otechie username
|
||||
custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
|
29
.github/ISSUE_TEMPLATE/bug_report.md
vendored
Normal file
|
@ -0,0 +1,29 @@
|
|||
---
|
||||
name: Bug report
|
||||
about: Create a report to help us improve
|
||||
title: ''
|
||||
labels: ''
|
||||
assignees: ''
|
||||
|
||||
---
|
||||
|
||||
**Describe the bug**
|
||||
A clear and concise description of what the bug is.
|
||||
|
||||
**To Reproduce**
|
||||
Steps to reproduce the behavior:
|
||||
1. Go to '...'
|
||||
2. Click on '....'
|
||||
3. Scroll down to '....'
|
||||
4. See error
|
||||
|
||||
**Expected behavior**
|
||||
A clear and concise description of what you expected to happen.
|
||||
|
||||
**Screenshots**
|
||||
If applicable, add screenshots to help explain your problem.
|
||||
|
||||
**Additional context**
|
||||
- OS: [e.g. iOS]
|
||||
|
||||
Add any other context about the problem here.
|
41
.github/ISSUE_TEMPLATE/bug_report.yml
vendored
Normal file
|
@ -0,0 +1,41 @@
|
|||
name: "🐛 Bug report"
|
||||
description: Report errors or unexpected behavior
|
||||
labels:
|
||||
- bug
|
||||
- needs-triage
|
||||
body:
|
||||
- type: markdown
|
||||
attributes:
|
||||
value: |
|
||||
Please make sure to [search for existing issues](https://github.com/maximegris/angular-electron/issues) before filing a new one!
|
||||
|
||||
- type: textarea
|
||||
attributes:
|
||||
label: Steps to reproduce
|
||||
description: We highly suggest including a screenshots and a bug report log.
|
||||
placeholder: |
|
||||
Tell us the steps required to trigger your bug.
|
||||
1. Go to '...'
|
||||
2. Click on '....'
|
||||
3. Scroll down to '....'
|
||||
4. See error
|
||||
|
||||
validations:
|
||||
required: true
|
||||
|
||||
- type: textarea
|
||||
attributes:
|
||||
label: ✔️ Expected Behavior
|
||||
placeholder: A clear and concise description of what you expected to happen.
|
||||
validations:
|
||||
required: true
|
||||
|
||||
- type: textarea
|
||||
attributes:
|
||||
label: 🔍 Additional context
|
||||
description: Add any other context about the problem here.
|
||||
placeholder: |
|
||||
OS: [e.g. iOS]
|
||||
|
||||
validations:
|
||||
required: false
|
20
.github/ISSUE_TEMPLATE/feature_request.md
vendored
Normal file
|
@ -0,0 +1,20 @@
|
|||
---
|
||||
name: Feature request
|
||||
about: Suggest an idea for this project
|
||||
title: ''
|
||||
labels: ''
|
||||
assignees: ''
|
||||
|
||||
---
|
||||
|
||||
**Is your feature request related to a problem? Please describe.**
|
||||
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
|
||||
|
||||
**Describe the solution you'd like**
|
||||
A clear and concise description of what you want to happen.
|
||||
|
||||
**Describe alternatives you've considered**
|
||||
A clear and concise description of any alternative solutions or features you've considered.
|
||||
|
||||
**Additional context**
|
||||
Add any other context or screenshots about the feature request here.
|
29
.github/ISSUE_TEMPLATE/feature_request.yml
vendored
Normal file
|
@ -0,0 +1,29 @@
|
|||
name: "⭐ New Feature / Enhancement Request"
|
||||
description: Propose something new.
|
||||
labels:
|
||||
- enhancement
|
||||
- needs-triage
|
||||
|
||||
body:
|
||||
- type: markdown
|
||||
attributes:
|
||||
value: |
|
||||
Please limit one request per issue.
|
||||
|
||||
- type: textarea
|
||||
attributes:
|
||||
label: Description of the new feature / enhancement
|
||||
placeholder: |
|
||||
A clear and concise description of what is the expected behavior of the proposed feature?
|
||||
validations:
|
||||
required: true
|
||||
|
||||
- type: textarea
|
||||
attributes:
|
||||
label: Scenario when this would be used?
|
||||
placeholder: |
|
||||
What is the scenario this would be used? Why is this important?
|
||||
validations:
|
||||
required: true
|
||||
|
||||
|
6
.github/dependabot.yml
vendored
Normal file
|
@ -0,0 +1,6 @@
|
|||
version: 2
|
||||
updates:
|
||||
- package-ecosystem: "github-actions"
|
||||
directory: "/"
|
||||
schedule:
|
||||
interval: "weekly"
|
21
.github/pull_request_template.md
vendored
Normal file
|
@ -0,0 +1,21 @@
|
|||
# Description
|
||||
|
||||
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.
|
||||
|
||||
Fixes # (issue)
|
||||
|
||||
## Type of change
|
||||
|
||||
Please delete options that are not relevant.
|
||||
|
||||
- [ ] Bug fix (non-breaking change which fixes an issue)
|
||||
- [ ] New feature (non-breaking change which adds functionality)
|
||||
- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
|
||||
- [ ] This change requires a documentation update
|
||||
|
||||
# Checklist:
|
||||
|
||||
- [ ] I have performed a self-review of my own code
|
||||
- [ ] I have made corresponding changes to the documentation
|
||||
- [ ] My changes generate no new warnings
|
||||
- [ ] I have run tests (npm run test & npm run e2e) that prove my fix is effective or that my feature works
|
17
.github/stale.yml
vendored
Normal file
|
@ -0,0 +1,17 @@
|
|||
# Number of days of inactivity before an issue becomes stale
|
||||
daysUntilStale: 15
|
||||
# Number of days of inactivity before a stale issue is closed
|
||||
daysUntilClose: 7
|
||||
# Issues with these labels will never be considered stale
|
||||
exemptLabels:
|
||||
- pinned
|
||||
- security
|
||||
# Label to use when marking an issue as stale
|
||||
staleLabel: wontfix
|
||||
# Comment to post when marking an issue as stale. Set to `false` to disable
|
||||
markComment: >
|
||||
This issue has been automatically marked as stale because it has not had
|
||||
recent activity. It will be closed if no further activity occurs. Thank you
|
||||
for your contributions.
|
||||
# Comment to post when closing a stale issue. Set to `false` to disable
|
||||
closeComment: false
|
58
.github/workflows/macos.yml
vendored
Normal file
|
@ -0,0 +1,58 @@
|
|||
# This is a basic workflow to help you get started with Actions
|
||||
name: 'MacOS Build'
|
||||
|
||||
# Controls when the action will run.
|
||||
on:
|
||||
# Triggers the workflow on push or pull request events but only for the main branch
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
pull_request:
|
||||
branches:
|
||||
- main
|
||||
|
||||
# Allows you to run this workflow manually from the Actions tab
|
||||
workflow_dispatch:
|
||||
|
||||
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
build:
|
||||
strategy:
|
||||
matrix:
|
||||
node-version: [20]
|
||||
|
||||
# The type of runner that the job will run on
|
||||
runs-on: macos-12
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- name: Cache node modules
|
||||
uses: actions/cache@v4
|
||||
env:
|
||||
cache-name: cache-node-modules
|
||||
with:
|
||||
# npm cache files are stored in `~/.npm` on Linux/macOS
|
||||
path: ~/.npm
|
||||
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-build-${{ env.cache-name }}-
|
||||
${{ runner.os }}-build-
|
||||
${{ runner.os }}-
|
||||
|
||||
- name: Use Node.js ${{ matrix.node-version }}
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: ${{ matrix.node-version }}
|
||||
|
||||
- name: Install Dependencies
|
||||
run: npm i && npm i -D cli-truncate iconv-corefoundation
|
||||
|
||||
- name: Check lint
|
||||
run: npm run lint
|
||||
|
||||
- name: Build the app
|
||||
run: npm run electron:build
|
70
.github/workflows/ubuntu.yml
vendored
Normal file
|
@ -0,0 +1,70 @@
|
|||
# This is a basic workflow to help you get started with Actions
|
||||
name: 'Linux Build'
|
||||
|
||||
# Controls when the action will run.
|
||||
on:
|
||||
# Triggers the workflow on push or pull request events but only for the main branch
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
pull_request:
|
||||
branches:
|
||||
- main
|
||||
|
||||
# Allows you to run this workflow manually from the Actions tab
|
||||
workflow_dispatch:
|
||||
|
||||
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
|
||||
jobs:
|
||||
build:
|
||||
strategy:
|
||||
matrix:
|
||||
node-version: [20]
|
||||
|
||||
# The type of runner that the job will run on
|
||||
runs-on: ubuntu-22.04
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- name: Cache node modules
|
||||
uses: actions/cache@v4
|
||||
env:
|
||||
cache-name: cache-node-modules
|
||||
with:
|
||||
# npm cache files are stored in `~/.npm` on Linux/macOS
|
||||
path: ~/.npm
|
||||
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-build-${{ env.cache-name }}-
|
||||
${{ runner.os }}-build-
|
||||
${{ runner.os }}-
|
||||
|
||||
- name: Use Node.js ${{ matrix.node-version }}
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: ${{ matrix.node-version }}
|
||||
|
||||
- name: Install linux dependencies
|
||||
run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y libgtk-3-dev webkit2gtk-4.0 libappindicator3-dev librsvg2-dev patchelf
|
||||
|
||||
- name: Install Dependencies
|
||||
run: npm i
|
||||
|
||||
- name: Check lint
|
||||
run: npm run lint
|
||||
|
||||
- name: Run headless unit test
|
||||
uses: GabrielBB/xvfb-action@v1
|
||||
with:
|
||||
run: npm run test
|
||||
|
||||
- name: Run headless e2e test
|
||||
uses: GabrielBB/xvfb-action@v1
|
||||
with:
|
||||
run: npm run e2e
|
||||
|
||||
- name: Build the app
|
||||
run: npm run electron:build
|
64
.github/workflows/windows.yml
vendored
Normal file
|
@ -0,0 +1,64 @@
|
|||
# This is a basic workflow to help you get started with Actions
|
||||
name: 'Windows Build'
|
||||
|
||||
# Controls when the action will run.
|
||||
on:
|
||||
# Triggers the workflow on push or pull request events but only for the main branch
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
pull_request:
|
||||
branches:
|
||||
- main
|
||||
|
||||
# Allows you to run this workflow manually from the Actions tab
|
||||
workflow_dispatch:
|
||||
|
||||
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
build:
|
||||
strategy:
|
||||
matrix:
|
||||
node-version: [20]
|
||||
|
||||
# The type of runner that the job will run on
|
||||
runs-on: windows-2022
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- name: Cache node modules
|
||||
uses: actions/cache@v4
|
||||
env:
|
||||
cache-name: cache-node-modules
|
||||
with:
|
||||
# npm cache files are stored in `~/.npm`
|
||||
path: ~/.npm
|
||||
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-build-${{ env.cache-name }}-
|
||||
${{ runner.os }}-build-
|
||||
${{ runner.os }}-
|
||||
|
||||
- name: Use Node.js ${{ matrix.node-version }}
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: ${{ matrix.node-version }}
|
||||
|
||||
- name: Install Dependencies
|
||||
run: npm i
|
||||
|
||||
- name: Check lint
|
||||
run: npm run lint
|
||||
|
||||
- name: Run headless unit test
|
||||
run: npm run test
|
||||
|
||||
- name: Run headless e2e test
|
||||
run: npm run e2e
|
||||
|
||||
- name: Build the app
|
||||
run: npm run electron:build
|
51
.gitignore
vendored
Normal file
|
@ -0,0 +1,51 @@
|
|||
# See http://help.github.com/ignore-files/ for more about ignoring files.
|
||||
|
||||
# compiled output
|
||||
/dist
|
||||
/tmp
|
||||
/out-tsc
|
||||
/app-builds
|
||||
/release
|
||||
main.js
|
||||
src/**/*.js
|
||||
*.js.map
|
||||
|
||||
# dependencies
|
||||
node_modules
|
||||
|
||||
# IDEs and editors
|
||||
.idea
|
||||
.project
|
||||
.classpath
|
||||
.c9/
|
||||
*.launch
|
||||
.settings/
|
||||
*.sublime-workspace
|
||||
|
||||
# IDE - VSCode
|
||||
.vscode/*
|
||||
.vscode/settings.json
|
||||
!.vscode/tasks.json
|
||||
!.vscode/launch.json
|
||||
!.vscode/extensions.json
|
||||
|
||||
# misc
|
||||
/.angular/cache
|
||||
/.sass-cache
|
||||
/connect.lock
|
||||
/coverage
|
||||
/libpeerconnection.log
|
||||
npm-debug.log
|
||||
testem.log
|
||||
/typings
|
||||
|
||||
# e2e
|
||||
/e2e/*.js
|
||||
!/e2e/protractor.conf.js
|
||||
/e2e/*.map
|
||||
/e2e/tracing
|
||||
/e2e/screenshots
|
||||
|
||||
# System Files
|
||||
.DS_Store
|
||||
Thumbs.db
|
1
.node-version
Normal file
|
@ -0,0 +1 @@
|
|||
18
|
2
.npmrc
Normal file
|
@ -0,0 +1,2 @@
|
|||
save=true
|
||||
save-exact=true
|
46
.vscode/launch.json
vendored
Normal file
|
@ -0,0 +1,46 @@
|
|||
{
|
||||
// Use IntelliSense to learn about possible attributes.
|
||||
// Hover to view descriptions of existing attributes.
|
||||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
|
||||
"version": "0.2.0",
|
||||
"configurations": [
|
||||
{
|
||||
"name": "Renderer",
|
||||
"type": "chrome",
|
||||
"request": "attach",
|
||||
"port": 9876,
|
||||
"url": "http://localhost:4200",
|
||||
"sourceMaps": true,
|
||||
"timeout": 10000,
|
||||
"trace": "verbose",
|
||||
"sourceMapPathOverrides": {
|
||||
"webpack:///./*": "${workspaceFolder}/*"
|
||||
},
|
||||
"preLaunchTask": "Build.Renderer"
|
||||
},
|
||||
{
|
||||
"name": "Main",
|
||||
"type": "node",
|
||||
"request": "launch",
|
||||
"protocol": "inspector",
|
||||
"cwd": "${workspaceFolder}",
|
||||
"runtimeExecutable": "${workspaceFolder}/node_modules/.bin/electron",
|
||||
"trace": "verbose",
|
||||
"runtimeArgs": [
|
||||
"--serve",
|
||||
".",
|
||||
"--remote-debugging-port=9876"
|
||||
],
|
||||
"windows": {
|
||||
"runtimeExecutable": "${workspaceFolder}/node_modules/.bin/electron.cmd"
|
||||
},
|
||||
"preLaunchTask": "Build.Main"
|
||||
}
|
||||
],
|
||||
"compounds": [
|
||||
{
|
||||
"name": "Application Debug",
|
||||
"configurations": [ "Renderer", "Main" ]
|
||||
}
|
||||
]
|
||||
}
|
49
.vscode/tasks.json
vendored
Normal file
|
@ -0,0 +1,49 @@
|
|||
{
|
||||
"version": "2.0.0",
|
||||
"tasks": [
|
||||
{
|
||||
"label": "Build.Main",
|
||||
"type": "shell",
|
||||
"command": "npm run electron:serve-tsc",
|
||||
"isBackground": false,
|
||||
"group": {
|
||||
"kind": "build",
|
||||
"isDefault": true
|
||||
},
|
||||
"problemMatcher": {
|
||||
"owner": "typescript",
|
||||
"source": "ts",
|
||||
"applyTo": "closedDocuments",
|
||||
"fileLocation": ["relative", "${cwd}"],
|
||||
"pattern": "$tsc",
|
||||
"background": {
|
||||
"activeOnStart": true,
|
||||
"beginsPattern": "^.*",
|
||||
"endsPattern": "^.*Terminal will be reused by tasks, press any key to close it.*"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"label": "Build.Renderer",
|
||||
"type": "shell",
|
||||
"command": "npm run ng:serve",
|
||||
"isBackground": true,
|
||||
"group": {
|
||||
"kind": "build",
|
||||
"isDefault": true
|
||||
},
|
||||
"problemMatcher": {
|
||||
"owner": "typescript",
|
||||
"source": "ts",
|
||||
"applyTo": "closedDocuments",
|
||||
"fileLocation": ["relative", "${cwd}"],
|
||||
"pattern": "$tsc",
|
||||
"background": {
|
||||
"activeOnStart": true,
|
||||
"beginsPattern": "^.*",
|
||||
"endsPattern": "^.*Compiled successfully.*"
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
957
CHANGELOG.md
Normal file
|
@ -0,0 +1,957 @@
|
|||
## <small>14.0.1 (2024-04-27)</small>
|
||||
|
||||
* [Bumped Version] 14.0.1 ([3998f4d](https://github.com/maximegris/angular-electron/commit/3998f4d))
|
||||
* Create feature_request.yml ([0b26402](https://github.com/maximegris/angular-electron/commit/0b26402))
|
||||
* forms for open issues bug and new feature ([c997da6](https://github.com/maximegris/angular-electron/commit/c997da6))
|
||||
* misc/ Github action : update node version ([05707de](https://github.com/maximegris/angular-electron/commit/05707de))
|
||||
* misc/ GitHub actions: node 20, ubuntu 22.04 + pin versions ([872e696](https://github.com/maximegris/angular-electron/commit/872e696))
|
||||
* misc/ unit-test : replace Karma & Jasmine with Jest ([f36aa91](https://github.com/maximegris/angular-electron/commit/f36aa91))
|
||||
* misc/ Upgrade to Angular 17 & Electron 27 ([2ec1cec](https://github.com/maximegris/angular-electron/commit/2ec1cec))
|
||||
* misc/ Upgrade to Electron 30 ([1a431cd](https://github.com/maximegris/angular-electron/commit/1a431cd))
|
||||
* chore: fix lint ([822853f](https://github.com/maximegris/angular-electron/commit/822853f))
|
||||
|
||||
|
||||
|
||||
## 13.0.0 (2023-06-30)
|
||||
|
||||
* [Bumped Version] 13.0.0 ([e1a4e49](https://github.com/maximegris/angular-electron/commit/e1a4e49))
|
||||
* fix/ Use globalThis property, a standard way of accessing the global this on browser & Node ([45bdbfa](https://github.com/maximegris/angular-electron/commit/45bdbfa))
|
||||
* misc/ disable 'jsdoc/newline-after-description' rule ([9b22567](https://github.com/maximegris/angular-electron/commit/9b22567))
|
||||
* misc/ Enable Typescript strict mode ([f60add8](https://github.com/maximegris/angular-electron/commit/f60add8))
|
||||
* misc/ Update angular material HOW TO guide ([18c5431](https://github.com/maximegris/angular-electron/commit/18c5431))
|
||||
* misc/ Upgrade electron-builder dependency ([04a3b14](https://github.com/maximegris/angular-electron/commit/04a3b14))
|
||||
* misc/ Upgrade to Angular 15.2.9 & Electron 24 ([7c78613](https://github.com/maximegris/angular-electron/commit/7c78613))
|
||||
* misc/ Upgrade to Angular 16.1.3 & Electron 2 ([5f8e817](https://github.com/maximegris/angular-electron/commit/5f8e817))
|
||||
|
||||
|
||||
|
||||
## 12.0.0 (2023-02-17)
|
||||
|
||||
* [Bumped Version] 12.0.0 ([f78a81f](https://github.com/maximegris/angular-electron/commit/f78a81f))
|
||||
* misc/ Upgrade to Electron 22 ([8cb0acd](https://github.com/maximegris/angular-electron/commit/8cb0acd))
|
||||
* package json description updated ([8726c0a](https://github.com/maximegris/angular-electron/commit/8726c0a))
|
||||
* fix(test): remove require.context (not needed) ([680d18d](https://github.com/maximegris/angular-electron/commit/680d18d))
|
||||
* refactor: use latest eslint ([41abef1](https://github.com/maximegris/angular-electron/commit/41abef1))
|
||||
* refactor: use latest eslint & change docs ([9f8add6](https://github.com/maximegris/angular-electron/commit/9f8add6))
|
||||
* feat: use latest angular / angular-builder / angular-eslint ([fd9f876](https://github.com/maximegris/angular-electron/commit/fd9f876))
|
||||
|
||||
|
||||
|
||||
## 11.2.0 (2022-10-16)
|
||||
|
||||
* [Bumped Version] 11.2.0 ([0fd7a31](https://github.com/maximegris/angular-electron/commit/0fd7a31))
|
||||
* misc/ Upgrade to Electron 21 ([ed23e89](https://github.com/maximegris/angular-electron/commit/ed23e89))
|
||||
|
||||
|
||||
|
||||
## 11.1.0 (2022-08-12)
|
||||
|
||||
* [Bumped Version] 11.1.0 ([a3eeb6a](https://github.com/maximegris/angular-electron/commit/a3eeb6a))
|
||||
* Bump actions/cache from 2 to 3 ([85b8624](https://github.com/maximegris/angular-electron/commit/85b8624))
|
||||
* Bump actions/checkout from 2 to 3 ([0650214](https://github.com/maximegris/angular-electron/commit/0650214))
|
||||
* Bump actions/setup-node from 1 to 3 ([f9a55b6](https://github.com/maximegris/angular-electron/commit/f9a55b6))
|
||||
* refactor/ build electron archive as asar ([e1da5b5](https://github.com/maximegris/angular-electron/commit/e1da5b5))
|
||||
* refactor/ replace deprecated url.format with URL WHATWG API ([c491c48](https://github.com/maximegris/angular-electron/commit/c491c48))
|
||||
|
||||
|
||||
|
||||
## 11.0.0 (2022-07-20)
|
||||
|
||||
* [Bumped Version] 11.0.0 ([91a8574](https://github.com/maximegris/angular-electron/commit/91a8574))
|
||||
* misc/ Upgrade to Angular 14 & Electron 19 ([dbacec7](https://github.com/maximegris/angular-electron/commit/dbacec7))
|
||||
* chore: Included githubactions in the dependabot config ([36f2a66](https://github.com/maximegris/angular-electron/commit/36f2a66))
|
||||
* chore: Set permissions for GitHub actions ([ca54dda](https://github.com/maximegris/angular-electron/commit/ca54dda))
|
||||
|
||||
|
||||
|
||||
## <small>10.5.2 (2022-04-23)</small>
|
||||
|
||||
* [Bumped Version] 10.5.2 ([c26be0a](https://github.com/maximegris/angular-electron/commit/c26be0a))
|
||||
* Bump plist from 3.0.4 to 3.0.5 ([bedaba3](https://github.com/maximegris/angular-electron/commit/bedaba3))
|
||||
* fix/ macos action ([f1d89b1](https://github.com/maximegris/angular-electron/commit/f1d89b1))
|
||||
* misc/ add electron-reloader ([c885a24](https://github.com/maximegris/angular-electron/commit/c885a24))
|
||||
|
||||
|
||||
|
||||
## <small>10.5.1 (2022-04-02)</small>
|
||||
|
||||
* [Bumped Version] 10.5.1 ([ad23ace](https://github.com/maximegris/angular-electron/commit/ad23ace))
|
||||
* fix/ macos action ([ff71c32](https://github.com/maximegris/angular-electron/commit/ff71c32))
|
||||
* fix/ remove demo.gif ([ccd468d](https://github.com/maximegris/angular-electron/commit/ccd468d))
|
||||
* migrate to main branch ([2c7cd98](https://github.com/maximegris/angular-electron/commit/2c7cd98))
|
||||
* misc/ Upgrade to Electron 18 ([7251676](https://github.com/maximegris/angular-electron/commit/7251676))
|
||||
* Set theme jekyll-theme-cayman ([1f0ba34](https://github.com/maximegris/angular-electron/commit/1f0ba34))
|
||||
* fix: github action ([d6b5784](https://github.com/maximegris/angular-electron/commit/d6b5784))
|
||||
|
||||
|
||||
|
||||
## 10.5.0 (2022-02-24)
|
||||
|
||||
* [Bumped Version] 10.5.0 ([92fe8ed](https://github.com/maximegris/angular-electron/commit/92fe8ed))
|
||||
* Bump follow-redirects from 1.14.5 to 1.14.7 ([606d54d](https://github.com/maximegris/angular-electron/commit/606d54d))
|
||||
* Bump log4js from 6.3.0 to 6.4.0 ([27adf26](https://github.com/maximegris/angular-electron/commit/27adf26))
|
||||
* Bump nanoid from 3.1.30 to 3.2.0 ([e05d98b](https://github.com/maximegris/angular-electron/commit/e05d98b))
|
||||
* fix/ global error in console when building web app only ([58424a2](https://github.com/maximegris/angular-electron/commit/58424a2))
|
||||
* misc/ github actions on 14.x, 16.x, 17.x ([4fe8c2c](https://github.com/maximegris/angular-electron/commit/4fe8c2c))
|
||||
* misc/ Upgrade to Electron 17 ([4964bae](https://github.com/maximegris/angular-electron/commit/4964bae))
|
||||
* use local electron from devDependencies instead of npx ([a029060](https://github.com/maximegris/angular-electron/commit/a029060))
|
||||
|
||||
|
||||
|
||||
## <small>10.4.1 (2021-11-17)</small>
|
||||
|
||||
* [Bumped Version] 10.4.1 ([c5096fa](https://github.com/maximegris/angular-electron/commit/c5096fa))
|
||||
* misc/ Upgrade eslint version ([4321d9d](https://github.com/maximegris/angular-electron/commit/4321d9d))
|
||||
* misc/ Upgrade to Angular 13.0.0 ([99e9f35](https://github.com/maximegris/angular-electron/commit/99e9f35))
|
||||
|
||||
|
||||
|
||||
## 10.4.0 (2021-11-17)
|
||||
|
||||
* [Bumped Version] 10.4.0 ([7a4f527](https://github.com/maximegris/angular-electron/commit/7a4f527))
|
||||
* misc/ upgrade to Angular 12.2.13 ([74df637](https://github.com/maximegris/angular-electron/commit/74df637))
|
||||
* misc/ upgrade to Electron 16 ([65d285c](https://github.com/maximegris/angular-electron/commit/65d285c))
|
||||
* misc/ upgrade wait-on dependency ([e427f26](https://github.com/maximegris/angular-electron/commit/e427f26))
|
||||
|
||||
|
||||
|
||||
## <small>10.3.1 (2021-11-17)</small>
|
||||
|
||||
* [Bumped Version] 10.3.1 ([ebde830](https://github.com/maximegris/angular-electron/commit/ebde830))
|
||||
* fix/ TS Config : module resolution in main process ([a9d3044](https://github.com/maximegris/angular-electron/commit/a9d3044))
|
||||
|
||||
|
||||
|
||||
## 10.3.0 (2021-11-15)
|
||||
|
||||
* [Bumped Version] 10.3.0 ([20e9142](https://github.com/maximegris/angular-electron/commit/20e9142))
|
||||
* fix/Polyfill Node.js core modules in Webpack (5+) ([e3c0d9f](https://github.com/maximegris/angular-electron/commit/e3c0d9f))
|
||||
* ref/ move angularCompilerOptions to tsconfig ([e07410b](https://github.com/maximegris/angular-electron/commit/e07410b))
|
||||
* remove include statement from base tsconfig.json ([aebec1a](https://github.com/maximegris/angular-electron/commit/aebec1a))
|
||||
* Update README.md ([47fc3ff](https://github.com/maximegris/angular-electron/commit/47fc3ff))
|
||||
|
||||
|
||||
|
||||
## 10.2.0 (2021-11-14)
|
||||
|
||||
* [Bumped Version] 10.2.0 ([edb5269](https://github.com/maximegris/angular-electron/commit/edb5269))
|
||||
* add missing @ on the SCSS import for Material theme fix ([dc9ee14](https://github.com/maximegris/angular-electron/commit/dc9ee14))
|
||||
* bugfix/ electron builder 22.11 needs Node 14+ ([c7dbb3f](https://github.com/maximegris/angular-electron/commit/c7dbb3f))
|
||||
* Bump electron from 13.1.7 to 13.3.0 ([fe0280a](https://github.com/maximegris/angular-electron/commit/fe0280a))
|
||||
* remove screenshot test ([62facb1](https://github.com/maximegris/angular-electron/commit/62facb1))
|
||||
* replace Spectron by Playwright ([558c646](https://github.com/maximegris/angular-electron/commit/558c646))
|
||||
* Update README.md ([4b44d8b](https://github.com/maximegris/angular-electron/commit/4b44d8b))
|
||||
* Update README.md ([c385d6a](https://github.com/maximegris/angular-electron/commit/c385d6a))
|
||||
|
||||
|
||||
|
||||
## 10.1.0 (2021-07-17)
|
||||
|
||||
* [Bumped Version] 10.1.0 ([f399d75](https://github.com/maximegris/angular-electron/commit/f399d75))
|
||||
* Fix typo & some spacing ([d2b6ee0](https://github.com/maximegris/angular-electron/commit/d2b6ee0))
|
||||
* Fix typo in branch section ([623d0fa](https://github.com/maximegris/angular-electron/commit/623d0fa))
|
||||
* ref/action-xvfb-linux ([60b591b](https://github.com/maximegris/angular-electron/commit/60b591b))
|
||||
* Upgrade to Angular 12.1.2 / Electron 13.1.7 ([8274ae3](https://github.com/maximegris/angular-electron/commit/8274ae3))
|
||||
|
||||
|
||||
|
||||
## <small>10.0.2 (2021-06-25)</small>
|
||||
|
||||
* [Bumped Version] 10.0.2 ([e8f36a3](https://github.com/maximegris/angular-electron/commit/e8f36a3))
|
||||
* ci/ workflow ubuntu without test ([2b819d7](https://github.com/maximegris/angular-electron/commit/2b819d7))
|
||||
* fix/ spectron e2e test ([742095f](https://github.com/maximegris/angular-electron/commit/742095f))
|
||||
* ref/ set default angular eslint rules ([7d531d1](https://github.com/maximegris/angular-electron/commit/7d531d1))
|
||||
|
||||
|
||||
|
||||
## <small>10.0.1 (2021-06-19)</small>
|
||||
|
||||
* [Bumped Version] 10.0.1 ([9b79616](https://github.com/maximegris/angular-electron/commit/9b79616))
|
||||
* fix/ use node 3rd party libraries in renderer process ([1fb08a7](https://github.com/maximegris/angular-electron/commit/1fb08a7))
|
||||
* ref/ eslint conf ([af0a677](https://github.com/maximegris/angular-electron/commit/af0a677))
|
||||
* update README (electron builder two package structure) ([2e29232](https://github.com/maximegris/angular-electron/commit/2e29232))
|
||||
* Update README.md ([33f5f6d](https://github.com/maximegris/angular-electron/commit/33f5f6d))
|
||||
|
||||
|
||||
|
||||
## 10.0.0 (2021-05-30)
|
||||
|
||||
* [Bumped Version] 10.0.0 ([987e996](https://github.com/maximegris/angular-electron/commit/987e996))
|
||||
* [Bumped Version] 10.0.0 ([38f58de](https://github.com/maximegris/angular-electron/commit/38f58de))
|
||||
* add HOW_TO.md ([3a85294](https://github.com/maximegris/angular-electron/commit/3a85294))
|
||||
* fix/ github actions - angular-cli need node 12+ ([154d3fc](https://github.com/maximegris/angular-electron/commit/154d3fc))
|
||||
* fix/ github actions - angular12 need node 11+ ([323aeb8](https://github.com/maximegris/angular-electron/commit/323aeb8))
|
||||
* github action - node 12/14/15 ([dd9cf0d](https://github.com/maximegris/angular-electron/commit/dd9cf0d))
|
||||
* ref/ electron builder two packages build ([d533e49](https://github.com/maximegris/angular-electron/commit/d533e49))
|
||||
* ref/ move how to install with ng add in HOW_TO.md ([34e1232](https://github.com/maximegris/angular-electron/commit/34e1232))
|
||||
* Upgrade to Angular 12 / Electron 13 ([fc006d2](https://github.com/maximegris/angular-electron/commit/fc006d2))
|
||||
|
||||
|
||||
|
||||
## <small>9.0.8 (2021-05-30)</small>
|
||||
|
||||
* [Bumped Version] 9.0.8 ([21197ab](https://github.com/maximegris/angular-electron/commit/21197ab))
|
||||
* Added how to install Angular Material to readme ([d904101](https://github.com/maximegris/angular-electron/commit/d904101))
|
||||
* fix README typo ([aa691d9](https://github.com/maximegris/angular-electron/commit/aa691d9))
|
||||
* Update electron version ([b1f4451](https://github.com/maximegris/angular-electron/commit/b1f4451))
|
||||
* Update electron version ([494c607](https://github.com/maximegris/angular-electron/commit/494c607))
|
||||
* 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)
|
||||
|
||||
|
||||
|
||||
## <small>9.0.7 (2021-04-07)</small>
|
||||
|
||||
* [Bumped Version] 9.0.7 ([b8371ee](https://github.com/maximegris/angular-electron/commit/b8371ee))
|
||||
* Account for the change in context isolation with Electron 12 ([d08ae8f](https://github.com/maximegris/angular-electron/commit/d08ae8f))
|
||||
* fix/ angular.json - files to lint ([ec7ce0c](https://github.com/maximegris/angular-electron/commit/ec7ce0c))
|
||||
* misc/ vscode debug ([f4225a3](https://github.com/maximegris/angular-electron/commit/f4225a3))
|
||||
* montée version Angular 11.2.8 / Electrion 12.0.2 ([371dafa](https://github.com/maximegris/angular-electron/commit/371dafa))
|
||||
* Update FUNDING.yml ([54a42eb](https://github.com/maximegris/angular-electron/commit/54a42eb))
|
||||
* Update FUNDING.yml ([3749cfa](https://github.com/maximegris/angular-electron/commit/3749cfa))
|
||||
|
||||
|
||||
|
||||
## <small>9.0.6 (2021-03-21)</small>
|
||||
|
||||
* [Bumped Version] 9.0.6 ([0a7842f](https://github.com/maximegris/angular-electron/commit/0a7842f))
|
||||
* Create pull_request_template.md ([adac86e](https://github.com/maximegris/angular-electron/commit/adac86e))
|
||||
* fix/ eslint parsing 'parserOptions.project' ([08ce022](https://github.com/maximegris/angular-electron/commit/08ce022))
|
||||
* img for loading the portable .exe ([5c18d64](https://github.com/maximegris/angular-electron/commit/5c18d64))
|
||||
* misc/ add code of conduct ([742c9fb](https://github.com/maximegris/angular-electron/commit/742c9fb))
|
||||
* misc/ readme typo ([f4d3ebb](https://github.com/maximegris/angular-electron/commit/f4d3ebb))
|
||||
* misc/ remove useless files from final package ([414d61b](https://github.com/maximegris/angular-electron/commit/414d61b))
|
||||
* misc/ Update issue templates ([2dede45](https://github.com/maximegris/angular-electron/commit/2dede45))
|
||||
|
||||
|
||||
|
||||
## <small>9.0.5 (2021-03-19)</small>
|
||||
|
||||
* [Bumped version] 9.0.5 ([2e8e630](https://github.com/maximegris/angular-electron/commit/2e8e630))
|
||||
* add github actions badges ([6b505e3](https://github.com/maximegris/angular-electron/commit/6b505e3))
|
||||
* github actions on master & puul request ([e474264](https://github.com/maximegris/angular-electron/commit/e474264))
|
||||
* misc / upgrade to angular 11.2.6 ([982cbac](https://github.com/maximegris/angular-electron/commit/982cbac))
|
||||
* misc/ upgrade angular-eslint to 2.0.2 ([b8230c9](https://github.com/maximegris/angular-electron/commit/b8230c9))
|
||||
* misc/ upgrade to Electron 12.0.1 ([d2f9fc2](https://github.com/maximegris/angular-electron/commit/d2f9fc2))
|
||||
* redirect to github actions when click on badges ([a26d5f1](https://github.com/maximegris/angular-electron/commit/a26d5f1))
|
||||
* ref/ replace electron.remote (deprecated) by @electron/remote ([8a4b624](https://github.com/maximegris/angular-electron/commit/8a4b624))
|
||||
* remove travisci ([831ea51](https://github.com/maximegris/angular-electron/commit/831ea51))
|
||||
* set github actions ([edb6f2a](https://github.com/maximegris/angular-electron/commit/edb6f2a))
|
||||
|
||||
|
||||
|
||||
## <small>9.0.4 (2021-02-13)</small>
|
||||
|
||||
* [Bumped Version] 9.0.4 ([e6d0aa6](https://github.com/maximegris/angular-electron/commit/e6d0aa6))
|
||||
* extractCss true by default & deprecated ([4af9def](https://github.com/maximegris/angular-electron/commit/4af9def))
|
||||
* Fix typo in introduction ([c3b8258](https://github.com/maximegris/angular-electron/commit/c3b8258))
|
||||
* misc/ upgrade to Angular 11.2.0 & Electrion 11.2.0 ([0662793](https://github.com/maximegris/angular-electron/commit/0662793))
|
||||
* spelling ([3b7f69a](https://github.com/maximegris/angular-electron/commit/3b7f69a))
|
||||
* target only chrome 85 matching electron version ([b947d2d](https://github.com/maximegris/angular-electron/commit/b947d2d))
|
||||
* Update README.md ([bdb91e4](https://github.com/maximegris/angular-electron/commit/bdb91e4))
|
||||
|
||||
|
||||
|
||||
## <small>9.0.3 (2020-12-08)</small>
|
||||
|
||||
* [Bumped Version] 9.0.3 ([fe55273](https://github.com/maximegris/angular-electron/commit/fe55273))
|
||||
* fix/ upgrade angular to 11.0.2 ([203e608](https://github.com/maximegris/angular-electron/commit/203e608))
|
||||
* misc/ upgrade dependencies ([922bbf9](https://github.com/maximegris/angular-electron/commit/922bbf9))
|
||||
* misc/ upgrade to Electron 11 ([becaa73](https://github.com/maximegris/angular-electron/commit/becaa73))
|
||||
|
||||
|
||||
|
||||
## <small>9.0.2 (2020-11-15)</small>
|
||||
|
||||
* [Bumped Version] 9.0.2 ([be43e09](https://github.com/maximegris/angular-electron/commit/be43e09))
|
||||
* Fix typo in eslint rule ([b8429b8](https://github.com/maximegris/angular-electron/commit/b8429b8))
|
||||
* misc/ remove old code ([9933622](https://github.com/maximegris/angular-electron/commit/9933622))
|
||||
|
||||
|
||||
|
||||
## <small>9.0.1 (2020-11-14)</small>
|
||||
|
||||
* [Bumped Version] 9.0.1 ([066dcdb](https://github.com/maximegris/angular-electron/commit/066dcdb))
|
||||
* ref/ support remote module in unit test ([04d9e8a](https://github.com/maximegris/angular-electron/commit/04d9e8a))
|
||||
|
||||
|
||||
|
||||
## 9.0.0 (2020-11-14)
|
||||
|
||||
* [Bumped Version] 9.0.0 ([a7964be](https://github.com/maximegris/angular-electron/commit/a7964be))
|
||||
* misc/ upgrade to Angular 11 ([d265dfa](https://github.com/maximegris/angular-electron/commit/d265dfa))
|
||||
|
||||
|
||||
|
||||
## <small>8.0.6 (2020-11-14)</small>
|
||||
|
||||
* [Bumped Version] 8.0.6 ([e0fb539](https://github.com/maximegris/angular-electron/commit/e0fb539))
|
||||
* fix/ zonejs version ([0b9b8b3](https://github.com/maximegris/angular-electron/commit/0b9b8b3))
|
||||
|
||||
|
||||
|
||||
## <small>8.0.5 (2020-09-28)</small>
|
||||
|
||||
* [Bumped Version] 8.0.5 ([2374427](https://github.com/maximegris/angular-electron/commit/2374427))
|
||||
* misc/ ci - remove fast finish option ([d4ce11d](https://github.com/maximegris/angular-electron/commit/d4ce11d))
|
||||
* misc/ enable remote module in renderer process (needed for spectron) ([3309855](https://github.com/maximegris/angular-electron/commit/3309855))
|
||||
* 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)
|
||||
* misc/ upgrade to Electron 10 & Angular 10.1 ([07786a2](https://github.com/maximegris/angular-electron/commit/07786a2))
|
||||
|
||||
|
||||
|
||||
## <small>8.0.4 (2020-08-30)</small>
|
||||
|
||||
* [Bumped Version] 8.0.4 ([ac3682d](https://github.com/maximegris/angular-electron/commit/ac3682d))
|
||||
* fix/ ng lint config ([753f828](https://github.com/maximegris/angular-electron/commit/753f828))
|
||||
* fix/ README typo (e2e chapter) ([85aaf86](https://github.com/maximegris/angular-electron/commit/85aaf86))
|
||||
* fix/ travis ci conf ([2632a2d](https://github.com/maximegris/angular-electron/commit/2632a2d))
|
||||
* misc/ clarify node lib import ([f41ce65](https://github.com/maximegris/angular-electron/commit/f41ce65))
|
||||
* misc/ upgrade Electron 10 ([b71c514](https://github.com/maximegris/angular-electron/commit/b71c514))
|
||||
* ref/ clean custom webpack target ('electron-renderer' or 'web') ([e3a4e01](https://github.com/maximegris/angular-electron/commit/e3a4e01))
|
||||
* Update README.md ([5cf5e2b](https://github.com/maximegris/angular-electron/commit/5cf5e2b))
|
||||
* Update README.md ([0b70270](https://github.com/maximegris/angular-electron/commit/0b70270))
|
||||
|
||||
|
||||
|
||||
## <small>8.0.3 (2020-08-12)</small>
|
||||
|
||||
* [Bumped Version] 8.0.2 ([84598a5](https://github.com/maximegris/angular-electron/commit/84598a5))
|
||||
* [Bumped Version] 8.0.3 ([00ce410](https://github.com/maximegris/angular-electron/commit/00ce410))
|
||||
* fix/ e2e tests with Spectron ([472afc8](https://github.com/maximegris/angular-electron/commit/472afc8))
|
||||
* fix/ require error with nodeIntegration = false ([61c5c6b](https://github.com/maximegris/angular-electron/commit/61c5c6b))
|
||||
* misc/ Upgrade Angular (10.0.9) and Electron (9.2.0) ([e3d2fca](https://github.com/maximegris/angular-electron/commit/e3d2fca))
|
||||
|
||||
|
||||
|
||||
## <small>8.0.1 (2020-08-12)</small>
|
||||
|
||||
* [Bumped Version] 8.0.1 ([e032729](https://github.com/maximegris/angular-electron/commit/e032729))
|
||||
* fix/ eslint on main.ts file ([4b17ab6](https://github.com/maximegris/angular-electron/commit/4b17ab6))
|
||||
* misc/ remove warinng npm start ( tsconfg.app include key) ([8a73b4a](https://github.com/maximegris/angular-electron/commit/8a73b4a))
|
||||
* misc/ upgrade Angular ([a1ef40d](https://github.com/maximegris/angular-electron/commit/a1ef40d))
|
||||
|
||||
|
||||
|
||||
## 8.0.0 (2020-07-13)
|
||||
|
||||
* [Bumped Version] 8.0.0 ([78a4c9e](https://github.com/maximegris/angular-electron/commit/78a4c9e))
|
||||
* added "style" key to "schematics" ([6f5bbc5](https://github.com/maximegris/angular-electron/commit/6f5bbc5))
|
||||
* Create FUNDING.yml ([087570a](https://github.com/maximegris/angular-electron/commit/087570a))
|
||||
* misc/ update README (Angular & Electron version) ([2d33b15](https://github.com/maximegris/angular-electron/commit/2d33b15))
|
||||
* ref/ Upgrade to Angular 10.3 & Electron 9.1 ([84f0519](https://github.com/maximegris/angular-electron/commit/84f0519))
|
||||
* Update README.md ([11d0a17](https://github.com/maximegris/angular-electron/commit/11d0a17))
|
||||
|
||||
|
||||
|
||||
## <small>7.2.1 (2020-06-20)</small>
|
||||
|
||||
* [Bumped Version] 7.2.1 ([cabd11e](https://github.com/maximegris/angular-electron/commit/cabd11e))
|
||||
* ref/ keep only 1 eslint config ([e942747](https://github.com/maximegris/angular-electron/commit/e942747))
|
||||
|
||||
|
||||
|
||||
## 7.2.0 (2020-06-20)
|
||||
|
||||
* [Bumped Version] 7.2.0 ([a98a84a](https://github.com/maximegris/angular-electron/commit/a98a84a))
|
||||
* feat/ merge electron-builder npm scripts ([ddd92b3](https://github.com/maximegris/angular-electron/commit/ddd92b3))
|
||||
* fix/ ng lint with eslint ([92d7419](https://github.com/maximegris/angular-electron/commit/92d7419))
|
||||
* misc/ upgrade Electron (9.0.4) / Angular (9.1.11) ([21f7401](https://github.com/maximegris/angular-electron/commit/21f7401))
|
||||
* ref/ electron remote deprecated ([a8628fc](https://github.com/maximegris/angular-electron/commit/a8628fc))
|
||||
|
||||
|
||||
|
||||
## 7.1.0 (2020-05-02)
|
||||
|
||||
* [Bumped Version] 7.1.0 ([8dffcea](https://github.com/maximegris/angular-electron/commit/8dffcea))
|
||||
* 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)
|
||||
* fix/ Karma configuration to debug easily ([273e752](https://github.com/maximegris/angular-electron/commit/273e752))
|
||||
|
||||
|
||||
|
||||
## <small>7.0.5 (2020-04-26)</small>
|
||||
|
||||
* [Bumped Version] 7.0.5 ([63eed52](https://github.com/maximegris/angular-electron/commit/63eed52))
|
||||
* Upgrade Angular 9.1.3 & Electron 8.2.3 ([00b9d43](https://github.com/maximegris/angular-electron/commit/00b9d43))
|
||||
|
||||
|
||||
|
||||
## <small>7.0.4 (2020-04-20)</small>
|
||||
|
||||
* [Bumped Version] 7.0.4 ([dbce7a0](https://github.com/maximegris/angular-electron/commit/dbce7a0))
|
||||
* ref/ make app reloading/working with and without usehash routing strategy ([386ce67](https://github.com/maximegris/angular-electron/commit/386ce67))
|
||||
* Transparent background issue fix for Linux ([4c0c169](https://github.com/maximegris/angular-electron/commit/4c0c169))
|
||||
|
||||
|
||||
|
||||
## <small>7.0.3 (2020-04-11)</small>
|
||||
|
||||
* [Bumped Version] 7.0.2 ([c4c36f6](https://github.com/maximegris/angular-electron/commit/c4c36f6))
|
||||
* [Bumped Version] 7.0.3 ([6206066](https://github.com/maximegris/angular-electron/commit/6206066))
|
||||
* Fix a typo in README.md ([86ac910](https://github.com/maximegris/angular-electron/commit/86ac910))
|
||||
* fix/ polyfills in tsconfig ([cf4f172](https://github.com/maximegris/angular-electron/commit/cf4f172))
|
||||
* misc/ changelog ([19f6027](https://github.com/maximegris/angular-electron/commit/19f6027))
|
||||
* misc/ Changelog ([67437ba](https://github.com/maximegris/angular-electron/commit/67437ba))
|
||||
* misc/ maj angular 9.1.1 & electron 8.2.1 ([061e01e](https://github.com/maximegris/angular-electron/commit/061e01e))
|
||||
* misc/ maj eslint dep ([09fc1f7](https://github.com/maximegris/angular-electron/commit/09fc1f7))
|
||||
* moved all app icons to assets/icons folder ([7d6bb69](https://github.com/maximegris/angular-electron/commit/7d6bb69))
|
||||
* ref/ set allowRendererProcessReuse to true ([7c5c43b](https://github.com/maximegris/angular-electron/commit/7c5c43b))
|
||||
|
||||
|
||||
|
||||
## <small>7.0.1 (2020-02-22)</small>
|
||||
|
||||
* [Bumped Version] 7.0.1 ([7a84ca0](https://github.com/maximegris/angular-electron/commit/7a84ca0))
|
||||
* fix/ README dependencies version ([7276d96](https://github.com/maximegris/angular-electron/commit/7276d96))
|
||||
* misc/ upgrade Angular 9.0.2 & Electron 8.0.1 ([174b36f](https://github.com/maximegris/angular-electron/commit/174b36f))
|
||||
* ref/ travis test node 10 & 12 ([8b7ee5b](https://github.com/maximegris/angular-electron/commit/8b7ee5b))
|
||||
|
||||
|
||||
|
||||
## 7.0.0 (2020-02-09)
|
||||
|
||||
* [Bumped Version] 7.0.0 ([0f304d2](https://github.com/maximegris/angular-electron/commit/0f304d2))
|
||||
* cast isElectron to boolean #429 ([ee06695](https://github.com/maximegris/angular-electron/commit/ee06695)), closes [#429](https://github.com/maximegris/angular-electron/issues/429)
|
||||
* feat/ update angular 8 deps ([7df49ff](https://github.com/maximegris/angular-electron/commit/7df49ff))
|
||||
* feat/ update to Angular 9 & Electron 8 ([a304034](https://github.com/maximegris/angular-electron/commit/a304034))
|
||||
* fix/ e2e tests ([395d2da](https://github.com/maximegris/angular-electron/commit/395d2da))
|
||||
* hot reload note ([28e1854](https://github.com/maximegris/angular-electron/commit/28e1854))
|
||||
* ref/ upgrade electron to v8 ([320ce2f](https://github.com/maximegris/angular-electron/commit/320ce2f))
|
||||
|
||||
|
||||
|
||||
## <small>6.4.1 (2019-12-25)</small>
|
||||
|
||||
* feat/ update Electron (7.1.2) ([3d76ff5](https://github.com/maximegris/angular-electron/commit/3d76ff5))
|
||||
* misc/ maj changelog ([eb46727](https://github.com/maximegris/angular-electron/commit/eb46727))
|
||||
* reef/ update stale bot ([671b7c9](https://github.com/maximegris/angular-electron/commit/671b7c9))
|
||||
* ref/ remove usunsed files ([9bf5824](https://github.com/maximegris/angular-electron/commit/9bf5824))
|
||||
|
||||
|
||||
|
||||
## 6.4.0 (2019-11-19)
|
||||
|
||||
* [Bumped Version] 6.4.0 ([fac9eef](https://github.com/maximegris/angular-electron/commit/fac9eef))
|
||||
* #412 change selector of WebviewDirective ([76e7918](https://github.com/maximegris/angular-electron/commit/76e7918)), closes [#412](https://github.com/maximegris/angular-electron/issues/412)
|
||||
* eslint-migration ([7637f45](https://github.com/maximegris/angular-electron/commit/7637f45))
|
||||
* eslint-migration - disable warnings/errors ([99e7ec0](https://github.com/maximegris/angular-electron/commit/99e7ec0))
|
||||
* eslint-migration - fix removed translation import ([2f64f37](https://github.com/maximegris/angular-electron/commit/2f64f37))
|
||||
* eslint-migration - remove tslint.json configuration ([3c1f9f6](https://github.com/maximegris/angular-electron/commit/3c1f9f6))
|
||||
* karma-electron ([21f97fd](https://github.com/maximegris/angular-electron/commit/21f97fd))
|
||||
* karma-electron - remove chrome deps for travis ([0f09907](https://github.com/maximegris/angular-electron/commit/0f09907))
|
||||
* misc/ add npmrc ([9d94f9c](https://github.com/maximegris/angular-electron/commit/9d94f9c))
|
||||
* misc/ typo README ([d52b03a](https://github.com/maximegris/angular-electron/commit/d52b03a))
|
||||
* permissive eslint rules to remove linter warnings ([964b57f](https://github.com/maximegris/angular-electron/commit/964b57f))
|
||||
* require is not defined ([632c454](https://github.com/maximegris/angular-electron/commit/632c454))
|
||||
|
||||
|
||||
|
||||
## <small>6.3.1 (2019-11-01)</small>
|
||||
|
||||
* [Bumped Version] 6.3.1 ([671b6a3](https://github.com/maximegris/angular-electron/commit/671b6a3))
|
||||
* #395 - require is not defined ([c4b2cb6](https://github.com/maximegris/angular-electron/commit/c4b2cb6)), closes [#395](https://github.com/maximegris/angular-electron/issues/395)
|
||||
* changelog ([39b0bca](https://github.com/maximegris/angular-electron/commit/39b0bca))
|
||||
|
||||
|
||||
|
||||
## 6.3.0 (2019-10-25)
|
||||
|
||||
* [Bumped Version] 6.3.0 ([09f9646](https://github.com/maximegris/angular-electron/commit/09f9646))
|
||||
* misc/ change Electron version to 7.0.0 in README ([6a4e2de](https://github.com/maximegris/angular-electron/commit/6a4e2de))
|
||||
* misc/ remove link to dependenciesci ([93d5a8c](https://github.com/maximegris/angular-electron/commit/93d5a8c))
|
||||
* misc/ upgrade Electron 7 ([d732340](https://github.com/maximegris/angular-electron/commit/d732340))
|
||||
|
||||
|
||||
|
||||
## 6.2.0 (2019-09-29)
|
||||
|
||||
* [Bumped Version] 6.2.0 ([8838e0e](https://github.com/maximegris/angular-electron/commit/8838e0e))
|
||||
* Maj Changelog ([bc4c950](https://github.com/maximegris/angular-electron/commit/bc4c950))
|
||||
* misc/ add Stale to close unactive issues ([398bdf1](https://github.com/maximegris/angular-electron/commit/398bdf1))
|
||||
* Upgrade Angular 8.2.8 & Electron 6.0.10 ([2ecda63](https://github.com/maximegris/angular-electron/commit/2ecda63))
|
||||
|
||||
|
||||
|
||||
## 6.1.0 (2019-08-15)
|
||||
|
||||
* [Bumped Version] 6.1.0 ([b47c594](https://github.com/maximegris/angular-electron/commit/b47c594))
|
||||
* [DELETE]: vscode settings removed ([becc9b4](https://github.com/maximegris/angular-electron/commit/becc9b4))
|
||||
* [UPDATE]: Typescript version fixes ([a284c23](https://github.com/maximegris/angular-electron/commit/a284c23))
|
||||
* Angular src restructured as modular as per angular official guidelines, .travis.yml support added fo ([5983703](https://github.com/maximegris/angular-electron/commit/5983703))
|
||||
* bump tslint & codelyzer versions, update tslint rules & alphabetize ([8425cdc](https://github.com/maximegris/angular-electron/commit/8425cdc))
|
||||
* Corejs path updates ([88056d6](https://github.com/maximegris/angular-electron/commit/88056d6))
|
||||
* Electron 6.0.0 ([1aef350](https://github.com/maximegris/angular-electron/commit/1aef350))
|
||||
* fix/ Version Electron in README ([acf0d4f](https://github.com/maximegris/angular-electron/commit/acf0d4f))
|
||||
* misc/ upgrade Angular 8.2 / Spectron 7 ([6e2211f](https://github.com/maximegris/angular-electron/commit/6e2211f))
|
||||
* Update dependencies ([bd51f28](https://github.com/maximegris/angular-electron/commit/bd51f28))
|
||||
|
||||
|
||||
|
||||
## <small>6.0.1 (2019-05-31)</small>
|
||||
|
||||
* [Bumped Version] 6.0.1 ([4f9cef3](https://github.com/maximegris/angular-electron/commit/4f9cef3))
|
||||
* Add CI for macOS. ([3ba02e3](https://github.com/maximegris/angular-electron/commit/3ba02e3))
|
||||
* ref/ strict version build-angular & zonejs ([5a24b56](https://github.com/maximegris/angular-electron/commit/5a24b56))
|
||||
* ref/ strict version codelyzer ([6ede0c8](https://github.com/maximegris/angular-electron/commit/6ede0c8))
|
||||
* Remove Node.js v12. ([ccbf6cd](https://github.com/maximegris/angular-electron/commit/ccbf6cd))
|
||||
* Run CI for Node.js version 10 ([2538965](https://github.com/maximegris/angular-electron/commit/2538965))
|
||||
* Use service xvfb. ([4db31e3](https://github.com/maximegris/angular-electron/commit/4db31e3))
|
||||
|
||||
|
||||
|
||||
## 6.0.0 (2019-05-31)
|
||||
|
||||
* [Bumped Version] 6.0.0 ([fb719ab](https://github.com/maximegris/angular-electron/commit/fb719ab))
|
||||
* bump angular version ([7a564a0](https://github.com/maximegris/angular-electron/commit/7a564a0))
|
||||
* Fix Travis CI link ([10aaa4c](https://github.com/maximegris/angular-electron/commit/10aaa4c))
|
||||
* Not gitignore src/karma.conf.js ([7599320](https://github.com/maximegris/angular-electron/commit/7599320))
|
||||
* ref/ upgrade Angular 8 and Electron 5 ([92334cf](https://github.com/maximegris/angular-electron/commit/92334cf))
|
||||
* update versions and prepare for electron 5 ([07a5786](https://github.com/maximegris/angular-electron/commit/07a5786))
|
||||
* version bump ([bb1d6bb](https://github.com/maximegris/angular-electron/commit/bb1d6bb))
|
||||
* feat(CI): update Ubuntu and Node versions in Travis ([e0ff557](https://github.com/maximegris/angular-electron/commit/e0ff557))
|
||||
* fix: type conflicts ([a2971bf](https://github.com/maximegris/angular-electron/commit/a2971bf))
|
||||
* fix(e2e): add mocha types ([20e1e89](https://github.com/maximegris/angular-electron/commit/20e1e89))
|
||||
* 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)
|
||||
* chore: Spectron for e2e tests ([901438a](https://github.com/maximegris/angular-electron/commit/901438a))
|
||||
|
||||
|
||||
|
||||
## 5.1.0 (2018-11-30)
|
||||
|
||||
* [Bumped Version] 5.1.0 ([b790e12](https://github.com/maximegris/angular-electron/commit/b790e12))
|
||||
* fix/ typo Angular 7 ([fde371f](https://github.com/maximegris/angular-electron/commit/fde371f))
|
||||
* fix/ typo README ([723233c](https://github.com/maximegris/angular-electron/commit/723233c))
|
||||
* fix/ typo script npm electron:windows ([45bab44](https://github.com/maximegris/angular-electron/commit/45bab44))
|
||||
* ref/ remve npx - fix vulnerabilities ([41aeb57](https://github.com/maximegris/angular-electron/commit/41aeb57))
|
||||
* update README ([f146d5d](https://github.com/maximegris/angular-electron/commit/f146d5d))
|
||||
|
||||
|
||||
|
||||
## 5.0.0 (2018-11-11)
|
||||
|
||||
* Fix typos in README file ([0440ee9](https://github.com/maximegris/angular-electron/commit/0440ee9))
|
||||
* ref/ Generate changelog ([a89b3ce](https://github.com/maximegris/angular-electron/commit/a89b3ce))
|
||||
* ref/ Upgrade to Angular 7 ([315a79b](https://github.com/maximegris/angular-electron/commit/315a79b))
|
||||
* Update electron-builder.json files rule ([82c7bcf](https://github.com/maximegris/angular-electron/commit/82c7bcf))
|
||||
* Update Version Electron 2 to 3 #hacktoberfest ([f083328](https://github.com/maximegris/angular-electron/commit/f083328))
|
||||
|
||||
|
||||
|
||||
## <small>4.2.2 (2018-08-22)</small>
|
||||
|
||||
* fix/ build serve & electron with single tsc command ([9106c8f](https://github.com/maximegris/angular-electron/commit/9106c8f))
|
||||
* fix/ typo README ([a9448aa](https://github.com/maximegris/angular-electron/commit/a9448aa))
|
||||
|
||||
|
||||
|
||||
## <small>4.2.1 (2018-08-22)</small>
|
||||
|
||||
* fix/ jslib in main process error ([ef33f5e](https://github.com/maximegris/angular-electron/commit/ef33f5e))
|
||||
|
||||
|
||||
|
||||
## 4.2.0 (2018-08-19)
|
||||
|
||||
* [Bumped Version] V4.2.0 ([0da3856](https://github.com/maximegris/angular-electron/commit/0da3856))
|
||||
* fix/ electron builder output directories #200 ([f4535e5](https://github.com/maximegris/angular-electron/commit/f4535e5)), closes [#200](https://github.com/maximegris/angular-electron/issues/200)
|
||||
* Make sure tsconfig be used. ([961c8b1](https://github.com/maximegris/angular-electron/commit/961c8b1))
|
||||
* ref/ remove some directories of tsconfig.app.json ([1adad4a](https://github.com/maximegris/angular-electron/commit/1adad4a))
|
||||
* Upgrade Angular (6.1.2) deps ([d8818c1](https://github.com/maximegris/angular-electron/commit/d8818c1))
|
||||
|
||||
|
||||
|
||||
## 4.1.0 (2018-06-27)
|
||||
|
||||
* Allow Angular Using Electron Modules ([ec705ee](https://github.com/maximegris/angular-electron/commit/ec705ee))
|
||||
* fix/ version angular (revert 6.0.6 -> 6.0.5) ([63a41b8](https://github.com/maximegris/angular-electron/commit/63a41b8))
|
||||
* fix/ version ts-node ([0d8341a](https://github.com/maximegris/angular-electron/commit/0d8341a))
|
||||
* ref/ postinstall web & electron ([50657d0](https://github.com/maximegris/angular-electron/commit/50657d0))
|
||||
* update README ([1d48e32](https://github.com/maximegris/angular-electron/commit/1d48e32))
|
||||
* feat(zone): add zone-patch-electron to patch Electron native APIs in polyfills ([01842e2](https://github.com/maximegris/angular-electron/commit/01842e2))
|
||||
|
||||
|
||||
|
||||
## 4.0.0 (2018-05-25)
|
||||
|
||||
* misc/ remove unused packages ([a7e33b6](https://github.com/maximegris/angular-electron/commit/a7e33b6))
|
||||
* misc/ update Changelog ([b758122](https://github.com/maximegris/angular-electron/commit/b758122))
|
||||
* ref/ upgrade angular to 6.0.3 ([e7fac6e](https://github.com/maximegris/angular-electron/commit/e7fac6e))
|
||||
* refactor: update electron, electron-builder to latest (2.0.2, 20.14.7) ([f19e6ee](https://github.com/maximegris/angular-electron/commit/f19e6ee))
|
||||
* refactor: upgrade to NodeJS 8, Angular 6, CLI 6, Electron 2.0, RxJS 6.1 ([e37efdb](https://github.com/maximegris/angular-electron/commit/e37efdb))
|
||||
* refactor(hooks): replace hooks to ng-cli fileReplacements logic ([c940037](https://github.com/maximegris/angular-electron/commit/c940037))
|
||||
* fix(test): create polyfills-test.ts for karma test & setup Travis CI ([7fbc68c](https://github.com/maximegris/angular-electron/commit/7fbc68c))
|
||||
* fix(travis): set progress to false (speed up npm) ([be48531](https://github.com/maximegris/angular-electron/commit/be48531))
|
||||
|
||||
|
||||
|
||||
## <small>3.4.1 (2018-05-25)</small>
|
||||
|
||||
* misc/ update changelog ([70b359f](https://github.com/maximegris/angular-electron/commit/70b359f))
|
||||
* Modify electron builder configuration to remove source code and tests ([0cf6899](https://github.com/maximegris/angular-electron/commit/0cf6899))
|
||||
* version 3.4.1 ([308ea9c](https://github.com/maximegris/angular-electron/commit/308ea9c))
|
||||
|
||||
|
||||
|
||||
## 3.4.0 (2018-05-25)
|
||||
|
||||
* misc/ update changelog ([7d5eeb3](https://github.com/maximegris/angular-electron/commit/7d5eeb3))
|
||||
* ref/ remove contributors ([6dc97a1](https://github.com/maximegris/angular-electron/commit/6dc97a1))
|
||||
* The file is unused ([05c9e39](https://github.com/maximegris/angular-electron/commit/05c9e39))
|
||||
* Translation issue ([35354b1](https://github.com/maximegris/angular-electron/commit/35354b1))
|
||||
* version 3.4.0 ([06d6b0f](https://github.com/maximegris/angular-electron/commit/06d6b0f))
|
||||
|
||||
|
||||
|
||||
## 3.3.0 (2018-04-15)
|
||||
|
||||
* add Changelog file ([71083f1](https://github.com/maximegris/angular-electron/commit/71083f1))
|
||||
* fix/ typo README.md (production variables) ([a8c2b63](https://github.com/maximegris/angular-electron/commit/a8c2b63))
|
||||
* version 3.3.0 ([a88bda6](https://github.com/maximegris/angular-electron/commit/a88bda6))
|
||||
* version 3.3.0 changelog ([ddfbbf9](https://github.com/maximegris/angular-electron/commit/ddfbbf9))
|
||||
|
||||
|
||||
|
||||
## 3.2.0 (2018-04-15)
|
||||
|
||||
* fix e2e tests based on PR #161 and terminate the npm process after test execution ([fccf348](https://github.com/maximegris/angular-electron/commit/fccf348)), closes [#161](https://github.com/maximegris/angular-electron/issues/161)
|
||||
* fix/ app e2e spec ([8046b2a](https://github.com/maximegris/angular-electron/commit/8046b2a))
|
||||
* Including electron to eliminate Electron not found err sg ([d78203f](https://github.com/maximegris/angular-electron/commit/d78203f))
|
||||
* provide webFrame access ([6bd044e](https://github.com/maximegris/angular-electron/commit/6bd044e))
|
||||
* ref/ add node/electron module import as exemple : fs and remote ([e3ad12d](https://github.com/maximegris/angular-electron/commit/e3ad12d))
|
||||
* remove copyfiles ([9af5138](https://github.com/maximegris/angular-electron/commit/9af5138))
|
||||
* update dependencies ([89963ab](https://github.com/maximegris/angular-electron/commit/89963ab))
|
||||
* version 3.2.0 ([8dc69fa](https://github.com/maximegris/angular-electron/commit/8dc69fa))
|
||||
|
||||
|
||||
|
||||
## 3.1.0 (2018-03-15)
|
||||
|
||||
* Added option -o to script npm run ng:serve so that it really open the browser ([72aff8d](https://github.com/maximegris/angular-electron/commit/72aff8d))
|
||||
* Fix to change environment ([448d68b](https://github.com/maximegris/angular-electron/commit/448d68b))
|
||||
* version 3.1.0 ([f7c71e7](https://github.com/maximegris/angular-electron/commit/f7c71e7))
|
||||
|
||||
|
||||
|
||||
## <small>3.0.1 (2018-03-07)</small>
|
||||
|
||||
* fix/ icon app ([22699ef](https://github.com/maximegris/angular-electron/commit/22699ef))
|
||||
* version 3.0.1 ([5258ff1](https://github.com/maximegris/angular-electron/commit/5258ff1))
|
||||
|
||||
|
||||
|
||||
## 3.0.0 (2018-02-25)
|
||||
|
||||
* fix/ TranslateModule test ([7863aa9](https://github.com/maximegris/angular-electron/commit/7863aa9))
|
||||
* Ng not ejected anymore ([67ab31c](https://github.com/maximegris/angular-electron/commit/67ab31c))
|
||||
* pin all dependency versions ([0558d6a](https://github.com/maximegris/angular-electron/commit/0558d6a))
|
||||
* update dependencies and fix unit tests ([4d3ca6e](https://github.com/maximegris/angular-electron/commit/4d3ca6e))
|
||||
|
||||
|
||||
|
||||
## <small>2.7.1 (2018-02-15)</small>
|
||||
|
||||
* ref/ dernière version cli ([3df8158](https://github.com/maximegris/angular-electron/commit/3df8158))
|
||||
* version 2.7.1 ([1ae6f7a](https://github.com/maximegris/angular-electron/commit/1ae6f7a))
|
||||
|
||||
|
||||
|
||||
## 2.7.0 (2018-02-15)
|
||||
|
||||
* Correction of a word. ([d6655c7](https://github.com/maximegris/angular-electron/commit/d6655c7))
|
||||
* feat/ add webview directive ([e1b5600](https://github.com/maximegris/angular-electron/commit/e1b5600))
|
||||
* migrate Angular to 5.2.0 ([b8cf343](https://github.com/maximegris/angular-electron/commit/b8cf343))
|
||||
* ref/ Remove sponsor ([2a28239](https://github.com/maximegris/angular-electron/commit/2a28239))
|
||||
* ref/ update angular & dep ([e3b1fab](https://github.com/maximegris/angular-electron/commit/e3b1fab))
|
||||
* ref/ upgrade electron (security issue) ([f6a0c4e](https://github.com/maximegris/angular-electron/commit/f6a0c4e))
|
||||
* version bump + logo resize ([3545d16](https://github.com/maximegris/angular-electron/commit/3545d16))
|
||||
* fix: fixes maximegris/angular-electron#118 ([6d21e69](https://github.com/maximegris/angular-electron/commit/6d21e69)), closes [maximegris/angular-electron#118](https://github.com/maximegris/angular-electron/issues/118)
|
||||
* fix: fixes maximegris/angular-electron#98 ([136344b](https://github.com/maximegris/angular-electron/commit/136344b)), closes [maximegris/angular-electron#98](https://github.com/maximegris/angular-electron/issues/98)
|
||||
|
||||
|
||||
|
||||
## <small>2.4.1 (2017-12-14)</small>
|
||||
|
||||
* fix/ Manage icons for linux binary generation ([ccd0601](https://github.com/maximegris/angular-electron/commit/ccd0601))
|
||||
* version 2.4.1 ([5fcfca0](https://github.com/maximegris/angular-electron/commit/5fcfca0))
|
||||
|
||||
|
||||
|
||||
## 2.4.0 (2017-12-08)
|
||||
|
||||
* Use HttpClientModule ([5704e2e](https://github.com/maximegris/angular-electron/commit/5704e2e))
|
||||
* version 2.4.0 ([0437b33](https://github.com/maximegris/angular-electron/commit/0437b33))
|
||||
|
||||
|
||||
|
||||
## 2.3.0 (2017-12-04)
|
||||
|
||||
* add ngx translate ([facda37](https://github.com/maximegris/angular-electron/commit/facda37))
|
||||
|
||||
|
||||
|
||||
## 2.2.0 (2017-11-28)
|
||||
|
||||
* Brought back scripts defined in webpack.config.js ([441da3d](https://github.com/maximegris/angular-electron/commit/441da3d))
|
||||
* migrate to Angular 5.0.3 ([f4bc5b2](https://github.com/maximegris/angular-electron/commit/f4bc5b2))
|
||||
* Update LICENSE badge ([fa783aa](https://github.com/maximegris/angular-electron/commit/fa783aa))
|
||||
* Update to electron-builder ([0e94b52](https://github.com/maximegris/angular-electron/commit/0e94b52))
|
||||
|
||||
|
||||
|
||||
## <small>2.1.1 (2017-11-19)</small>
|
||||
|
||||
* Move codesponsor ([064be4c](https://github.com/maximegris/angular-electron/commit/064be4c))
|
||||
|
||||
|
||||
|
||||
## 2.1.0 (2017-11-19)
|
||||
|
||||
* Add codesponsor ([87e695d](https://github.com/maximegris/angular-electron/commit/87e695d))
|
||||
* Add script for winportable ([2be2dae](https://github.com/maximegris/angular-electron/commit/2be2dae))
|
||||
* Add support for building a Windows self-contained executable ([7cfa790](https://github.com/maximegris/angular-electron/commit/7cfa790))
|
||||
* fix/ electron-packager need favicon >= 256x256 on Windows ([d2c253f](https://github.com/maximegris/angular-electron/commit/d2c253f))
|
||||
* fix/ refact webpack config (inspired by ng eject Angular 5) ([d1c30ac](https://github.com/maximegris/angular-electron/commit/d1c30ac))
|
||||
* fix/ replace aotPlugin in no prod mode ([a0caf1e](https://github.com/maximegris/angular-electron/commit/a0caf1e))
|
||||
* fix/ Replace AotPlugin to AngularCompilerPlugin ([bef106e](https://github.com/maximegris/angular-electron/commit/bef106e))
|
||||
* fix/ Update README Angular 5 ([93c6949](https://github.com/maximegris/angular-electron/commit/93c6949))
|
||||
* fix/ webpack template path ([518b66b](https://github.com/maximegris/angular-electron/commit/518b66b))
|
||||
* Mgrate to Angular 5.0.2 ([bd7bed6](https://github.com/maximegris/angular-electron/commit/bd7bed6))
|
||||
* Update package.json ([b16cf73](https://github.com/maximegris/angular-electron/commit/b16cf73))
|
||||
* Version 2.1.0 ([fccef2f](https://github.com/maximegris/angular-electron/commit/fccef2f))
|
||||
|
||||
|
||||
|
||||
## 2.0.0 (2017-11-13)
|
||||
|
||||
* Add buffer to externals ([7e797f0](https://github.com/maximegris/angular-electron/commit/7e797f0))
|
||||
* Edit a typo on README ([956a2bc](https://github.com/maximegris/angular-electron/commit/956a2bc))
|
||||
* Fix #55 , 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)
|
||||
* Fix #55 removed bootstraps.css which for example purpose before. ([41445eb](https://github.com/maximegris/angular-electron/commit/41445eb)), closes [#55](https://github.com/maximegris/angular-electron/issues/55)
|
||||
* License MIT ([73494b7](https://github.com/maximegris/angular-electron/commit/73494b7))
|
||||
* Migrate to Angular 5 ([3a3ffe1](https://github.com/maximegris/angular-electron/commit/3a3ffe1))
|
||||
|
||||
|
||||
|
||||
## 1.9.0 (2017-09-22)
|
||||
|
||||
* feat/ launch electron & webpack in // (npm run start) ([8c37cc4](https://github.com/maximegris/angular-electron/commit/8c37cc4))
|
||||
* ref/ Exclude node_modules (tslint) ([412a0a5](https://github.com/maximegris/angular-electron/commit/412a0a5))
|
||||
|
||||
|
||||
|
||||
## <small>1.8.1 (2017-09-22)</small>
|
||||
|
||||
* ref/ add package-lock in gitignore ([4edd98d](https://github.com/maximegris/angular-electron/commit/4edd98d))
|
||||
* remove package-lock ([8e98627](https://github.com/maximegris/angular-electron/commit/8e98627))
|
||||
* upgrade angular version 4.4.3 ([10d0f87](https://github.com/maximegris/angular-electron/commit/10d0f87))
|
||||
* version 1.8.1 ([70879d1](https://github.com/maximegris/angular-electron/commit/70879d1))
|
||||
|
||||
|
||||
|
||||
## 1.8.0 (2017-09-09)
|
||||
|
||||
* upgrade lib version ([2ac2aa0](https://github.com/maximegris/angular-electron/commit/2ac2aa0))
|
||||
|
||||
|
||||
|
||||
## 1.7.0 (2017-08-18)
|
||||
|
||||
* ref/ Update Angular (4.3.5) / Electron (1.7.2) / Electron Packager (8.7.2) / Typescript (2.5.0) ([f97cd81](https://github.com/maximegris/angular-electron/commit/f97cd81))
|
||||
|
||||
|
||||
|
||||
## <small>1.6.1 (2017-07-27)</small>
|
||||
|
||||
* fix/ angular-cli error in prod compilation with aot ([c26a5ae](https://github.com/maximegris/angular-electron/commit/c26a5ae))
|
||||
* version 1.6.1 ([899babd](https://github.com/maximegris/angular-electron/commit/899babd))
|
||||
|
||||
|
||||
|
||||
## 1.6.0 (2017-07-16)
|
||||
|
||||
* ajout package-lock npm v5 ([09c0840](https://github.com/maximegris/angular-electron/commit/09c0840))
|
||||
* Change background img ([7e58717](https://github.com/maximegris/angular-electron/commit/7e58717))
|
||||
* Fix npm run build:prod ([c23bade](https://github.com/maximegris/angular-electron/commit/c23bade))
|
||||
* fix/ Bindings not updating automatically #44 ([2a90191](https://github.com/maximegris/angular-electron/commit/2a90191)), closes [#44](https://github.com/maximegris/angular-electron/issues/44)
|
||||
* fix/ e2e test with jasmine2 ([9c51f32](https://github.com/maximegris/angular-electron/commit/9c51f32))
|
||||
* fix/ typescript issues ([bb0a6ab](https://github.com/maximegris/angular-electron/commit/bb0a6ab))
|
||||
* increment version deps ([bde452c](https://github.com/maximegris/angular-electron/commit/bde452c))
|
||||
* Revert last pull request - break production compilation ([ccc9064](https://github.com/maximegris/angular-electron/commit/ccc9064))
|
||||
* upgrade angular version to 4.3.0 ([ab16959](https://github.com/maximegris/angular-electron/commit/ab16959))
|
||||
|
||||
|
||||
|
||||
## 1.5.0 (2017-06-10)
|
||||
|
||||
* fix/ karma Unit test ([ea13d6d](https://github.com/maximegris/angular-electron/commit/ea13d6d))
|
||||
* fix/ remove yarn because of error with module dep in prod builds ([8a49a45](https://github.com/maximegris/angular-electron/commit/8a49a45))
|
||||
* update yarn lock ([18c0e62](https://github.com/maximegris/angular-electron/commit/18c0e62))
|
||||
|
||||
|
||||
|
||||
## <small>1.4.4 (2017-06-08)</small>
|
||||
|
||||
* fix/ Fix npm run lint ([db7972a](https://github.com/maximegris/angular-electron/commit/db7972a))
|
||||
* ref/ electron ./dist more generic ([7e71add](https://github.com/maximegris/angular-electron/commit/7e71add))
|
||||
* Replace const icon to let icon ([dadf65f](https://github.com/maximegris/angular-electron/commit/dadf65f))
|
||||
|
||||
|
||||
|
||||
## <small>1.4.3 (2017-06-06)</small>
|
||||
|
||||
* fix/ favicon path during packaging ([aa2b012](https://github.com/maximegris/angular-electron/commit/aa2b012))
|
||||
* remove build node 8 till node-sass failed ([34f201d](https://github.com/maximegris/angular-electron/commit/34f201d))
|
||||
* v1.4.3 ([4961fb0](https://github.com/maximegris/angular-electron/commit/4961fb0))
|
||||
|
||||
|
||||
|
||||
## <small>1.4.2 (2017-05-31)</small>
|
||||
|
||||
* Change dep versions ([62d08d3](https://github.com/maximegris/angular-electron/commit/62d08d3))
|
||||
* install npm dep when building ([56948d0](https://github.com/maximegris/angular-electron/commit/56948d0))
|
||||
* Minor update ([5f282b7](https://github.com/maximegris/angular-electron/commit/5f282b7))
|
||||
* No hot reload in browser ([7892f0d](https://github.com/maximegris/angular-electron/commit/7892f0d))
|
||||
* update Electron v1.6.10 ([f2f2080](https://github.com/maximegris/angular-electron/commit/f2f2080))
|
||||
* upgrade ng/electron dependencies ([78b0f27](https://github.com/maximegris/angular-electron/commit/78b0f27))
|
||||
* chore(package): bump dependencies ([b62c7b6](https://github.com/maximegris/angular-electron/commit/b62c7b6))
|
||||
|
||||
|
||||
|
||||
## 1.4.0 (2017-05-23)
|
||||
|
||||
* 1.4.0 ([23213c4](https://github.com/maximegris/angular-electron/commit/23213c4))
|
||||
* Change style home page ([93dcc52](https://github.com/maximegris/angular-electron/commit/93dcc52))
|
||||
* Fixed compiler warnings ([fca6b15](https://github.com/maximegris/angular-electron/commit/fca6b15))
|
||||
* ref/ electron main from js to ts ([835d32b](https://github.com/maximegris/angular-electron/commit/835d32b))
|
||||
* Remove caret & tilde ([dd98155](https://github.com/maximegris/angular-electron/commit/dd98155))
|
||||
|
||||
|
||||
|
||||
## <small>1.3.5 (2017-05-18)</small>
|
||||
|
||||
* Add new tags ([cd07a86](https://github.com/maximegris/angular-electron/commit/cd07a86))
|
||||
* v 1.3.5 ([d528a71](https://github.com/maximegris/angular-electron/commit/d528a71))
|
||||
|
||||
|
||||
|
||||
## <small>1.3.4 (2017-05-12)</small>
|
||||
|
||||
* feat/ add nodejs native lib in webpack config ([27d9bc6](https://github.com/maximegris/angular-electron/commit/27d9bc6))
|
||||
* Fix issue #15 ([d77cbf1](https://github.com/maximegris/angular-electron/commit/d77cbf1)), closes [#15](https://github.com/maximegris/angular-electron/issues/15)
|
||||
* Ref/ Electron packager in external file ([17b04e8](https://github.com/maximegris/angular-electron/commit/17b04e8))
|
||||
* version 1.3.4 ([374af16](https://github.com/maximegris/angular-electron/commit/374af16))
|
||||
|
||||
|
||||
|
||||
## <small>1.3.3 (2017-05-10)</small>
|
||||
|
||||
* Chapters order ([a772b9c](https://github.com/maximegris/angular-electron/commit/a772b9c))
|
||||
* Chapters order ([06547e5](https://github.com/maximegris/angular-electron/commit/06547e5))
|
||||
* Delete spec file of electron.service ([083498e](https://github.com/maximegris/angular-electron/commit/083498e))
|
||||
* Fix issue #15 ([e7cd6e6](https://github.com/maximegris/angular-electron/commit/e7cd6e6)), closes [#15](https://github.com/maximegris/angular-electron/issues/15)
|
||||
* Move Browser mode chapter ([8818750](https://github.com/maximegris/angular-electron/commit/8818750))
|
||||
* Version 1.3.3 ([f4db75b](https://github.com/maximegris/angular-electron/commit/f4db75b))
|
||||
|
||||
|
||||
|
||||
## <small>1.3.2 (2017-05-05)</small>
|
||||
|
||||
* Add comments of how conditional import works ([e6c1b3b](https://github.com/maximegris/angular-electron/commit/e6c1b3b))
|
||||
* Conditional import of Electron/NodeJS libs - The app can be launch in browser mode ([c434f8a](https://github.com/maximegris/angular-electron/commit/c434f8a))
|
||||
* Fix indentation ([6a9836a](https://github.com/maximegris/angular-electron/commit/6a9836a))
|
||||
* Fix prepree2e script ([b2af4fd](https://github.com/maximegris/angular-electron/commit/b2af4fd))
|
||||
* Set e2e tests ([d223974](https://github.com/maximegris/angular-electron/commit/d223974))
|
||||
* Suround electron browser by try/catch ([88be472](https://github.com/maximegris/angular-electron/commit/88be472))
|
||||
* Update @types/node ([9d43304](https://github.com/maximegris/angular-electron/commit/9d43304))
|
||||
* Update readme with e2e info ([01bbf13](https://github.com/maximegris/angular-electron/commit/01bbf13))
|
||||
* update version ([0849a0a](https://github.com/maximegris/angular-electron/commit/0849a0a))
|
||||
|
||||
|
||||
|
||||
## <small>1.3.1 (2017-05-05)</small>
|
||||
|
||||
* Add routing module ([7334ce8](https://github.com/maximegris/angular-electron/commit/7334ce8))
|
||||
* Fixed hardcoded path in glob copy, blocking assets after eject ([815d519](https://github.com/maximegris/angular-electron/commit/815d519))
|
||||
* update comments in dev/prod env files ([7cf6a51](https://github.com/maximegris/angular-electron/commit/7cf6a51))
|
||||
* Version 1.3.1 ([f18ac77](https://github.com/maximegris/angular-electron/commit/f18ac77))
|
||||
|
||||
|
||||
|
||||
## 1.3.0 (2017-05-01)
|
||||
|
||||
* Fix webpack prod/dev env ([8549da1](https://github.com/maximegris/angular-electron/commit/8549da1))
|
||||
|
||||
|
||||
|
||||
## <small>1.2.1 (2017-04-30)</small>
|
||||
|
||||
* allowJs ([4efd188](https://github.com/maximegris/angular-electron/commit/4efd188))
|
||||
* Example url background in scss ([3705a35](https://github.com/maximegris/angular-electron/commit/3705a35))
|
||||
* Fix electron build (extract-zip workaround) ([a7ee90e](https://github.com/maximegris/angular-electron/commit/a7ee90e))
|
||||
* Fix webpack config url in css ([cea4be5](https://github.com/maximegris/angular-electron/commit/cea4be5))
|
||||
* html loader ([c55558a](https://github.com/maximegris/angular-electron/commit/c55558a))
|
||||
* update version 1.2.1 ([78e8da7](https://github.com/maximegris/angular-electron/commit/78e8da7))
|
||||
|
||||
|
||||
|
||||
## 1.2.0 (2017-04-19)
|
||||
|
||||
* Set one example of css class in app component ([a15775f](https://github.com/maximegris/angular-electron/commit/a15775f))
|
||||
* Update npm dependencies ([0a93ebe](https://github.com/maximegris/angular-electron/commit/0a93ebe))
|
||||
|
||||
|
||||
|
||||
## <small>1.1.2 (2017-04-18)</small>
|
||||
|
||||
* Fix typo & fix script electron:mac ([bd06859](https://github.com/maximegris/angular-electron/commit/bd06859))
|
||||
* Set theme jekyll-theme-architect ([644d857](https://github.com/maximegris/angular-electron/commit/644d857))
|
||||
* update README ([97fa63d](https://github.com/maximegris/angular-electron/commit/97fa63d))
|
||||
* update README ([23fc0a9](https://github.com/maximegris/angular-electron/commit/23fc0a9))
|
||||
* update README ([a8dcf6a](https://github.com/maximegris/angular-electron/commit/a8dcf6a))
|
||||
* v1.1.2 ([e29e467](https://github.com/maximegris/angular-electron/commit/e29e467))
|
||||
|
||||
|
||||
|
||||
## <small>1.1.1 (2017-04-12)</small>
|
||||
|
||||
* Fix webpack.config file path (travisci) ([a172df9](https://github.com/maximegris/angular-electron/commit/a172df9))
|
||||
* live reload on disk ([7bb2f8b](https://github.com/maximegris/angular-electron/commit/7bb2f8b))
|
||||
* Remove unused dependency (webpack-dev-server) ([e9150f4](https://github.com/maximegris/angular-electron/commit/e9150f4))
|
||||
|
||||
|
||||
|
||||
## 1.1.0 (2017-04-12)
|
||||
|
||||
* add depdencies CI & Licence ([6ceb0f2](https://github.com/maximegris/angular-electron/commit/6ceb0f2))
|
||||
* Override webpack configuration ([60d6116](https://github.com/maximegris/angular-electron/commit/60d6116))
|
||||
|
||||
|
||||
|
||||
## <small>1.0.3 (2017-04-07)</small>
|
||||
|
||||
* Add TravisCI ([e5640fd](https://github.com/maximegris/angular-electron/commit/e5640fd))
|
||||
* v1.0.3 ([9866d53](https://github.com/maximegris/angular-electron/commit/9866d53))
|
||||
|
||||
|
||||
|
||||
## <small>1.0.2 (2017-04-07)</small>
|
||||
|
||||
* Add TravisCI ([ef4b80e](https://github.com/maximegris/angular-electron/commit/ef4b80e))
|
||||
* Fix typo ([f964c3f](https://github.com/maximegris/angular-electron/commit/f964c3f))
|
||||
* Fix typo ([e42bb5e](https://github.com/maximegris/angular-electron/commit/e42bb5e))
|
||||
* Update README ([3bb45b3](https://github.com/maximegris/angular-electron/commit/3bb45b3))
|
||||
* Update README with angular-cli doc ([5a57578](https://github.com/maximegris/angular-electron/commit/5a57578))
|
||||
* v1.0.2 ([1bd8e0e](https://github.com/maximegris/angular-electron/commit/1bd8e0e))
|
||||
|
||||
|
||||
|
||||
## <small>1.0.1 (2017-04-03)</small>
|
||||
|
||||
* feat/ Add electron-packager scripts ([57891dc](https://github.com/maximegris/angular-electron/commit/57891dc))
|
||||
* ref/ update README ([7fddc20](https://github.com/maximegris/angular-electron/commit/7fddc20))
|
||||
* update README ([9a983c1](https://github.com/maximegris/angular-electron/commit/9a983c1))
|
||||
* v1.0.0 ([7a21eb9](https://github.com/maximegris/angular-electron/commit/7a21eb9))
|
||||
* v1.0.1 ([68275a3](https://github.com/maximegris/angular-electron/commit/68275a3))
|
||||
* chore: initial commit from @angular/cli ([616a69e](https://github.com/maximegris/angular-electron/commit/616a69e))
|
||||
|
||||
|
||||
|
128
CODE_OF_CONDUCT.md
Normal file
|
@ -0,0 +1,128 @@
|
|||
# Contributor Covenant Code of Conduct
|
||||
|
||||
## Our Pledge
|
||||
|
||||
We as members, contributors, and leaders pledge to make participation in our
|
||||
community a harassment-free experience for everyone, regardless of age, body
|
||||
size, visible or invisible disability, ethnicity, sex characteristics, gender
|
||||
identity and expression, level of experience, education, socio-economic status,
|
||||
nationality, personal appearance, race, religion, or sexual identity
|
||||
and orientation.
|
||||
|
||||
We pledge to act and interact in ways that contribute to an open, welcoming,
|
||||
diverse, inclusive, and healthy community.
|
||||
|
||||
## Our Standards
|
||||
|
||||
Examples of behavior that contributes to a positive environment for our
|
||||
community include:
|
||||
|
||||
* Demonstrating empathy and kindness toward other people
|
||||
* Being respectful of differing opinions, viewpoints, and experiences
|
||||
* Giving and gracefully accepting constructive feedback
|
||||
* Accepting responsibility and apologizing to those affected by our mistakes,
|
||||
and learning from the experience
|
||||
* Focusing on what is best not just for us as individuals, but for the
|
||||
overall community
|
||||
|
||||
Examples of unacceptable behavior include:
|
||||
|
||||
* The use of sexualized language or imagery, and sexual attention or
|
||||
advances of any kind
|
||||
* Trolling, insulting or derogatory comments, and personal or political attacks
|
||||
* Public or private harassment
|
||||
* Publishing others' private information, such as a physical or email
|
||||
address, without their explicit permission
|
||||
* Other conduct which could reasonably be considered inappropriate in a
|
||||
professional setting
|
||||
|
||||
## Enforcement Responsibilities
|
||||
|
||||
Community leaders are responsible for clarifying and enforcing our standards of
|
||||
acceptable behavior and will take appropriate and fair corrective action in
|
||||
response to any behavior that they deem inappropriate, threatening, offensive,
|
||||
or harmful.
|
||||
|
||||
Community leaders have the right and responsibility to remove, edit, or reject
|
||||
comments, commits, code, wiki edits, issues, and other contributions that are
|
||||
not aligned to this Code of Conduct, and will communicate reasons for moderation
|
||||
decisions when appropriate.
|
||||
|
||||
## Scope
|
||||
|
||||
This Code of Conduct applies within all community spaces, and also applies when
|
||||
an individual is officially representing the community in public spaces.
|
||||
Examples of representing our community include using an official e-mail address,
|
||||
posting via an official social media account, or acting as an appointed
|
||||
representative at an online or offline event.
|
||||
|
||||
## Enforcement
|
||||
|
||||
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
||||
reported to the community leaders responsible for enforcement at
|
||||
maxime.gris@gmail.com.
|
||||
All complaints will be reviewed and investigated promptly and fairly.
|
||||
|
||||
All community leaders are obligated to respect the privacy and security of the
|
||||
reporter of any incident.
|
||||
|
||||
## Enforcement Guidelines
|
||||
|
||||
Community leaders will follow these Community Impact Guidelines in determining
|
||||
the consequences for any action they deem in violation of this Code of Conduct:
|
||||
|
||||
### 1. Correction
|
||||
|
||||
**Community Impact**: Use of inappropriate language or other behavior deemed
|
||||
unprofessional or unwelcome in the community.
|
||||
|
||||
**Consequence**: A private, written warning from community leaders, providing
|
||||
clarity around the nature of the violation and an explanation of why the
|
||||
behavior was inappropriate. A public apology may be requested.
|
||||
|
||||
### 2. Warning
|
||||
|
||||
**Community Impact**: A violation through a single incident or series
|
||||
of actions.
|
||||
|
||||
**Consequence**: A warning with consequences for continued behavior. No
|
||||
interaction with the people involved, including unsolicited interaction with
|
||||
those enforcing the Code of Conduct, for a specified period of time. This
|
||||
includes avoiding interactions in community spaces as well as external channels
|
||||
like social media. Violating these terms may lead to a temporary or
|
||||
permanent ban.
|
||||
|
||||
### 3. Temporary Ban
|
||||
|
||||
**Community Impact**: A serious violation of community standards, including
|
||||
sustained inappropriate behavior.
|
||||
|
||||
**Consequence**: A temporary ban from any sort of interaction or public
|
||||
communication with the community for a specified period of time. No public or
|
||||
private interaction with the people involved, including unsolicited interaction
|
||||
with those enforcing the Code of Conduct, is allowed during this period.
|
||||
Violating these terms may lead to a permanent ban.
|
||||
|
||||
### 4. Permanent Ban
|
||||
|
||||
**Community Impact**: Demonstrating a pattern of violation of community
|
||||
standards, including sustained inappropriate behavior, harassment of an
|
||||
individual, or aggression toward or disparagement of classes of individuals.
|
||||
|
||||
**Consequence**: A permanent ban from any sort of public interaction within
|
||||
the community.
|
||||
|
||||
## Attribution
|
||||
|
||||
This Code of Conduct is adapted from the [Contributor Covenant][homepage],
|
||||
version 2.0, available at
|
||||
https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
|
||||
|
||||
Community Impact Guidelines were inspired by [Mozilla's code of conduct
|
||||
enforcement ladder](https://github.com/mozilla/diversity).
|
||||
|
||||
[homepage]: https://www.contributor-covenant.org
|
||||
|
||||
For answers to common questions about this code of conduct, see the FAQ at
|
||||
https://www.contributor-covenant.org/faq. Translations are available at
|
||||
https://www.contributor-covenant.org/translations.
|
39
HOW_TO.md
Normal file
|
@ -0,0 +1,39 @@
|
|||
###*First check it exists a version of your library compatible with the version of Angular defined in package.json.*
|
||||
|
||||
### How to install ng-bootstrap
|
||||
|
||||
``` bash
|
||||
ng add @ng-bootstrap/ng-bootstrap
|
||||
```
|
||||
|
||||
### How to install ngx-bootstrap
|
||||
|
||||
``` bash
|
||||
ng add ngx-bootstrap
|
||||
```
|
||||
|
||||
### How to install Angular Material
|
||||
|
||||
Replace temporarily custom builders by default ones in `angular.json`
|
||||
|
||||
@angular-builders/custom-webpack:browser => @angular-devkit/build-angular:browser \
|
||||
@angular-builders/custom-webpack:dev-server => @angular-devkit/build-angular:dev-server
|
||||
|
||||
Add Angular Material using `ng add` command:
|
||||
|
||||
``` bash
|
||||
ng add @angular/material
|
||||
```
|
||||
You will get the following questions:
|
||||
|
||||
``` bash
|
||||
? Choose a prebuilt theme name, or "custom" for a custom theme: *Choose any theme you like here*
|
||||
? Set up global Angular Material typography styles? *Yes*
|
||||
? Set up browser animations for Angular Material? *Do not include / error if you choose Include*
|
||||
```
|
||||
Angular Material Library is now installed in your project.
|
||||
|
||||
Put back custom builders in `angular.json`
|
||||
|
||||
@angular-devkit/build-angular:browser => @angular-builders/custom-webpack:browser \
|
||||
@angular-devkit/build-angular:dev-server => @angular-builders/custom-webpack:dev-server
|
7
LICENSE.md
Normal file
|
@ -0,0 +1,7 @@
|
|||
Copyright 2020 - Maxime GRIS
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
||||
|
||||
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.
|
183
README.md
Normal file
|
@ -0,0 +1,183 @@
|
|||
[![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/)
|
||||
|
||||
![Maintained][maintained-badge]
|
||||
[![Make a pull request][prs-badge]][prs]
|
||||
[![License][license-badge]](LICENSE.md)
|
||||
|
||||
[![Linux Build][linux-build-badge]][linux-build]
|
||||
[![MacOS Build][macos-build-badge]][macos-build]
|
||||
[![Windows Build][windows-build-badge]][windows-build]
|
||||
|
||||
[![Watch on GitHub][github-watch-badge]][github-watch]
|
||||
[![Star on GitHub][github-star-badge]][github-star]
|
||||
[![Tweet][twitter-badge]][twitter]
|
||||
|
||||
# Introduction
|
||||
|
||||
Bootstrap and package your project with Angular 17 and Electron 30 (Typescript + SASS + Hot Reload) for creating Desktop applications.
|
||||
|
||||
Currently runs with:
|
||||
|
||||
- Angular v17.3.6
|
||||
- Electron v30.0.1
|
||||
|
||||
With this sample, you can:
|
||||
|
||||
- Run your app in a local development environment with Electron & Hot reload
|
||||
- Run your app in a production environment
|
||||
- Execute your tests with Jest and Playwright (E2E)
|
||||
- Package your app into an executable file for Linux, Windows & Mac
|
||||
|
||||
/!\ Hot reload only pertains to the renderer process. The main electron process is not able to be hot reloaded, only restarted.
|
||||
|
||||
/!\ Angular CLI & Electron Builder needs Node 18.10 or later to work correctly.
|
||||
|
||||
## Getting Started
|
||||
|
||||
*Clone this repository locally:*
|
||||
|
||||
``` bash
|
||||
git clone https://github.com/maximegris/angular-electron.git
|
||||
```
|
||||
|
||||
*Install dependencies with npm (used by Electron renderer process):*
|
||||
|
||||
``` bash
|
||||
npm install
|
||||
```
|
||||
|
||||
There is an issue with `yarn` and `node_modules` when the application is built by the packager. Please use `npm` as dependencies manager.
|
||||
|
||||
If you want to generate Angular components with Angular-cli , you **MUST** install `@angular/cli` in npm global context.
|
||||
Please follow [Angular-cli documentation](https://github.com/angular/angular-cli) if you had installed a previous version of `angular-cli`.
|
||||
|
||||
``` bash
|
||||
npm install -g @angular/cli
|
||||
```
|
||||
|
||||
*Install NodeJS dependencies with npm (used by Electron main process):*
|
||||
|
||||
``` bash
|
||||
cd app/
|
||||
npm install
|
||||
```
|
||||
|
||||
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.
|
||||
|
||||
## To build for development
|
||||
|
||||
- **in a terminal window** -> npm start
|
||||
|
||||
Voila! You can use your Angular + Electron app in a local development environment with hot reload!
|
||||
|
||||
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. \
|
||||
The Angular component contains an example of Electron and NodeJS native lib import. \
|
||||
You can disable "Developer Tools" by commenting `win.webContents.openDevTools();` in `app/main.ts`.
|
||||
|
||||
## Project structure
|
||||
|
||||
| Folder | Description |
|
||||
|--------|--------------------------------------------------|
|
||||
| app | Electron main process folder (NodeJS) |
|
||||
| src | Electron renderer process folder (Web / Angular) |
|
||||
|
||||
## How to import 3rd party libraries
|
||||
|
||||
This sample project runs in both modes (web and electron). To make this work, **you have to import your dependencies the right way**. \
|
||||
|
||||
There are two kind of 3rd party libraries :
|
||||
- NodeJS's one - Uses NodeJS core module (crypto, fs, util...)
|
||||
- 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).
|
||||
|
||||
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).
|
||||
|
||||
- Web's one (like bootstrap, material, tailwind...)
|
||||
- It have to be added in `dependencies` of `package.json (root folder)`
|
||||
|
||||
## Add a dependency with ng-add
|
||||
|
||||
You may encounter some difficulties with `ng-add` because this project doesn't use the defaults `@angular-builders`. \
|
||||
For example you can find [here](HOW_TO.md) how to install Angular-Material with `ng-add`.
|
||||
|
||||
## Browser mode
|
||||
|
||||
Maybe you only want to execute the application in the browser with hot reload? Just run `npm run ng:serve:web`.
|
||||
|
||||
## Included Commands
|
||||
|
||||
| Command | Description |
|
||||
|--------------------------|-------------------------------------------------------------------------------------------------------|
|
||||
| `npm run ng:serve` | Execute the app in the web browser (DEV mode) |
|
||||
| `npm run web:build` | Build the app that can be used directly in the web browser. Your built files are in the /dist folder. |
|
||||
| `npm run electron:local` | Builds your application and start electron locally |
|
||||
| `npm run electron:build` | Builds your application and creates an app consumable based on your operating system |
|
||||
|
||||
**Your application is optimised. Only /dist folder and NodeJS dependencies are included in the final bundle.**
|
||||
|
||||
## You want to use a specific lib (like rxjs) in electron main thread ?
|
||||
|
||||
YES! You can do it! Just by importing your library in npm dependencies section of `app/package.json` with `npm install --save XXXXX`. \
|
||||
It will be loaded by electron during build phase and added to your final bundle. \
|
||||
Then use your library by importing it in `app/main.ts` file. Quite simple, isn't it?
|
||||
|
||||
## E2E Testing
|
||||
|
||||
E2E Test scripts can be found in `e2e` folder.
|
||||
|
||||
| Command | Description |
|
||||
|---------------|---------------------------|
|
||||
| `npm run e2e` | Execute end to end tests |
|
||||
|
||||
Note: To make it work behind a proxy, you can add this proxy exception in your terminal
|
||||
`export {no_proxy,NO_PROXY}="127.0.0.1,localhost"`
|
||||
|
||||
## Debug with VsCode
|
||||
|
||||
[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).
|
||||
|
||||
Then set some breakpoints in your application's source code.
|
||||
|
||||
Finally from VsCode press **Ctrl+Shift+D** and select **Application Debug** and press **F5**.
|
||||
|
||||
Please note that Hot reload is only available in Renderer process.
|
||||
|
||||
## Want to use Angular Material ? Ngx-Bootstrap ?
|
||||
|
||||
Please refer to [HOW_TO file](./HOW_TO.md)
|
||||
|
||||
## Branch & Packages version
|
||||
|
||||
- Angular 4 & Electron 1 : Branch [angular4](https://github.com/maximegris/angular-electron/tree/angular4)
|
||||
- Angular 5 & Electron 1 : Branch [angular5](https://github.com/maximegris/angular-electron/tree/angular5)
|
||||
- Angular 6 & Electron 3 : Branch [angular6](https://github.com/maximegris/angular-electron/tree/angular6)
|
||||
- Angular 7 & Electron 3 : Branch [angular7](https://github.com/maximegris/angular-electron/tree/angular7)
|
||||
- Angular 8 & Electron 7 : Branch [angular8](https://github.com/maximegris/angular-electron/tree/angular8)
|
||||
- Angular 9 & Electron 7 : Branch [angular9](https://github.com/maximegris/angular-electron/tree/angular9)
|
||||
- Angular 10 & Electron 9 : Branch [angular10](https://github.com/maximegris/angular-electron/tree/angular10)
|
||||
- Angular 11 & Electron 12 : Branch [angular11](https://github.com/maximegris/angular-electron/tree/angular11)
|
||||
- Angular 12 & Electron 16 : Branch [angular12](https://github.com/maximegris/angular-electron/tree/angular12)
|
||||
- Angular 13 & Electron 18 : Branch [angular13](https://github.com/maximegris/angular-electron/tree/angular13)
|
||||
- Angular 14 & Electron 21 : Branch [angular14](https://github.com/maximegris/angular-electron/tree/angular14)
|
||||
- Angular 15 & Electron 24 : Branch [angular15](https://github.com/maximegris/angular-electron/tree/angular15)
|
||||
- Angular 16 & Electron 25 : Branch [angular16](https://github.com/maximegris/angular-electron/tree/angular16)
|
||||
- Angular 17 & Electron 30 : (main)
|
||||
-
|
||||
[maintained-badge]: https://img.shields.io/badge/maintained-yes-brightgreen
|
||||
[license-badge]: https://img.shields.io/badge/license-MIT-blue.svg
|
||||
[license]: https://github.com/maximegris/angular-electron/blob/main/LICENSE.md
|
||||
[prs-badge]: https://img.shields.io/badge/PRs-welcome-red.svg
|
||||
[prs]: http://makeapullrequest.com
|
||||
|
||||
[linux-build-badge]: https://github.com/maximegris/angular-electron/workflows/Linux%20Build/badge.svg
|
||||
[linux-build]: https://github.com/maximegris/angular-electron/actions?query=workflow%3A%22Linux+Build%22
|
||||
[macos-build-badge]: https://github.com/maximegris/angular-electron/workflows/MacOS%20Build/badge.svg
|
||||
[macos-build]: https://github.com/maximegris/angular-electron/actions?query=workflow%3A%22MacOS+Build%22
|
||||
[windows-build-badge]: https://github.com/maximegris/angular-electron/workflows/Windows%20Build/badge.svg
|
||||
[windows-build]: https://github.com/maximegris/angular-electron/actions?query=workflow%3A%22Windows+Build%22
|
||||
|
||||
[github-watch-badge]: https://img.shields.io/github/watchers/maximegris/angular-electron.svg?style=social
|
||||
[github-watch]: https://github.com/maximegris/angular-electron/watchers
|
||||
[github-star-badge]: https://img.shields.io/github/stars/maximegris/angular-electron.svg?style=social
|
||||
[github-star]: https://github.com/maximegris/angular-electron/stargazers
|
||||
[twitter]: https://twitter.com/intent/tweet?text=Check%20out%20angular-electron!%20https://github.com/maximegris/angular-electron%20%F0%9F%91%8D
|
||||
[twitter-badge]: https://img.shields.io/twitter/url/https/github.com/maximegris/angular-electron.svg?style=social
|
1
_config.yml
Normal file
|
@ -0,0 +1 @@
|
|||
theme: jekyll-theme-architect
|
182
angular.json
Normal file
|
@ -0,0 +1,182 @@
|
|||
{
|
||||
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
|
||||
"cli": {
|
||||
"schematicCollections": [
|
||||
"@angular-eslint/schematics"
|
||||
]
|
||||
},
|
||||
"version": 1,
|
||||
"newProjectRoot": "projects",
|
||||
"projects": {
|
||||
"angular-electron": {
|
||||
"root": "",
|
||||
"sourceRoot": "src",
|
||||
"projectType": "application",
|
||||
"schematics": {
|
||||
"@schematics/angular:application": {
|
||||
"strict": true
|
||||
},
|
||||
"@schematics/angular:component": {
|
||||
"style": "scss"
|
||||
}
|
||||
},
|
||||
"prefix": "app",
|
||||
"architect": {
|
||||
"build": {
|
||||
"builder": "@angular-builders/custom-webpack:browser",
|
||||
"options": {
|
||||
"outputPath": "dist",
|
||||
"index": "src/index.html",
|
||||
"main": "src/main.ts",
|
||||
"tsConfig": "src/tsconfig.app.json",
|
||||
"polyfills": "src/polyfills.ts",
|
||||
"inlineStyleLanguage": "scss",
|
||||
"assets": [
|
||||
"src/favicon.ico",
|
||||
"src/assets"
|
||||
],
|
||||
"styles": [
|
||||
"src/styles.scss"
|
||||
],
|
||||
"scripts": [],
|
||||
"customWebpackConfig": {
|
||||
"path": "./angular.webpack.js",
|
||||
"replaceDuplicatePlugins": true
|
||||
}
|
||||
},
|
||||
"configurations": {
|
||||
"dev": {
|
||||
"optimization": false,
|
||||
"outputHashing": "none",
|
||||
"sourceMap": true,
|
||||
"namedChunks": false,
|
||||
"aot": false,
|
||||
"extractLicenses": true,
|
||||
"vendorChunk": false,
|
||||
"buildOptimizer": false,
|
||||
"fileReplacements": [
|
||||
{
|
||||
"replace": "src/environments/environment.ts",
|
||||
"with": "src/environments/environment.dev.ts"
|
||||
}
|
||||
]
|
||||
},
|
||||
"production": {
|
||||
"optimization": true,
|
||||
"outputHashing": "all",
|
||||
"sourceMap": false,
|
||||
"namedChunks": false,
|
||||
"aot": true,
|
||||
"extractLicenses": true,
|
||||
"vendorChunk": false,
|
||||
"buildOptimizer": true,
|
||||
"fileReplacements": [
|
||||
{
|
||||
"replace": "src/environments/environment.ts",
|
||||
"with": "src/environments/environment.prod.ts"
|
||||
}
|
||||
]
|
||||
},
|
||||
"web": {
|
||||
"optimization": false,
|
||||
"outputHashing": "none",
|
||||
"sourceMap": true,
|
||||
"namedChunks": false,
|
||||
"aot": false,
|
||||
"extractLicenses": true,
|
||||
"vendorChunk": false,
|
||||
"buildOptimizer": false,
|
||||
"fileReplacements": [
|
||||
{
|
||||
"replace": "src/environments/environment.ts",
|
||||
"with": "src/environments/environment.web.ts"
|
||||
}
|
||||
]
|
||||
},
|
||||
"web-production": {
|
||||
"optimization": true,
|
||||
"outputHashing": "all",
|
||||
"sourceMap": false,
|
||||
"namedChunks": false,
|
||||
"aot": true,
|
||||
"extractLicenses": true,
|
||||
"vendorChunk": false,
|
||||
"buildOptimizer": true,
|
||||
"fileReplacements": [
|
||||
{
|
||||
"replace": "src/environments/environment.ts",
|
||||
"with": "src/environments/environment.web.prod.ts"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"serve": {
|
||||
"builder": "@angular-builders/custom-webpack:dev-server",
|
||||
"options": {
|
||||
"browserTarget": "angular-electron:build"
|
||||
},
|
||||
"configurations": {
|
||||
"dev": {
|
||||
"browserTarget": "angular-electron:build:dev"
|
||||
},
|
||||
"production": {
|
||||
"browserTarget": "angular-electron:build:production"
|
||||
},
|
||||
"web": {
|
||||
"browserTarget": "angular-electron:build:web"
|
||||
},
|
||||
"web-production": {
|
||||
"browserTarget": "angular-electron:build:web-production"
|
||||
}
|
||||
}
|
||||
},
|
||||
"extract-i18n": {
|
||||
"builder": "@angular-devkit/build-angular:extract-i18n",
|
||||
"options": {
|
||||
"buildTarget": "angular-electron:build"
|
||||
}
|
||||
},
|
||||
"test": {
|
||||
"builder": "@angular-builders/jest:run",
|
||||
"options": {
|
||||
"polyfills": ["src/polyfills-test.ts"],
|
||||
"tsConfig": "src/tsconfig.spec.json",
|
||||
"globalMocks": ["styleTransform", "matchMedia", "getComputedStyle"],
|
||||
}
|
||||
},
|
||||
"lint": {
|
||||
"builder": "@angular-eslint/builder:lint",
|
||||
"options": {
|
||||
"lintFilePatterns": [
|
||||
"src/**/*.ts",
|
||||
"src/**/*.html"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"angular-electron-e2e": {
|
||||
"root": "e2e",
|
||||
"projectType": "application",
|
||||
"architect": {
|
||||
"lint": {
|
||||
"builder": "@angular-eslint/builder:lint",
|
||||
"options": {
|
||||
"lintFilePatterns": [
|
||||
"e2e/**/*.ts"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"schematics": {
|
||||
"@angular-eslint/schematics:application": {
|
||||
"setParserOptionsProject": true
|
||||
},
|
||||
"@angular-eslint/schematics:library": {
|
||||
"setParserOptionsProject": true
|
||||
}
|
||||
}
|
||||
}
|
32
angular.webpack.js
Normal file
|
@ -0,0 +1,32 @@
|
|||
//Polyfill Node.js core modules in Webpack. This module is only needed for webpack 5+.
|
||||
const NodePolyfillPlugin = require("node-polyfill-webpack-plugin");
|
||||
|
||||
/**
|
||||
* Custom angular webpack configuration
|
||||
*/
|
||||
module.exports = (config, options) => {
|
||||
config.target = 'electron-renderer';
|
||||
|
||||
if (options.fileReplacements) {
|
||||
for(let fileReplacement of options.fileReplacements) {
|
||||
if (fileReplacement.replace !== 'src/environments/environment.ts') {
|
||||
continue;
|
||||
}
|
||||
|
||||
let fileReplacementParts = fileReplacement['with'].split('.');
|
||||
if (fileReplacementParts.length > 1 && ['web'].indexOf(fileReplacementParts[1]) >= 0) {
|
||||
config.target = 'web';
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
config.plugins = [
|
||||
...config.plugins,
|
||||
new NodePolyfillPlugin({
|
||||
excludeAliases: ["console"]
|
||||
})
|
||||
];
|
||||
|
||||
return config;
|
||||
}
|
83
app/main.ts
Normal file
|
@ -0,0 +1,83 @@
|
|||
import {app, BrowserWindow, screen} from 'electron';
|
||||
import * as path from 'path';
|
||||
import * as fs from 'fs';
|
||||
|
||||
let win: BrowserWindow | null = null;
|
||||
const args = process.argv.slice(1),
|
||||
serve = args.some(val => val === '--serve');
|
||||
|
||||
function createWindow(): BrowserWindow {
|
||||
|
||||
const size = screen.getPrimaryDisplay().workAreaSize;
|
||||
|
||||
// Create the browser window.
|
||||
win = new BrowserWindow({
|
||||
x: 0,
|
||||
y: 0,
|
||||
width: size.width,
|
||||
height: size.height,
|
||||
webPreferences: {
|
||||
nodeIntegration: true,
|
||||
allowRunningInsecureContent: (serve),
|
||||
contextIsolation: false,
|
||||
},
|
||||
});
|
||||
|
||||
if (serve) {
|
||||
const debug = require('electron-debug');
|
||||
debug();
|
||||
|
||||
require('electron-reloader')(module);
|
||||
win.loadURL('http://localhost:4200');
|
||||
} else {
|
||||
// Path when running electron executable
|
||||
let pathIndex = './index.html';
|
||||
|
||||
if (fs.existsSync(path.join(__dirname, '../dist/index.html'))) {
|
||||
// Path when running electron in local folder
|
||||
pathIndex = '../dist/index.html';
|
||||
}
|
||||
|
||||
const url = new URL(path.join('file:', __dirname, pathIndex));
|
||||
win.loadURL(url.href);
|
||||
}
|
||||
|
||||
// Emitted when the window is closed.
|
||||
win.on('closed', () => {
|
||||
// Dereference the window object, usually you would store window
|
||||
// in an array if your app supports multi windows, this is the time
|
||||
// when you should delete the corresponding element.
|
||||
win = null;
|
||||
});
|
||||
|
||||
return win;
|
||||
}
|
||||
|
||||
try {
|
||||
// This method will be called when Electron has finished
|
||||
// initialization and is ready to create browser windows.
|
||||
// Some APIs can only be used after this event occurs.
|
||||
// Added 400 ms to fix the black background issue while using transparent window. More detais at https://github.com/electron/electron/issues/15947
|
||||
app.on('ready', () => setTimeout(createWindow, 400));
|
||||
|
||||
// Quit when all windows are closed.
|
||||
app.on('window-all-closed', () => {
|
||||
// On OS X it is common for applications and their menu bar
|
||||
// to stay active until the user quits explicitly with Cmd + Q
|
||||
if (process.platform !== 'darwin') {
|
||||
app.quit();
|
||||
}
|
||||
});
|
||||
|
||||
app.on('activate', () => {
|
||||
// On OS X it's common to re-create a window in the app when the
|
||||
// dock icon is clicked and there are no other windows open.
|
||||
if (win === null) {
|
||||
createWindow();
|
||||
}
|
||||
});
|
||||
|
||||
} catch (e) {
|
||||
// Catch Error
|
||||
// throw e;
|
||||
}
|
12
app/package-lock.json
generated
Normal file
|
@ -0,0 +1,12 @@
|
|||
{
|
||||
"name": "angular-electron",
|
||||
"version": "14.0.1",
|
||||
"lockfileVersion": 2,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "angular-electron",
|
||||
"version": "14.0.1"
|
||||
}
|
||||
}
|
||||
}
|
13
app/package.json
Normal file
|
@ -0,0 +1,13 @@
|
|||
{
|
||||
"name": "angular-electron",
|
||||
"description": "Angular Electron sample",
|
||||
"author": {
|
||||
"name": "Maxime GRIS",
|
||||
"email": "maxime.gris@gmail.com"
|
||||
},
|
||||
"version": "14.0.1",
|
||||
"main": "main.js",
|
||||
"private": true,
|
||||
"dependencies": {
|
||||
}
|
||||
}
|
59
e2e/main.spec.ts
Normal file
|
@ -0,0 +1,59 @@
|
|||
import { BrowserContext, ElectronApplication, Page, _electron as electron } from 'playwright';
|
||||
import { test, expect } from '@playwright/test';
|
||||
import * as PATH from 'path';
|
||||
|
||||
test.describe('Check Home Page', () => {
|
||||
let app: ElectronApplication;
|
||||
let firstWindow: Page;
|
||||
let context: BrowserContext;
|
||||
|
||||
test.beforeAll( async () => {
|
||||
app = await electron.launch({ args: [PATH.join(__dirname, '../app/main.js'), PATH.join(__dirname, '../app/package.json')] });
|
||||
context = app.context();
|
||||
await context.tracing.start({ screenshots: true, snapshots: true });
|
||||
firstWindow = await app.firstWindow();
|
||||
await firstWindow.waitForLoadState('domcontentloaded');
|
||||
});
|
||||
|
||||
test('Launch electron app', async () => {
|
||||
|
||||
const windowState: { isVisible: boolean; isDevToolsOpened: boolean; isCrashed: boolean } = await app.evaluate(async (process) => {
|
||||
const mainWindow = process.BrowserWindow.getAllWindows()[0];
|
||||
|
||||
const getState = () => ({
|
||||
isVisible: mainWindow.isVisible(),
|
||||
isDevToolsOpened: mainWindow.webContents.isDevToolsOpened(),
|
||||
isCrashed: mainWindow.webContents.isCrashed(),
|
||||
});
|
||||
|
||||
return new Promise((resolve) => {
|
||||
if (mainWindow.isVisible()) {
|
||||
resolve(getState());
|
||||
} else {
|
||||
mainWindow.once('ready-to-show', () => setTimeout(() => resolve(getState()), 0));
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
expect(windowState.isVisible).toBeTruthy();
|
||||
expect(windowState.isDevToolsOpened).toBeFalsy();
|
||||
expect(windowState.isCrashed).toBeFalsy();
|
||||
});
|
||||
|
||||
// test('Check Home Page design', async ({ browserName}) => {
|
||||
// // Uncomment if you change the design of Home Page in order to create a new screenshot
|
||||
// const screenshot = await firstWindow.screenshot({ path: '/tmp/home.png' });
|
||||
// expect(screenshot).toMatchSnapshot(`home-${browserName}.png`);
|
||||
// });
|
||||
|
||||
test('Check title', async () => {
|
||||
const elem = await firstWindow.$('app-home h1');
|
||||
const text = elem ? await elem.innerText() : null;
|
||||
expect(text).toBe('App works !');
|
||||
});
|
||||
|
||||
test.afterAll( async () => {
|
||||
await context.tracing.stop({ path: 'e2e/tracing/trace.zip' });
|
||||
await app.close();
|
||||
});
|
||||
});
|
20
e2e/playwright.config.ts
Normal file
|
@ -0,0 +1,20 @@
|
|||
/** @type {import('@playwright/test').PlaywrightTestConfig} */
|
||||
const config = {
|
||||
testDir: '.',
|
||||
timeout: 45000,
|
||||
outputDir: './screenshots',
|
||||
use: {
|
||||
headless: false,
|
||||
viewport: { width: 1280, height: 720 },
|
||||
launchOptions: {
|
||||
slowMo: 1000,
|
||||
},
|
||||
trace: 'on',
|
||||
},
|
||||
expect: {
|
||||
toMatchSnapshot: { threshold: 0.2 },
|
||||
},
|
||||
};
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
|
||||
module.exports = config;
|
13
e2e/tsconfig.e2e.json
Normal file
|
@ -0,0 +1,13 @@
|
|||
{
|
||||
"extends": "../tsconfig.json",
|
||||
"compilerOptions": {
|
||||
"outDir": "../out-tsc/e2e",
|
||||
"module": "commonjs",
|
||||
"types": [
|
||||
"node"
|
||||
]
|
||||
},
|
||||
"include": [
|
||||
"**.spec.ts"
|
||||
],
|
||||
}
|
38
electron-builder.json
Normal file
|
@ -0,0 +1,38 @@
|
|||
{
|
||||
"asar": true,
|
||||
"directories": {
|
||||
"output": "release/"
|
||||
},
|
||||
"files": [
|
||||
"**/*",
|
||||
"!**/*.ts",
|
||||
"!*.map",
|
||||
"!package.json",
|
||||
"!package-lock.json",
|
||||
{
|
||||
"from": "../dist",
|
||||
"filter": ["**/*"]
|
||||
}
|
||||
],
|
||||
"win": {
|
||||
"icon": "dist/assets/icons",
|
||||
"target": [
|
||||
"portable"
|
||||
]
|
||||
},
|
||||
"portable": {
|
||||
"splashImage": "dist/assets/icons/electron.bmp"
|
||||
},
|
||||
"mac": {
|
||||
"icon": "dist/assets/icons",
|
||||
"target": [
|
||||
"dmg"
|
||||
]
|
||||
},
|
||||
"linux": {
|
||||
"icon": "dist/assets/icons",
|
||||
"target": [
|
||||
"AppImage"
|
||||
]
|
||||
}
|
||||
}
|
15
jest.config.js
Normal file
|
@ -0,0 +1,15 @@
|
|||
const esModules = [].join('|');
|
||||
|
||||
module.exports = {
|
||||
rootDir : './src',
|
||||
transformIgnorePatterns: [`<rootDir>/node_modules/(?!${esModules})`],
|
||||
transform: {
|
||||
'^.+\\.tsx?$': [
|
||||
'ts-jest',
|
||||
{
|
||||
allowSyntheticDefaultImports: true,
|
||||
},
|
||||
],
|
||||
'^.+\\.js$': 'babel-jest',
|
||||
},
|
||||
};
|
24281
package-lock.json
generated
Normal file
103
package.json
Normal file
|
@ -0,0 +1,103 @@
|
|||
{
|
||||
"name": "angular-electron",
|
||||
"version": "14.0.1",
|
||||
"description": "Angular 17 with Electron 30 (Typescript + SASS + Hot Reload)",
|
||||
"homepage": "https://github.com/maximegris/angular-electron",
|
||||
"author": {
|
||||
"name": "Maxime GRIS",
|
||||
"email": "maxime.gris@gmail.com"
|
||||
},
|
||||
"keywords": [
|
||||
"angular",
|
||||
"angular 17",
|
||||
"electron",
|
||||
"electron 30",
|
||||
"nodejs",
|
||||
"typescript",
|
||||
"jest",
|
||||
"playwright",
|
||||
"eslint",
|
||||
"sass",
|
||||
"windows",
|
||||
"mac",
|
||||
"linux"
|
||||
],
|
||||
"main": "app/main.js",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"postinstall": "electron-builder install-app-deps",
|
||||
"ng": "ng",
|
||||
"start": "npm-run-all -p electron:serve ng:serve",
|
||||
"ng:serve": "ng serve -c web -o",
|
||||
"build": "npm run electron:serve-tsc && ng build --base-href ./",
|
||||
"build:dev": "npm run build -- -c dev",
|
||||
"build:prod": "npm run build -- -c production",
|
||||
"web:build": "npm run build -- -c web-production",
|
||||
"electron": "electron",
|
||||
"electron:serve-tsc": "tsc -p tsconfig.serve.json",
|
||||
"electron:serve": "wait-on tcp:4200 && npm run electron:serve-tsc && electron . --serve",
|
||||
"electron:local": "npm run build:prod && electron .",
|
||||
"electron:build": "npm run build:prod && electron-builder build --publish=never",
|
||||
"test": "ng test --watch=false",
|
||||
"test:watch": "ng test",
|
||||
"e2e": "npm run build:prod && playwright test -c e2e/playwright.config.ts e2e/",
|
||||
"e2e:show-trace": "playwright show-trace e2e/tracing/trace.zip",
|
||||
"version": "conventional-changelog -i CHANGELOG.md -s -r 0 && git add CHANGELOG.md",
|
||||
"lint": "ng lint"
|
||||
},
|
||||
"dependencies": {
|
||||
"@angular/common": "17.3.6",
|
||||
"@angular/compiler": "17.3.6",
|
||||
"@angular/core": "17.3.6",
|
||||
"@angular/forms": "17.3.6",
|
||||
"@angular/language-service": "17.3.6",
|
||||
"@angular/platform-browser": "17.3.6",
|
||||
"@angular/platform-browser-dynamic": "17.3.6",
|
||||
"@angular/router": "17.3.6",
|
||||
"rxjs": "7.8.1",
|
||||
"tslib": "2.6.2",
|
||||
"zone.js": "0.14.4"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@angular-builders/custom-webpack": "17.0.2",
|
||||
"@angular-builders/jest": "17.0.3",
|
||||
"@angular-devkit/build-angular": "17.3.6",
|
||||
"@angular-eslint/builder": "17.3.0",
|
||||
"@angular-eslint/eslint-plugin": "17.3.0",
|
||||
"@angular-eslint/eslint-plugin-template": "17.3.0",
|
||||
"@angular-eslint/schematics": "17.3.0",
|
||||
"@angular-eslint/template-parser": "17.3.0",
|
||||
"@angular/cli": "17.3.6",
|
||||
"@angular/compiler-cli": "17.3.6",
|
||||
"@ngx-translate/core": "15.0.0",
|
||||
"@ngx-translate/http-loader": "8.0.0",
|
||||
"@playwright/test": "1.43.1",
|
||||
"@types/jest": "29.5.12",
|
||||
"@types/node": "20.12.7",
|
||||
"@typescript-eslint/eslint-plugin": "7.7.1",
|
||||
"@typescript-eslint/parser": "7.7.1",
|
||||
"conventional-changelog-cli": "4.1.0",
|
||||
"electron": "30.0.1",
|
||||
"electron-builder": "24.13.3",
|
||||
"electron-debug": "3.2.0",
|
||||
"electron-reloader": "1.2.3",
|
||||
"eslint": "8.57.0",
|
||||
"eslint-plugin-import": "2.29.1",
|
||||
"eslint-plugin-jsdoc": "48.2.3",
|
||||
"eslint-plugin-prefer-arrow": "1.2.3",
|
||||
"jest": "29.7.0",
|
||||
"node-polyfill-webpack-plugin": "2.0.1",
|
||||
"npm-run-all": "4.1.5",
|
||||
"playwright": "1.43.1",
|
||||
"ts-node": "10.9.2",
|
||||
"typescript": "5.4.5",
|
||||
"wait-on": "7.2.0",
|
||||
"webdriver-manager": "12.1.9"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">= 16.14.0 || >= 18.10.0"
|
||||
},
|
||||
"browserslist": [
|
||||
"chrome 114"
|
||||
]
|
||||
}
|
28
src/app/app-routing.module.ts
Normal file
|
@ -0,0 +1,28 @@
|
|||
import { NgModule } from '@angular/core';
|
||||
import { Routes, RouterModule } from '@angular/router';
|
||||
import { PageNotFoundComponent } from './shared/components';
|
||||
|
||||
import { HomeRoutingModule } from './home/home-routing.module';
|
||||
import { DetailRoutingModule } from './detail/detail-routing.module';
|
||||
|
||||
const routes: Routes = [
|
||||
{
|
||||
path: '',
|
||||
redirectTo: 'home',
|
||||
pathMatch: 'full'
|
||||
},
|
||||
{
|
||||
path: '**',
|
||||
component: PageNotFoundComponent
|
||||
}
|
||||
];
|
||||
|
||||
@NgModule({
|
||||
imports: [
|
||||
RouterModule.forRoot(routes, {}),
|
||||
HomeRoutingModule,
|
||||
DetailRoutingModule
|
||||
],
|
||||
exports: [RouterModule]
|
||||
})
|
||||
export class AppRoutingModule { }
|
1
src/app/app.component.html
Normal file
|
@ -0,0 +1 @@
|
|||
<router-outlet></router-outlet>
|
3
src/app/app.component.scss
Normal file
|
@ -0,0 +1,3 @@
|
|||
:host {
|
||||
|
||||
}
|
21
src/app/app.component.spec.ts
Normal file
|
@ -0,0 +1,21 @@
|
|||
import { TestBed, waitForAsync } from '@angular/core/testing';
|
||||
import { RouterTestingModule } from '@angular/router/testing';
|
||||
import { AppComponent } from './app.component';
|
||||
import { TranslateModule } from '@ngx-translate/core';
|
||||
import { ElectronService } from './core/services';
|
||||
|
||||
describe('AppComponent', () => {
|
||||
beforeEach(waitForAsync(() => {
|
||||
void TestBed.configureTestingModule({
|
||||
declarations: [AppComponent],
|
||||
providers: [ElectronService],
|
||||
imports: [RouterTestingModule, TranslateModule.forRoot()]
|
||||
}).compileComponents();
|
||||
}));
|
||||
|
||||
it('should create the app', waitForAsync(() => {
|
||||
const fixture = TestBed.createComponent(AppComponent);
|
||||
const app = fixture.debugElement.componentInstance;
|
||||
expect(app).toBeTruthy();
|
||||
}));
|
||||
});
|
28
src/app/app.component.ts
Normal file
|
@ -0,0 +1,28 @@
|
|||
import { Component } from '@angular/core';
|
||||
import { ElectronService } from './core/services';
|
||||
import { TranslateService } from '@ngx-translate/core';
|
||||
import { APP_CONFIG } from '../environments/environment';
|
||||
|
||||
@Component({
|
||||
selector: 'app-root',
|
||||
templateUrl: './app.component.html',
|
||||
styleUrls: ['./app.component.scss']
|
||||
})
|
||||
export class AppComponent {
|
||||
constructor(
|
||||
private electronService: ElectronService,
|
||||
private translate: TranslateService
|
||||
) {
|
||||
this.translate.setDefaultLang('en');
|
||||
console.log('APP_CONFIG', APP_CONFIG);
|
||||
|
||||
if (electronService.isElectron) {
|
||||
console.log(process.env);
|
||||
console.log('Run in electron');
|
||||
console.log('Electron ipcRenderer', this.electronService.ipcRenderer);
|
||||
console.log('NodeJS childProcess', this.electronService.childProcess);
|
||||
} else {
|
||||
console.log('Run in browser');
|
||||
}
|
||||
}
|
||||
}
|
44
src/app/app.module.ts
Normal file
|
@ -0,0 +1,44 @@
|
|||
import { BrowserModule } from '@angular/platform-browser';
|
||||
import { NgModule } from '@angular/core';
|
||||
import { FormsModule } from '@angular/forms';
|
||||
import { HttpClientModule, HttpClient } from '@angular/common/http';
|
||||
import { CoreModule } from './core/core.module';
|
||||
import { SharedModule } from './shared/shared.module';
|
||||
|
||||
import { AppRoutingModule } from './app-routing.module';
|
||||
|
||||
// NG Translate
|
||||
import { TranslateModule, TranslateLoader } from '@ngx-translate/core';
|
||||
import { TranslateHttpLoader } from '@ngx-translate/http-loader';
|
||||
|
||||
import { HomeModule } from './home/home.module';
|
||||
import { DetailModule } from './detail/detail.module';
|
||||
|
||||
import { AppComponent } from './app.component';
|
||||
|
||||
// AoT requires an exported function for factories
|
||||
const httpLoaderFactory = (http: HttpClient): TranslateHttpLoader => new TranslateHttpLoader(http, './assets/i18n/', '.json');
|
||||
|
||||
@NgModule({
|
||||
declarations: [AppComponent],
|
||||
imports: [
|
||||
BrowserModule,
|
||||
FormsModule,
|
||||
HttpClientModule,
|
||||
CoreModule,
|
||||
SharedModule,
|
||||
HomeModule,
|
||||
DetailModule,
|
||||
AppRoutingModule,
|
||||
TranslateModule.forRoot({
|
||||
loader: {
|
||||
provide: TranslateLoader,
|
||||
useFactory: httpLoaderFactory,
|
||||
deps: [HttpClient]
|
||||
}
|
||||
})
|
||||
],
|
||||
providers: [],
|
||||
bootstrap: [AppComponent]
|
||||
})
|
||||
export class AppModule {}
|
10
src/app/core/core.module.ts
Normal file
|
@ -0,0 +1,10 @@
|
|||
import { NgModule } from '@angular/core';
|
||||
import { CommonModule } from '@angular/common';
|
||||
|
||||
@NgModule({
|
||||
declarations: [],
|
||||
imports: [
|
||||
CommonModule
|
||||
]
|
||||
})
|
||||
export class CoreModule { }
|
12
src/app/core/services/electron/electron.service.spec.ts
Normal file
|
@ -0,0 +1,12 @@
|
|||
import {TestBed, waitForAsync} from '@angular/core/testing';
|
||||
|
||||
import { ElectronService } from './electron.service';
|
||||
|
||||
describe('ElectronService', () => {
|
||||
beforeEach(waitForAsync(() => TestBed.configureTestingModule({})));
|
||||
|
||||
it('should be created', () => {
|
||||
const service: ElectronService = TestBed.get(ElectronService);
|
||||
expect(service).toBeTruthy();
|
||||
});
|
||||
});
|
56
src/app/core/services/electron/electron.service.ts
Normal file
|
@ -0,0 +1,56 @@
|
|||
import { Injectable } from '@angular/core';
|
||||
|
||||
// If you import a module but never use any of the imported values other than as TypeScript types,
|
||||
// the resulting javascript file will look as if you never imported the module at all.
|
||||
import { ipcRenderer, webFrame } from 'electron';
|
||||
import * as childProcess from 'child_process';
|
||||
import * as fs from 'fs';
|
||||
|
||||
@Injectable({
|
||||
providedIn: 'root'
|
||||
})
|
||||
export class ElectronService {
|
||||
ipcRenderer!: typeof ipcRenderer;
|
||||
webFrame!: typeof webFrame;
|
||||
childProcess!: typeof childProcess;
|
||||
fs!: typeof fs;
|
||||
|
||||
constructor() {
|
||||
// Conditional imports
|
||||
if (this.isElectron) {
|
||||
this.ipcRenderer = (window as any).require('electron').ipcRenderer;
|
||||
this.webFrame = (window as any).require('electron').webFrame;
|
||||
|
||||
this.fs = (window as any).require('fs');
|
||||
|
||||
this.childProcess = (window as any).require('child_process');
|
||||
this.childProcess.exec('node -v', (error, stdout, stderr) => {
|
||||
if (error) {
|
||||
console.error(`error: ${error.message}`);
|
||||
return;
|
||||
}
|
||||
if (stderr) {
|
||||
console.error(`stderr: ${stderr}`);
|
||||
return;
|
||||
}
|
||||
console.log(`stdout:\n${stdout}`);
|
||||
});
|
||||
|
||||
// Notes :
|
||||
// * A NodeJS's dependency imported with 'window.require' MUST BE present in `dependencies` of both `app/package.json`
|
||||
// and `package.json (root folder)` in order to make it work here in Electron's Renderer process (src folder)
|
||||
// because it will loaded at runtime by Electron.
|
||||
// * A NodeJS's dependency imported with TS module import (ex: import { Dropbox } from 'dropbox') CAN only be present
|
||||
// in `dependencies` of `package.json (root folder)` because it is loaded during build phase and does not need to be
|
||||
// in the final bundle. Reminder : only if not used in Electron's Main process (app folder)
|
||||
|
||||
// If you want to use a NodeJS 3rd party deps in Renderer process,
|
||||
// ipcRenderer.invoke can serve many common use cases.
|
||||
// https://www.electronjs.org/docs/latest/api/ipc-renderer#ipcrendererinvokechannel-args
|
||||
}
|
||||
}
|
||||
|
||||
get isElectron(): boolean {
|
||||
return !!(window && window.process && window.process.type);
|
||||
}
|
||||
}
|
1
src/app/core/services/index.ts
Normal file
|
@ -0,0 +1 @@
|
|||
export * from './electron/electron.service';
|
18
src/app/detail/detail-routing.module.ts
Normal file
|
@ -0,0 +1,18 @@
|
|||
import { NgModule } from '@angular/core';
|
||||
import { CommonModule } from '@angular/common';
|
||||
import { Routes, RouterModule } from '@angular/router';
|
||||
import { DetailComponent } from './detail.component';
|
||||
|
||||
const routes: Routes = [
|
||||
{
|
||||
path: 'detail',
|
||||
component: DetailComponent
|
||||
}
|
||||
];
|
||||
|
||||
@NgModule({
|
||||
declarations: [],
|
||||
imports: [CommonModule, RouterModule.forChild(routes)],
|
||||
exports: [RouterModule]
|
||||
})
|
||||
export class DetailRoutingModule {}
|
7
src/app/detail/detail.component.html
Normal file
|
@ -0,0 +1,7 @@
|
|||
<div class="container">
|
||||
<h1 class="title">
|
||||
{{ 'PAGES.DETAIL.TITLE' | translate }}
|
||||
</h1>
|
||||
|
||||
<a routerLink="/">{{ 'PAGES.DETAIL.BACK_TO_HOME' | translate }}</a>
|
||||
</div>
|
3
src/app/detail/detail.component.scss
Normal file
|
@ -0,0 +1,3 @@
|
|||
:host {
|
||||
|
||||
}
|
33
src/app/detail/detail.component.spec.ts
Normal file
|
@ -0,0 +1,33 @@
|
|||
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
|
||||
|
||||
import { DetailComponent } from './detail.component';
|
||||
import { TranslateModule } from '@ngx-translate/core';
|
||||
|
||||
import { RouterTestingModule } from '@angular/router/testing';
|
||||
|
||||
describe('DetailComponent', () => {
|
||||
let component: DetailComponent;
|
||||
let fixture: ComponentFixture<DetailComponent>;
|
||||
|
||||
beforeEach(waitForAsync(() => {
|
||||
void TestBed.configureTestingModule({
|
||||
declarations: [DetailComponent],
|
||||
imports: [TranslateModule.forRoot(), RouterTestingModule]
|
||||
}).compileComponents();
|
||||
|
||||
fixture = TestBed.createComponent(DetailComponent);
|
||||
component = fixture.componentInstance;
|
||||
fixture.detectChanges();
|
||||
}));
|
||||
|
||||
it('should create', () => {
|
||||
expect(component).toBeTruthy();
|
||||
});
|
||||
|
||||
it('should render title in a h1 tag', waitForAsync(() => {
|
||||
const compiled = fixture.debugElement.nativeElement;
|
||||
expect(compiled.querySelector('h1').textContent).toContain(
|
||||
'PAGES.DETAIL.TITLE'
|
||||
);
|
||||
}));
|
||||
});
|
16
src/app/detail/detail.component.ts
Normal file
|
@ -0,0 +1,16 @@
|
|||
import { Component, OnInit } from '@angular/core';
|
||||
|
||||
@Component({
|
||||
selector: 'app-detail',
|
||||
templateUrl: './detail.component.html',
|
||||
styleUrls: ['./detail.component.scss']
|
||||
})
|
||||
export class DetailComponent implements OnInit {
|
||||
|
||||
constructor() { }
|
||||
|
||||
ngOnInit(): void {
|
||||
console.log('DetailComponent INIT');
|
||||
}
|
||||
|
||||
}
|
13
src/app/detail/detail.module.ts
Normal file
|
@ -0,0 +1,13 @@
|
|||
import { NgModule } from '@angular/core';
|
||||
import { CommonModule } from '@angular/common';
|
||||
|
||||
import { DetailRoutingModule } from './detail-routing.module';
|
||||
|
||||
import { DetailComponent } from './detail.component';
|
||||
import { SharedModule } from '../shared/shared.module';
|
||||
|
||||
@NgModule({
|
||||
declarations: [DetailComponent],
|
||||
imports: [CommonModule, SharedModule, DetailRoutingModule]
|
||||
})
|
||||
export class DetailModule {}
|
18
src/app/home/home-routing.module.ts
Normal file
|
@ -0,0 +1,18 @@
|
|||
import { NgModule } from '@angular/core';
|
||||
import { CommonModule } from '@angular/common';
|
||||
import { Routes, RouterModule } from '@angular/router';
|
||||
import { HomeComponent } from './home.component';
|
||||
|
||||
const routes: Routes = [
|
||||
{
|
||||
path: 'home',
|
||||
component: HomeComponent
|
||||
}
|
||||
];
|
||||
|
||||
@NgModule({
|
||||
declarations: [],
|
||||
imports: [CommonModule, RouterModule.forChild(routes)],
|
||||
exports: [RouterModule]
|
||||
})
|
||||
export class HomeRoutingModule {}
|
7
src/app/home/home.component.html
Normal file
|
@ -0,0 +1,7 @@
|
|||
<div class="container">
|
||||
<h1 class="title">
|
||||
{{ 'PAGES.HOME.TITLE' | translate }}
|
||||
</h1>
|
||||
|
||||
<a routerLink="/detail">{{ 'PAGES.HOME.GO_TO_DETAIL' | translate }}</a>
|
||||
</div>
|
3
src/app/home/home.component.scss
Normal file
|
@ -0,0 +1,3 @@
|
|||
:host {
|
||||
|
||||
}
|
32
src/app/home/home.component.spec.ts
Normal file
|
@ -0,0 +1,32 @@
|
|||
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
|
||||
|
||||
import { HomeComponent } from './home.component';
|
||||
import { TranslateModule } from '@ngx-translate/core';
|
||||
import { RouterTestingModule } from '@angular/router/testing';
|
||||
|
||||
describe('HomeComponent', () => {
|
||||
let component: HomeComponent;
|
||||
let fixture: ComponentFixture<HomeComponent>;
|
||||
|
||||
beforeEach(waitForAsync(() => {
|
||||
void TestBed.configureTestingModule({
|
||||
declarations: [HomeComponent],
|
||||
imports: [TranslateModule.forRoot(), RouterTestingModule]
|
||||
}).compileComponents();
|
||||
|
||||
fixture = TestBed.createComponent(HomeComponent);
|
||||
component = fixture.componentInstance;
|
||||
fixture.detectChanges();
|
||||
}));
|
||||
|
||||
it('should create', () => {
|
||||
expect(component).toBeTruthy();
|
||||
});
|
||||
|
||||
it('should render title in a h1 tag', waitForAsync(() => {
|
||||
const compiled = fixture.debugElement.nativeElement;
|
||||
expect(compiled.querySelector('h1').textContent).toContain(
|
||||
'PAGES.HOME.TITLE'
|
||||
);
|
||||
}));
|
||||
});
|
17
src/app/home/home.component.ts
Normal file
|
@ -0,0 +1,17 @@
|
|||
import { Component, OnInit } from '@angular/core';
|
||||
import { Router } from '@angular/router';
|
||||
|
||||
@Component({
|
||||
selector: 'app-home',
|
||||
templateUrl: './home.component.html',
|
||||
styleUrls: ['./home.component.scss']
|
||||
})
|
||||
export class HomeComponent implements OnInit {
|
||||
|
||||
constructor(private router: Router) { }
|
||||
|
||||
ngOnInit(): void {
|
||||
console.log('HomeComponent INIT');
|
||||
}
|
||||
|
||||
}
|
13
src/app/home/home.module.ts
Normal file
|
@ -0,0 +1,13 @@
|
|||
import { NgModule } from '@angular/core';
|
||||
import { CommonModule } from '@angular/common';
|
||||
|
||||
import { HomeRoutingModule } from './home-routing.module';
|
||||
|
||||
import { HomeComponent } from './home.component';
|
||||
import { SharedModule } from '../shared/shared.module';
|
||||
|
||||
@NgModule({
|
||||
declarations: [HomeComponent],
|
||||
imports: [CommonModule, SharedModule, HomeRoutingModule]
|
||||
})
|
||||
export class HomeModule {}
|
1
src/app/shared/components/index.ts
Normal file
|
@ -0,0 +1 @@
|
|||
export * from './page-not-found/page-not-found.component';
|
|
@ -0,0 +1,3 @@
|
|||
<p>
|
||||
page-not-found works!
|
||||
</p>
|
|
@ -0,0 +1,23 @@
|
|||
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
|
||||
|
||||
import { PageNotFoundComponent } from './page-not-found.component';
|
||||
|
||||
describe('PageNotFoundComponent', () => {
|
||||
let component: PageNotFoundComponent;
|
||||
let fixture: ComponentFixture<PageNotFoundComponent>;
|
||||
|
||||
beforeEach(waitForAsync(() => {
|
||||
void TestBed.configureTestingModule({
|
||||
declarations: [PageNotFoundComponent]
|
||||
})
|
||||
.compileComponents();
|
||||
|
||||
fixture = TestBed.createComponent(PageNotFoundComponent);
|
||||
component = fixture.componentInstance;
|
||||
fixture.detectChanges();
|
||||
}));
|
||||
|
||||
it('should create', () => {
|
||||
expect(component).toBeTruthy();
|
||||
});
|
||||
});
|
|
@ -0,0 +1,14 @@
|
|||
import { Component, OnInit } from '@angular/core';
|
||||
|
||||
@Component({
|
||||
selector: 'app-page-not-found',
|
||||
templateUrl: './page-not-found.component.html',
|
||||
styleUrls: ['./page-not-found.component.scss']
|
||||
})
|
||||
export class PageNotFoundComponent implements OnInit {
|
||||
constructor() {}
|
||||
|
||||
ngOnInit(): void {
|
||||
console.log('PageNotFoundComponent INIT');
|
||||
}
|
||||
}
|
1
src/app/shared/directives/index.ts
Normal file
|
@ -0,0 +1 @@
|
|||
export * from './webview/webview.directive';
|
|
@ -0,0 +1,8 @@
|
|||
import { WebviewDirective } from './webview.directive';
|
||||
|
||||
describe('WebviewDirective', () => {
|
||||
it('should create an instance', () => {
|
||||
const directive = new WebviewDirective();
|
||||
expect(directive).toBeTruthy();
|
||||
});
|
||||
});
|
8
src/app/shared/directives/webview/webview.directive.ts
Normal file
|
@ -0,0 +1,8 @@
|
|||
import { Directive } from '@angular/core';
|
||||
|
||||
@Directive({
|
||||
selector: 'webview'
|
||||
})
|
||||
export class WebviewDirective {
|
||||
constructor() { }
|
||||
}
|
15
src/app/shared/shared.module.ts
Normal file
|
@ -0,0 +1,15 @@
|
|||
import { NgModule } from '@angular/core';
|
||||
import { CommonModule } from '@angular/common';
|
||||
|
||||
import { TranslateModule } from '@ngx-translate/core';
|
||||
|
||||
import { PageNotFoundComponent } from './components/';
|
||||
import { WebviewDirective } from './directives/';
|
||||
import { FormsModule } from '@angular/forms';
|
||||
|
||||
@NgModule({
|
||||
declarations: [PageNotFoundComponent, WebviewDirective],
|
||||
imports: [CommonModule, TranslateModule, FormsModule],
|
||||
exports: [TranslateModule, WebviewDirective, FormsModule]
|
||||
})
|
||||
export class SharedModule {}
|
0
src/assets/.gitkeep
Normal file
BIN
src/assets/background.jpg
Normal file
After Width: | Height: | Size: 227 KiB |
12
src/assets/i18n/en.json
Normal file
|
@ -0,0 +1,12 @@
|
|||
{
|
||||
"PAGES": {
|
||||
"HOME": {
|
||||
"TITLE": "App works !",
|
||||
"GO_TO_DETAIL": "Go to Detail"
|
||||
},
|
||||
"DETAIL": {
|
||||
"TITLE": "Detail page !",
|
||||
"BACK_TO_HOME": "Back to Home"
|
||||
}
|
||||
}
|
||||
}
|
BIN
src/assets/icons/electron.bmp
Normal file
After Width: | Height: | Size: 446 KiB |
BIN
src/assets/icons/favicon.256x256.png
Normal file
After Width: | Height: | Size: 14 KiB |
BIN
src/assets/icons/favicon.512x512.png
Normal file
After Width: | Height: | Size: 26 KiB |
BIN
src/assets/icons/favicon.icns
Normal file
BIN
src/assets/icons/favicon.ico
Normal file
After Width: | Height: | Size: 16 KiB |
BIN
src/assets/icons/favicon.png
Normal file
After Width: | Height: | Size: 14 KiB |
4
src/environments/environment.dev.ts
Normal file
|
@ -0,0 +1,4 @@
|
|||
export const APP_CONFIG = {
|
||||
production: false,
|
||||
environment: 'DEV'
|
||||
};
|
4
src/environments/environment.prod.ts
Normal file
|
@ -0,0 +1,4 @@
|
|||
export const APP_CONFIG = {
|
||||
production: true,
|
||||
environment: 'PROD'
|
||||
};
|
4
src/environments/environment.ts
Normal file
|
@ -0,0 +1,4 @@
|
|||
export const APP_CONFIG = {
|
||||
production: false,
|
||||
environment: 'LOCAL'
|
||||
};
|
4
src/environments/environment.web.prod.ts
Normal file
|
@ -0,0 +1,4 @@
|
|||
export const APP_CONFIG = {
|
||||
production: true,
|
||||
environment: 'WEB-PROD'
|
||||
};
|
4
src/environments/environment.web.ts
Normal file
|
@ -0,0 +1,4 @@
|
|||
export const APP_CONFIG = {
|
||||
production: false,
|
||||
environment: 'WEB'
|
||||
};
|
BIN
src/favicon.ico
Normal file
After Width: | Height: | Size: 948 B |
14
src/index.html
Normal file
|
@ -0,0 +1,14 @@
|
|||
<!doctype html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Angular Electron</title>
|
||||
<base href="/">
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link rel="icon" type="image/x-icon" href="assets/icons/favicon.ico">
|
||||
</head>
|
||||
<body>
|
||||
<app-root>Loading...</app-root>
|
||||
</body>
|
||||
</html>
|
15
src/main.ts
Normal file
|
@ -0,0 +1,15 @@
|
|||
import { enableProdMode } from '@angular/core';
|
||||
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
|
||||
|
||||
import { AppModule } from './app/app.module';
|
||||
import { APP_CONFIG } from './environments/environment';
|
||||
|
||||
if (APP_CONFIG.production) {
|
||||
enableProdMode();
|
||||
}
|
||||
|
||||
platformBrowserDynamic()
|
||||
.bootstrapModule(AppModule, {
|
||||
preserveWhitespaces: false
|
||||
})
|
||||
.catch(err => console.error(err));
|
1
src/polyfills-test.ts
Normal file
|
@ -0,0 +1 @@
|
|||
import 'zone.js';
|
53
src/polyfills.ts
Normal file
|
@ -0,0 +1,53 @@
|
|||
/**
|
||||
* This file includes polyfills needed by Angular and is loaded before the app.
|
||||
* You can add your own extra polyfills to this file.
|
||||
*
|
||||
* This file is divided into 2 sections:
|
||||
* 1. Browser polyfills. These are applied before loading ZoneJS and are sorted by browsers.
|
||||
* 2. Application imports. Files imported after ZoneJS that should be loaded before your main
|
||||
* file.
|
||||
*
|
||||
* The current setup is for so-called "evergreen" browsers; the last versions of browsers that
|
||||
* automatically update themselves. This includes Safari >= 10, Chrome >= 55 (including Opera),
|
||||
* Edge >= 13 on the desktop, and iOS 10 and Chrome on mobile.
|
||||
*
|
||||
* Learn more in https://angular.io/guide/browser-support
|
||||
*/
|
||||
|
||||
/***************************************************************************************************
|
||||
* BROWSER POLYFILLS
|
||||
*/
|
||||
|
||||
/**
|
||||
* By default, zone.js will patch all possible macroTask and DomEvents
|
||||
* user can disable parts of macroTask/DomEvents patch by setting following flags
|
||||
* because those flags need to be set before `zone.js` being loaded, and webpack
|
||||
* will put import in the top of bundle, so user need to create a separate file
|
||||
* in this directory (for example: zone-flags.ts), and put the following flags
|
||||
* into that file, and then add the following code before importing zone.js.
|
||||
* import './zone-flags.ts';
|
||||
*
|
||||
* The flags allowed in zone-flags.ts are listed here.
|
||||
*
|
||||
* The following flags will work for all browsers.
|
||||
*
|
||||
* (window as any).__Zone_disable_requestAnimationFrame = true; // disable patch requestAnimationFrame
|
||||
* (window as any).__Zone_disable_on_property = true; // disable patch onProperty such as onclick
|
||||
* (window as any).__zone_symbol__UNPATCHED_EVENTS = ['scroll', 'mousemove']; // disable patch specified eventNames
|
||||
*
|
||||
* in IE/Edge developer tools, the addEventListener will also be wrapped by zone.js
|
||||
* with the following flag, it will bypass `zone.js` patch for IE/Edge
|
||||
*
|
||||
* (window as any).__Zone_enable_cross_context_check = true;
|
||||
*
|
||||
*/
|
||||
|
||||
/***************************************************************************************************
|
||||
* Zone JS is required by default for Angular itself.
|
||||
*/
|
||||
import 'zone.js'; // Included with Angular CLI.
|
||||
|
||||
|
||||
/***************************************************************************************************
|
||||
* APPLICATION IMPORTS
|
||||
*/
|
50
src/styles.scss
Normal file
|
@ -0,0 +1,50 @@
|
|||
/* You can add global styles to this file, and also import other style files */
|
||||
html, body {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
|
||||
height: 100%;
|
||||
font-family: Arial, Helvetica, sans-serif;
|
||||
}
|
||||
|
||||
/* CAN (MUST) BE REMOVED ! Sample Global style */
|
||||
.container {
|
||||
height: 100%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
|
||||
background: url(./assets/background.jpg) no-repeat center fixed;
|
||||
-webkit-background-size: cover; /* pour anciens Chrome et Safari */
|
||||
background-size: cover; /* version standardisée */
|
||||
|
||||
.title {
|
||||
color: white;
|
||||
margin: 0;
|
||||
padding: 50px 20px;
|
||||
}
|
||||
|
||||
a {
|
||||
color: #fff !important;
|
||||
text-transform: uppercase;
|
||||
text-decoration: none;
|
||||
background: #ed3330;
|
||||
padding: 20px;
|
||||
border-radius: 5px;
|
||||
display: inline-block;
|
||||
border: none;
|
||||
transition: all 0.4s ease 0s;
|
||||
|
||||
&:hover {
|
||||
background: #fff;
|
||||
color: #ed3330 !important;
|
||||
letter-spacing: 1px;
|
||||
-webkit-box-shadow: 0px 5px 40px -10px rgba(0,0,0,0.57);
|
||||
-moz-box-shadow: 0px 5px 40px -10px rgba(0,0,0,0.57);
|
||||
box-shadow: 5px 40px -10px rgba(0,0,0,0.57);
|
||||
transition: all 0.4s ease 0s;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
20
src/tsconfig.app.json
Normal file
|
@ -0,0 +1,20 @@
|
|||
{
|
||||
"extends": "../tsconfig.json",
|
||||
"compilerOptions": {
|
||||
"outDir": "../out-tsc/app",
|
||||
"baseUrl": "",
|
||||
"types": [
|
||||
"node"
|
||||
]
|
||||
},
|
||||
"files": [
|
||||
"main.ts",
|
||||
"polyfills.ts"
|
||||
],
|
||||
"include": [
|
||||
"**/*.d.ts"
|
||||
],
|
||||
"exclude": [
|
||||
"**/*.spec.ts"
|
||||
]
|
||||
}
|
23
src/tsconfig.spec.json
Normal file
|
@ -0,0 +1,23 @@
|
|||
{
|
||||
"extends": "../tsconfig.json",
|
||||
"compilerOptions": {
|
||||
"esModuleInterop": true,
|
||||
"outDir": "../out-tsc/spec",
|
||||
"types": [
|
||||
"jest",
|
||||
"node"
|
||||
]
|
||||
},
|
||||
"files": [
|
||||
"polyfills-test.ts"
|
||||
],
|
||||
"include": [
|
||||
"**/*.spec.ts",
|
||||
"**/*.d.ts"
|
||||
],
|
||||
"exclude": [
|
||||
"dist",
|
||||
"release",
|
||||
"node_modules"
|
||||
]
|
||||
}
|
9
src/typings.d.ts
vendored
Normal file
|
@ -0,0 +1,9 @@
|
|||
/* SystemJS module definition */
|
||||
declare const nodeModule: NodeModule;
|
||||
interface NodeModule {
|
||||
id: string;
|
||||
}
|
||||
interface Window {
|
||||
process: any;
|
||||
require: any;
|
||||
}
|
39
tsconfig.json
Normal file
|
@ -0,0 +1,39 @@
|
|||
{
|
||||
"compileOnSave": false,
|
||||
"compilerOptions": {
|
||||
"strict": true,
|
||||
"outDir": "./dist/out-tsc",
|
||||
"module": "es2022",
|
||||
"sourceMap": true,
|
||||
"declaration": false,
|
||||
"moduleResolution": "node",
|
||||
"emitDecoratorMetadata": true,
|
||||
"experimentalDecorators": true,
|
||||
"allowJs": true,
|
||||
"target": "ES2022",
|
||||
"typeRoots": [
|
||||
"node_modules/@types"
|
||||
],
|
||||
"lib": [
|
||||
"es2017",
|
||||
"es2016",
|
||||
"es2015",
|
||||
"es2018",
|
||||
"dom"
|
||||
],
|
||||
"useDefineForClassFields": false
|
||||
},
|
||||
"exclude": [
|
||||
"node_modules"
|
||||
],
|
||||
"angularCompilerOptions": {
|
||||
"strictTemplates": true,
|
||||
"fullTemplateTypeCheck": true,
|
||||
"annotateForClosureCompiler": true,
|
||||
"strictInjectionParameters": true,
|
||||
"skipTemplateCodegen": false,
|
||||
"preserveWhitespaces": true,
|
||||
"skipMetadataEmit": false,
|
||||
"disableTypeScriptVersionCheck": true
|
||||
}
|
||||
}
|
27
tsconfig.serve.json
Normal file
|
@ -0,0 +1,27 @@
|
|||
{
|
||||
"compilerOptions": {
|
||||
"sourceMap": true,
|
||||
"declaration": false,
|
||||
"moduleResolution": "node",
|
||||
"emitDecoratorMetadata": true,
|
||||
"experimentalDecorators": true,
|
||||
"module": "commonjs",
|
||||
"target": "es2015",
|
||||
"types": [
|
||||
"node"
|
||||
],
|
||||
"lib": [
|
||||
"es2017",
|
||||
"es2016",
|
||||
"es2015",
|
||||
"dom"
|
||||
]
|
||||
},
|
||||
"files": [
|
||||
"app/main.ts"
|
||||
],
|
||||
"exclude": [
|
||||
"node_modules",
|
||||
"**/*.spec.ts"
|
||||
]
|
||||
}
|