Skip to content
This repository was archived by the owner on Jul 13, 2022. It is now read-only.

Commit 690a597

Browse files
committed
chore: 1.0.0-alpha.4 release
- dependencies update - minor refactor and cleanups - removal of classnames dependency BREAKING CHANGE: - from now on `customClasses` prop overwrites default `c-icon` and `c-icon-${size}` css classes - the change reflects default `customClasses` behavior of `@coreui/icons-react` and `@coreui/icons-vue`
1 parent c6f8150 commit 690a597

22 files changed

+158
-131
lines changed

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2020 CoreUI
3+
Copyright (c) 2021 CoreUI
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

NG.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# CoreuiIconsAngular
22

3-
This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 9.1.12.
3+
This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 11.2.3.
44

55
## Development server
66

@@ -24,4 +24,4 @@ Run `ng e2e` to execute the end-to-end tests via [Protractor](http://www.protrac
2424

2525
## Further help
2626

27-
To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI README](https://github.com/angular/angular-cli/blob/master/README.md).
27+
To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI Overview and Command Reference](https://angular.io/cli) page.

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
[![NPM](https://img.shields.io/npm/v/@coreui/icons-angular/latest?style=flat-square&color=brightgreen)][coreui-angular-icons-npm]
44
[![Downloads](https://img.shields.io/npm/dm/@coreui/icons-angular.svg?style=flat-square)][coreui-angular-icons-npm]
55
[![License](https://img.shields.io/npm/l/@coreui/angular?style=flat-square)][coreui]
6+
![angular](https://img.shields.io/badge/angular-^11.0.0-lightgrey.svg?style=flat-square&logo=angular)
67

78
[coreui]: https://coreui.io/icons
89
[coreui-angular-icons-npm]: https://www.npmjs.com/package/@coreui/icons-angular
@@ -81,7 +82,7 @@ proprerty | type | default | description
8182
`size` | `custom`, `custom-size`, `sm`, `lg`, `xl`, `2xl`, `3xl`, `4xl`, `5xl`, `6xl`, `7xl`, `8xl`, `9xl` | '' | Size of icon
8283
`title` | string | undefined |
8384
`use` | string | undefined | SVG `<use>`
84-
`customClasses` | string | undefined | Replaces default `c-icon` component classes
85+
`customClasses` | string | undefined | Overwrites default `c-icon` component classes
8586
`viewBox` | string | undefined | SVG `viewbox`
8687
`attributes` | any | `{ role: 'img' }` | Object with additional html attributes
8788
`width` | | undefined | SVG `width`

angular.json

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,24 @@
11
{
22
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
3+
"cli": {
4+
"analytics": false
5+
},
36
"version": 1,
47
"newProjectRoot": "projects",
58
"projects": {
69
"@coreui/icons-angular": {
710
"projectType": "library",
11+
"schematics": {
12+
"@schematics/angular:component": {
13+
"style": "scss"
14+
}
15+
},
816
"root": "projects/coreui/icons-angular",
917
"sourceRoot": "projects/coreui/icons-angular/src",
1018
"prefix": "c",
1119
"architect": {
1220
"build": {
13-
"builder": "@angular-devkit/build-ng-packagr:build",
21+
"builder": "@angular-devkit/build-angular:ng-packagr",
1422
"options": {
1523
"tsConfig": "projects/coreui/icons-angular/tsconfig.lib.json",
1624
"project": "projects/coreui/icons-angular/ng-package.json"
@@ -42,9 +50,7 @@
4250
}
4351
}
4452
}
45-
}},
46-
"cli": {
47-
"analytics": false
53+
}
4854
},
4955
"defaultProject": "@coreui/icons-angular"
5056
}

package.json

Lines changed: 25 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "coreui-icons-angular",
3-
"version": "1.0.0-alpha.3",
3+
"version": "1.0.0-alpha.4",
44
"description": "CoreUI Icons Angular component",
55
"license": "MIT",
66
"homepage": "https://coreui.io",
@@ -27,6 +27,7 @@
2727
"ng": "ng",
2828
"start": "ng serve",
2929
"build": "ng build",
30+
"watch": "ng build --watch",
3031
"test": "ng test",
3132
"test:github": "ng test --karma-config=projects/coreui/icons-angular/karma.conf.github.js",
3233
"lint": "ng lint",
@@ -36,41 +37,35 @@
3637
},
3738
"private": true,
3839
"dependencies": {
39-
"@angular/animations": "^9.1.13",
40-
"@angular/common": "^9.1.13",
41-
"@angular/compiler": "^9.1.13",
42-
"@angular/core": "^9.1.13",
43-
"@angular/forms": "^9.1.13",
44-
"@angular/platform-browser": "^9.1.13",
45-
"@angular/platform-browser-dynamic": "^9.1.13",
46-
"@angular/router": "^9.1.13",
47-
"classnames": "^2.2.6",
48-
"rxjs": "~6.5.4",
49-
"tslib": "^1.14.1",
50-
"zone.js": "~0.10.2"
40+
"@angular/common": "~11.2.7",
41+
"@angular/compiler": "~11.2.7",
42+
"@angular/core": "~11.2.7",
43+
"@angular/platform-browser": "~11.2.7",
44+
"@angular/platform-browser-dynamic": "~11.2.7",
45+
"rxjs": "~6.6.7",
46+
"tslib": "^2.0.0",
47+
"zone.js": "~0.11.3"
5148
},
5249
"devDependencies": {
53-
"@angular-devkit/build-angular": "^0.901.13",
54-
"@angular-devkit/build-ng-packagr": "^0.901.13",
55-
"@angular/cli": "^9.1.13",
56-
"@angular/compiler-cli": "^9.1.13",
57-
"@coreui/icons": "^2.0.0-rc.0",
58-
"@types/jasmine": "^3.6.2",
59-
"@types/jasminewd2": "~2.0.8",
60-
"@types/node": "^14.14.20",
50+
"@angular-devkit/build-angular": "~0.1102.6",
51+
"@angular/cli": "~11.2.6",
52+
"@angular/compiler-cli": "~11.2.7",
53+
"@coreui/icons": "^2.0.1",
54+
"@types/jasmine": "~3.6.9",
55+
"@types/node": "^14.14.37",
6156
"codelyzer": "^6.0.1",
62-
"jasmine-core": "^3.6.0",
57+
"jasmine-core": "~3.7.1",
6358
"jasmine-spec-reporter": "^6.0.0",
64-
"karma": "^5.2.3",
65-
"karma-chrome-launcher": "^3.1.0",
66-
"karma-coverage-istanbul-reporter": "^3.0.3",
67-
"karma-jasmine": "^4.0.1",
59+
"karma": "~6.3.2",
60+
"karma-chrome-launcher": "~3.1.0",
61+
"karma-coverage": "~2.0.3",
62+
"karma-jasmine": "~4.0.1",
6863
"karma-jasmine-html-reporter": "^1.5.4",
69-
"ng-packagr": "^9.1.5",
64+
"ng-packagr": "^11.2.4",
7065
"protractor": "~7.0.0",
71-
"ts-node": "^9.1.1",
72-
"tslint": "^6.1.3",
73-
"typescript": "~3.6.5"
66+
"ts-node": "~8.3.0",
67+
"tslint": "~6.1.3",
68+
"typescript": "~4.1.5"
7469
},
7570
"keywords": [
7671
"coreui",

projects/coreui/icons-angular/LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2021 CoreUI
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

projects/coreui/icons-angular/NG.md

Lines changed: 0 additions & 24 deletions
This file was deleted.

projects/coreui/icons-angular/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
[![NPM](https://img.shields.io/npm/v/@coreui/icons-angular/latest?style=flat-square&color=brightgreen)][coreui-angular-icons-npm]
44
[![Downloads](https://img.shields.io/npm/dm/@coreui/icons-angular.svg?style=flat-square)][coreui-angular-icons-npm]
55
[![License](https://img.shields.io/npm/l/@coreui/angular?style=flat-square)][coreui]
6+
![angular](https://img.shields.io/badge/angular-^11.0.0-lightgrey.svg?style=flat-square&logo=angular)
67

78
[coreui]: https://coreui.io/icons
89
[coreui-angular-icons-npm]: https://www.npmjs.com/package/@coreui/icons-angular
@@ -81,7 +82,7 @@ proprerty | type | default | description
8182
`size` | `custom`, `custom-size`, `sm`, `lg`, `xl`, `2xl`, `3xl`, `4xl`, `5xl`, `6xl`, `7xl`, `8xl`, `9xl` | '' | Size of icon
8283
`title` | string | undefined |
8384
`use` | string | undefined | SVG `<use>`
84-
`customClasses` | string | undefined | Replaces default `c-icon` component classes
85+
`customClasses` | string | undefined | Overwrites default `c-icon` component classes
8586
`viewBox` | string | undefined | SVG `viewbox`
8687
`attributes` | any | `{ role: 'img' }` | Object with additional html attributes
8788
`width` | | undefined | SVG `width`

projects/coreui/icons-angular/karma.conf.github.js

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,28 @@ module.exports = function (config) {
99
require('karma-jasmine'),
1010
require('karma-chrome-launcher'),
1111
require('karma-jasmine-html-reporter'),
12-
require('karma-coverage-istanbul-reporter'),
12+
require('karma-coverage'),
1313
require('@angular-devkit/build-angular/plugins/karma')
1414
],
1515
client: {
16+
jasmine: {
17+
// you can add configuration options for Jasmine here
18+
// the possible options are listed at https://jasmine.github.io/api/edge/Configuration.html
19+
// for example, you can disable the random execution with `random: false`
20+
// or set a specific seed with `seed: 4321`
21+
},
1622
clearContext: false // leave Jasmine Spec Runner output visible in browser
1723
},
18-
coverageIstanbulReporter: {
19-
dir: require('path').join(__dirname, '../../../coverage/coreui/icons-angular'),
20-
reports: ['html', 'lcovonly', 'text-summary'],
21-
fixWebpackSourcePaths: true
24+
jasmineHtmlReporter: {
25+
suppressAll: true // removes the duplicated traces
26+
},
27+
coverageReporter: {
28+
dir: require('path').join(__dirname, '../../../coverage/coreui-icons-angular'),
29+
subdir: '.',
30+
reporters: [
31+
{ type: 'html' },
32+
{ type: 'text-summary' }
33+
]
2234
},
2335
reporters: ['progress', 'kjhtml'],
2436
port: 9876,

projects/coreui/icons-angular/karma.conf.js

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,28 @@ module.exports = function (config) {
99
require('karma-jasmine'),
1010
require('karma-chrome-launcher'),
1111
require('karma-jasmine-html-reporter'),
12-
require('karma-coverage-istanbul-reporter'),
12+
require('karma-coverage'),
1313
require('@angular-devkit/build-angular/plugins/karma')
1414
],
1515
client: {
16+
jasmine: {
17+
// you can add configuration options for Jasmine here
18+
// the possible options are listed at https://jasmine.github.io/api/edge/Configuration.html
19+
// for example, you can disable the random execution with `random: false`
20+
// or set a specific seed with `seed: 4321`
21+
},
1622
clearContext: false // leave Jasmine Spec Runner output visible in browser
1723
},
18-
coverageIstanbulReporter: {
19-
dir: require('path').join(__dirname, '../../../coverage/coreui/icons-angular'),
20-
reports: ['html', 'lcovonly', 'text-summary'],
21-
fixWebpackSourcePaths: true
24+
jasmineHtmlReporter: {
25+
suppressAll: true // removes the duplicated traces
26+
},
27+
coverageReporter: {
28+
dir: require('path').join(__dirname, '../../../coverage/coreui-icons-angular'),
29+
subdir: '.',
30+
reporters: [
31+
{ type: 'html' },
32+
{ type: 'text-summary' }
33+
]
2234
},
2335
reporters: ['progress', 'kjhtml'],
2436
port: 9876,

0 commit comments

Comments
 (0)