From fa5197af6f8001ebf24ab4fb79e4fc35660674c1 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=C5=81ukasz=20Holeczek?=
Date: Thu, 28 Oct 2021 18:43:41 +0200
Subject: [PATCH] release: @coreui/icons-vue v2.0.0
---
packages/icons-vue/LICENSE | 21 +++
packages/icons-vue/README.md | 6 +-
packages/icons-vue/jest.config.js | 17 +++
packages/icons-vue/package.json | 72 +++-------
packages/icons-vue/src/CIcon.ts | 2 +-
.../icons-vue/src/__tests__/CIcon.spec.ts | 6 +-
packages/icons-vue/src/index.ts | 1 +
packages/icons-vue/tsconfigtypes.json | 12 --
packages/icons-vue/yarn-error.log | 127 ------------------
9 files changed, 66 insertions(+), 198 deletions(-)
create mode 100644 packages/icons-vue/LICENSE
create mode 100644 packages/icons-vue/jest.config.js
delete mode 100644 packages/icons-vue/tsconfigtypes.json
delete mode 100644 packages/icons-vue/yarn-error.log
diff --git a/packages/icons-vue/LICENSE b/packages/icons-vue/LICENSE
new file mode 100644
index 000000000..f19fc7294
--- /dev/null
+++ b/packages/icons-vue/LICENSE
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2021 creativeLabs Łukasz Holeczek
+
+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.
\ No newline at end of file
diff --git a/packages/icons-vue/README.md b/packages/icons-vue/README.md
index 7c039ede2..860a0a98b 100644
--- a/packages/icons-vue/README.md
+++ b/packages/icons-vue/README.md
@@ -14,8 +14,6 @@
·
Request feature
·
- Community
- ·
Blog
@@ -34,14 +32,14 @@
```bash
npm install @coreui/icons
-npm install @coreui/icons-vue@next
+npm install @coreui/icons-vue
```
or
```bash
yarn add @coreui/icons
-yarn add @coreui/icons-vue@next
+yarn add @coreui/icons-vue
```
## Use
diff --git a/packages/icons-vue/jest.config.js b/packages/icons-vue/jest.config.js
new file mode 100644
index 000000000..bd8cdc28e
--- /dev/null
+++ b/packages/icons-vue/jest.config.js
@@ -0,0 +1,17 @@
+/**
+ * Copyright (c) 2013-present, creativeLabs Lukasz Holeczek.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */
+
+'use strict'
+
+module.exports = {
+ moduleFileExtensions: ['tsx', 'js', 'ts', 'json', 'vue'],
+ preset: 'ts-jest',
+ testEnvironment: 'jsdom',
+ transform: {
+ '.*\\.(ts)$': 'ts-jest',
+ },
+}
diff --git a/packages/icons-vue/package.json b/packages/icons-vue/package.json
index 7fe0b9d09..35e89f77e 100644
--- a/packages/icons-vue/package.json
+++ b/packages/icons-vue/package.json
@@ -1,35 +1,7 @@
{
"name": "@coreui/icons-vue",
+ "version": "2.0.0",
"description": "Official Vue component for CoreUI Icons",
- "version": "2.0.0-rc.0",
- "license": "MIT",
- "homepage": "https://icons.coreui.io",
- "author": {
- "name": "CoreUI",
- "url": "https://coreui.io",
- "github": "https://github.com/coreui",
- "twitter": "https://twitter.com/core_ui"
- },
- "contributors": [
- {
- "name": "CoreUI Team",
- "url": "https://github.com/orgs/coreui/people"
- }
- ],
- "repository": {
- "type": "git",
- "url": "https://github.com/coreui/coreui-icons.git"
- },
- "bugs": {
- "url": "https://github.com/coreui/coreui-icons/issues"
- },
- "main": "dist/index.js",
- "module": "dist/index.es.js",
- "jsnext:main": "dist/index.es.js",
- "files": [
- "src",
- "dist"
- ],
"keywords": [
"coreui",
"coreui-icons",
@@ -41,13 +13,30 @@
"component",
"vue"
],
+ "homepage": "https://icons.coreui.io",
+ "bugs": {
+ "url": "https://github.com/coreui/coreui-icons/issues"
+ },
+ "repository": {
+ "type": "git",
+ "url": "https://github.com/coreui/coreui-icons.git"
+ },
+ "license": "MIT",
+ "author": "The CoreUI Team (https://github.com/orgs/coreui/people)",
+ "main": "dist/index.js",
+ "module": "dist/index.es.js",
+ "jsnext:main": "dist/index.es.js",
+ "types": "dist/index.d.ts",
+ "files": [
+ "dist/",
+ "src/"
+ ],
"scripts": {
"build": "rollup -c",
"lint": "eslint 'src/**/*.{js,ts,tsx}'",
- "test": "jest",
- "test:u": "jest -u",
+ "test": "jest --coverage",
"test:clear": "jest --clearCache",
- "test:coverage": "jest --coverage"
+ "test:update": "jest --coverage --updateSnapshot"
},
"devDependencies": {
"@rollup/plugin-commonjs": "^21.0.0",
@@ -74,24 +63,5 @@
},
"peerDependencies": {
"vue": "^3.2.20"
- },
- "browserslist": [
- "> 1%",
- "last 2 versions",
- "not ie <= 8"
- ],
- "jest": {
- "preset": "ts-jest",
- "testEnvironment": "jsdom",
- "moduleFileExtensions": [
- "tsx",
- "js",
- "ts",
- "json",
- "vue"
- ],
- "transform": {
- ".*\\.(ts)$": "ts-jest"
- }
}
}
diff --git a/packages/icons-vue/src/CIcon.ts b/packages/icons-vue/src/CIcon.ts
index bcf27cc7d..03f503a9d 100644
--- a/packages/icons-vue/src/CIcon.ts
+++ b/packages/icons-vue/src/CIcon.ts
@@ -53,7 +53,7 @@ const CIcon = defineComponent({
'sm',
'lg',
'xl',
- '2xl',
+ 'xxl',
'3xl',
'4xl',
'5xl',
diff --git a/packages/icons-vue/src/__tests__/CIcon.spec.ts b/packages/icons-vue/src/__tests__/CIcon.spec.ts
index df5312b89..a0c256805 100644
--- a/packages/icons-vue/src/__tests__/CIcon.spec.ts
+++ b/packages/icons-vue/src/__tests__/CIcon.spec.ts
@@ -14,17 +14,17 @@ describe('CIcon', () => {
// })
it('renders svg with size', () => {
- const container = mount(CIcon, { props: { size: 'xl' }})
+ const container = mount(CIcon, { props: { size: 'xl' } })
expect(container.find('svg').classes('icon-xl')).toBe(true)
})
it('renders svg with custom size', () => {
- const container = mount(CIcon, { props: { height: 20 }})
+ const container = mount(CIcon, { props: { height: 20 } })
expect(container.find('svg').classes('icon-custom-size')).toBe(true)
})
it('renders svg with className', () => {
- const container = mount(CIcon, { props: { class: 'icon-test' }})
+ const container = mount(CIcon, { props: { class: 'icon-test' } })
expect(container.find('svg').classes('icon-test')).toBe(true)
})
diff --git a/packages/icons-vue/src/index.ts b/packages/icons-vue/src/index.ts
index 0cc9e0a04..620a0e40a 100644
--- a/packages/icons-vue/src/index.ts
+++ b/packages/icons-vue/src/index.ts
@@ -1,2 +1,3 @@
import { CIcon } from './CIcon'
export { CIcon }
+export default CIcon
diff --git a/packages/icons-vue/tsconfigtypes.json b/packages/icons-vue/tsconfigtypes.json
deleted file mode 100644
index 0342cb165..000000000
--- a/packages/icons-vue/tsconfigtypes.json
+++ /dev/null
@@ -1,12 +0,0 @@
-{
- "extends": "./tsconfig.json",
- "compilerOptions": {
- "outDir": "dist/types",
- "declaration": true,
- "declarationMap": true,
- "emitDeclarationOnly": true
- },
- "include": [
- "src/interfaces/index.ts"
- ]
-}
\ No newline at end of file
diff --git a/packages/icons-vue/yarn-error.log b/packages/icons-vue/yarn-error.log
deleted file mode 100644
index 7031c27b9..000000000
--- a/packages/icons-vue/yarn-error.log
+++ /dev/null
@@ -1,127 +0,0 @@
-Arguments:
- /usr/local/bin/node /usr/local/bin/yarn test
-
-PATH:
- /usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/homebrew/bin:/opt/homebrew/sbin
-
-Yarn version:
- 1.22.10
-
-Node version:
- 16.6.1
-
-Platform:
- darwin arm64
-
-Trace:
- SyntaxError: /Users/lukaszholeczek/CoreUI/@coreui/icons/packages/icons-vue/package.json: Unexpected token } in JSON at position 2287
- at JSON.parse ()
- at /usr/local/lib/node_modules/yarn/lib/cli.js:1625:59
- at Generator.next ()
- at step (/usr/local/lib/node_modules/yarn/lib/cli.js:310:30)
- at /usr/local/lib/node_modules/yarn/lib/cli.js:321:13
-
-npm manifest:
- {
- "name": "@coreui/icons-vue",
- "description": "Official Vue component for CoreUI Icons",
- "version": "2.0.0-rc.0",
- "license": "MIT",
- "homepage": "https://icons.coreui.io",
- "author": {
- "name": "CoreUI",
- "url": "https://coreui.io",
- "github": "https://github.com/coreui",
- "twitter": "https://twitter.com/core_ui"
- },
- "contributors": [
- {
- "name": "CoreUI Team",
- "url": "https://github.com/orgs/coreui/people"
- }
- ],
- "repository": {
- "type": "git",
- "url": "https://github.com/coreui/coreui-icons.git"
- },
- "bugs": {
- "url": "https://github.com/coreui/coreui-icons/issues"
- },
- "main": "dist/index.js",
- "module": "dist/index.es.js",
- "jsnext:main": "dist/index.es.js",
- "files": [
- "src",
- "dist"
- ],
- "keywords": [
- "coreui",
- "coreui-icons",
- "coreui-vue",
- "icons",
- "svg",
- "svg-icons",
- "layout",
- "component",
- "vue"
- ],
- "scripts": {
- "build": "rollup -c",
- "lint": "eslint 'src/**/*.{js,ts,tsx}'",
- "test": "jest",
- "test:u": "jest -u",
- "test:clear": "jest --clearCache",
- "test:coverage": "jest --coverage"
- },
- "devDependencies": {
- "@rollup/plugin-commonjs": "^21.0.0",
- "@rollup/plugin-node-resolve": "^13.0.5",
- "@rollup/plugin-typescript": "^8.2.5",
- "@typescript-eslint/eslint-plugin": "^4.33.0",
- "@typescript-eslint/parser": "^4.33.0",
- "@vue/compiler-sfc": "^3.2.20",
- "@vue/eslint-config-prettier": "^6.0.0",
- "@vue/eslint-config-typescript": "^7.0.0",
- "@vue/test-utils": "^1.2.2",
- "eslint": "^7.32.0",
- "eslint-config-prettier": "^8.3.0",
- "eslint-plugin-prettier": "^4.0.0",
- "eslint-plugin-vue": "^7.19.1",
- "jest": "^27.3.0",
- "prettier": "^2.4.1",
- "rollup": "^2.58.0",
- "rollup-plugin-peer-deps-external": "^2.2.4",
- "rollup-plugin-vue": "^6.0.0",
- "ts-jest": "^27.0.7",
- "typescript": "^4.4.3",
- "vue": "^3.2.20"
- },
- "peerDependencies": {
- "vue": "^3.2.20"
- },
- "browserslist": [
- "> 1%",
- "last 2 versions",
- "not ie <= 8"
- ],
- "jest": {
- "preset": "ts-jest",
- "testEnvironment": "jsdom",
- "moduleFileExtensions": [
- "tsx",
- "js",
- "ts",
- "json",
- "vue"
- ],
- "transform": {
- ".*\\.(ts)$": "ts-jest"
- }
- },
- }
-
-yarn manifest:
- No manifest
-
-Lockfile:
- No lockfile