Skip to content

Commit d0c5fad

Browse files
Antonio Mudarra MachucaAntonio Mudarra Machuca
authored andcommitted
.browserslistrc, fix package.json, components, tests with karma and README
1 parent d6fa110 commit d0c5fad

File tree

10 files changed

+249
-111
lines changed

10 files changed

+249
-111
lines changed

.browserslistrc

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
# Comment
2+
defaults
3+
4+
# Not keyword
5+
not dead
6+
7+
# Market share with %
8+
> 10%
9+
< 1.5% in US
10+
>= .5%
11+
12+
# Rare queries
13+
maintained node versions
14+
supports es6-module
15+
16+
# Extend keyword
17+
extends browserslist-config-mycompany
18+
extends @company/browserslist-config
19+
extends @company/browserslist-config-mycompany
20+
21+
# Direct versions
22+
Chrome 50
23+
Firefox ESR
24+
Safari TP
25+
OperaMini all
26+
27+
# Browser names
28+
Android
29+
Baidu
30+
BlackBerry or bb
31+
Chrome
32+
ChromeAndroid or and_chr
33+
Edge
34+
Electron
35+
Explorer or ie
36+
ExplorerMobile or ie_mob
37+
Firefox or ff
38+
FirefoxAndroid or and_ff
39+
iOS or ios_saf
40+
Node
41+
Opera
42+
OperaMini or op_mini
43+
OperaMobile or op_mob
44+
QQAndroid or and_qq
45+
Safari
46+
Samsung
47+
UCAndroid or and_uc
48+
kaios
49+
50+
51+
not IE 11
52+
not IE 10
53+
not IE 9
54+
55+
56+
# Block header
57+
[production]
58+
last 5 Chrome version
59+
last 5 ChromeAndroid version
60+
last 5 Firefox version
61+
last 5 FirefoxAndroid version
62+
last 5 Edge major version
63+
last 5 Opera major version
64+
last 2 Safari major version
65+
last 2 ios_saf major version
66+
# Electron
67+
# iOS or ios_saf
68+
# ChromeAndroid or and_chr
69+
# FirefoxAndroid or and_ff

CHANGELOG.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,36 @@
1+
## <small>1.3.6 (2022-02-14)</small>
2+
3+
* minor changes ([e0514eb](https://github.com/nonodev96/THUMDER/commit/e0514eb))
4+
* polyfills for karma tests ([d6fa110](https://github.com/nonodev96/THUMDER/commit/d6fa110))
5+
6+
7+
8+
## <small>1.3.5 (2022-01-30)</small>
9+
10+
* Add submodule with wiki reference, ChartJS in statistics, fix filesystem, reset localstorage with lo ([312f833](https://github.com/nonodev96/THUMDER/commit/312f833))
11+
* Add to angular.json glob Wiki and update github actions with recursive submodule ([4f3bf81](https://github.com/nonodev96/THUMDER/commit/4f3bf81))
12+
* fixed Pixi arrow, pipeline, add favicon, add redirect to cookies, profile and save project ([79583c7](https://github.com/nonodev96/THUMDER/commit/79583c7))
13+
* version 1.3.5 ([b2f9963](https://github.com/nonodev96/THUMDER/commit/b2f9963))
14+
15+
16+
17+
## <small>1.3.4 (2022-01-25)</small>
18+
19+
* Add icons, electron ipcMain, electron notification, toggle card with title, fix href and config cols ([80126c1](https://github.com/nonodev96/THUMDER/commit/80126c1))
20+
21+
22+
23+
## <small>1.3.3 (2022-01-24)</small>
24+
25+
* Refactor: clean code ([039c3f9](https://github.com/nonodev96/THUMDER/commit/039c3f9))
26+
* FileSystem fixed and new Observables and performance, UML refactor, refactor in __core ([a9c0142](https://github.com/nonodev96/THUMDER/commit/a9c0142))
27+
28+
29+
130
## <small>1.3.2 (2022-01-14)</small>
231

32+
* add AppAdminLTE init, refactor in CONSTANTS, Types and routes, fix layout page, new layout in index, ([bce3545](https://github.com/nonodev96/THUMDER/commit/bce3545))
33+
* fix config with default value ([c243f19](https://github.com/nonodev96/THUMDER/commit/c243f19))
334
* Multiview performance, Drag & Drop, card resize, items default in project, fix guard in path /, tran ([62e3ef2](https://github.com/nonodev96/THUMDER/commit/62e3ef2))
435

536

README.md

Lines changed: 53 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,47 @@
11
THUMDER
22
=======
3-
[![Netlify Status](https://api.netlify.com/api/v1/badges/491cdbc6-34ea-4ef0-92c0-be4f2a2ec3cb/deploy-status)](https://app.netlify.com/sites/thumder/deploys)
43

5-
# Introduction | THUMDER
4+
<div style="text-align:center"><img src="./src/assets/icons/favicon.256x256.png" alt="ICON" width="10%" height="10%"/></div>
65

7-
![Datapath Schematic](./assets/Datapath_Schematic.svg)
86

9-
[![License](http://img.shields.io/badge/Licence-MIT-brightgreen.svg)](LICENSE.md)
107

11-
# Introduction | Angular - Electron
8+
<div style="text-align:center">
9+
10+
[//]: # (![Datapath Schematic]&#40;./assets/Datapath_Schematic.svg&#41;)
1211

1312
[![Angular Logo](https://www.vectorlogo.zone/logos/angular/angular-icon.svg)](https://angular.io/)
1413
[![Electron Logo](https://www.vectorlogo.zone/logos/electronjs/electronjs-icon.svg)](https://electronjs.org/)
1514

16-
## Currently, runs with:
15+
[![Netlify Status](https://api.netlify.com/api/v1/badges/491cdbc6-34ea-4ef0-92c0-be4f2a2ec3cb/deploy-status)](https://app.netlify.com/sites/thumder/deploys)
16+
17+
[THUMDER page](https://thumder.netlify.com)
18+
19+
</div>
20+
21+
## Installation
1722

18-
- Angular v10.2.5
19-
- Electron v8.4.1
20-
- Electron Builder v22.8.1
23+
```bash
24+
sudo npm install -g @angular/[email protected]
25+
npm install
26+
# npm install --only=prod
27+
```
2128

2229
## Included Commands
2330

24-
| Command | Description |
25-
|:-------------------------------|:-------------------------------------------------------------------------------------|
26-
| `npm run ng:serve-angular:dev` | Execute the app in the browser |
27-
| `npm run electron:local` | Builds your application and start electron |
28-
| `npm run electron:build` | Builds your application and creates an app consumable based on your operating system |
31+
### Develop
32+
33+
| Command | Description |
34+
|:--------------------------------------|:-------------------------------------------------------------------------------------|
35+
| `npm run ng:serve-angular:dev` | Develop the app in the browser |
36+
37+
### Deploy
38+
39+
| Command | Description |
40+
|:--------------------------------------|:-------------------------------------------------------------------------------------|
41+
| `npm run ng:build-angular:production` | Deploy Angular app for browser version |
42+
| `npm run electron:build` | Builds your application and creates an app consumable based on your operating system |
43+
44+
### Others command
2945

3046
| Command | Description |
3147
|:--------------------------------------|:------------|
@@ -52,17 +68,17 @@ YES! You can do it! Just by importing your library in npm dependencies section (
5268
with `npm install --save`. It will be loaded by electron during build phase and added to your final package. Then use
5369
your library by importing it in `main.ts` file. Quite simple, isn't it ?
5470

55-
## E2E Testing
71+
## Unit Tests
5672

57-
E2E Test scripts can be found in `e2e` and `cypress` folder.
73+
| Command | Description |
74+
|:--------|:-------------------------------------------------------------|
75+
| ng test | Run unit tests with karma, for components, views and modules |
5876

59-
### Electron e2e
77+
## E2E Testing
6078

61-
| Command | Description |
62-
|:----------------|:--------------------------------------|
63-
| `npm run e2e` | Execute end to end tests of electron |
79+
E2E Test scripts can be found in `e2e` and `cypress` folder.
6480

65-
### Server e2e
81+
## Server e2e
6682

6783
| Command | Description |
6884
|:-----------------------|:---------------------------------------------------|
@@ -72,3 +88,19 @@ E2E Test scripts can be found in `e2e` and `cypress` folder.
7288

7389
Note: To make it work behind a proxy, you can add this proxy exception in your terminal
7490
`export {no_proxy,NO_PROXY}="127.0.0.1,localhost"`
91+
92+
93+
### Coverage
94+
95+
```bash
96+
npx browserslist
97+
npx browserslist --coverage
98+
```
99+
100+
These browsers account for 86.79% of all users globally
101+
102+
## Currently, runs with:
103+
104+
- Angular v12.2.10
105+
- Electron v12.2.2
106+
- Electron Builder v22.10.5

angular.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
"tsConfig": "src/tsconfig.app.json",
1818
"polyfills": "src/polyfills.ts",
1919
"allowedCommonJsDependencies": [
20+
"@covalent/code-editor",
2021
"admin-lte/plugins/chart.js/Chart.js",
2122
"chart.js",
2223
"pixi.js-keyboard",
@@ -218,6 +219,7 @@
218219
"tsConfig": "src/tsconfig.app.json",
219220
"polyfills": "src/polyfills.ts",
220221
"allowedCommonJsDependencies": [
222+
"@covalent/code-editor",
221223
"admin-lte/plugins/chart.js/Chart.js",
222224
"chart.js",
223225
"pixi.js-keyboard",

assets/Release.png

734 KB
Loading

electron-builder.json

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -4,22 +4,22 @@
44
"directories": {
55
"output": "release/"
66
},
7-
"files": [
8-
"**/*",
9-
"!**/*.ts",
10-
"!*.code-workspace",
11-
"!LICENSE.md",
12-
"!package.json",
13-
"!package-lock.json",
14-
"!src/",
15-
"!e2e/",
16-
"!hooks/",
17-
"!angular.json",
18-
"!_config.yml",
19-
"!karma.conf.js",
20-
"!tsconfig.json",
21-
"!tslint.json"
22-
],
7+
"files": [
8+
"**/*",
9+
"!**/*.ts",
10+
"!*.code-workspace",
11+
"!LICENSE.md",
12+
"!package.json",
13+
"!package-lock.json",
14+
"!src/",
15+
"!e2e/",
16+
"!hooks/",
17+
"!angular.json",
18+
"!_config.yml",
19+
"!karma.conf.js",
20+
"!tsconfig.json",
21+
"!tslint.json"
22+
],
2323
"win": {
2424
"icon": "dist/assets/icons",
2525
"target": [

0 commit comments

Comments
 (0)