1
0
mirror of https://github.com/coreui/coreui-icons.git synced 2025-08-08 09:46:31 +02:00

release: @coreui/icons-vue v2.0.0

This commit is contained in:
Łukasz Holeczek
2021-10-28 18:43:41 +02:00
parent 146add1946
commit fa5197af6f
9 changed files with 66 additions and 198 deletions

View File

@@ -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.

View File

@@ -14,8 +14,6 @@
·
<a href="https://github.com/coreui/coreui-icons/issues/new?template=feature_request.md">Request feature</a>
·
<a href="https://community.coreui.io/">Community</a>
·
<a href="https://blog.coreui.io/">Blog</a>
</p>
@@ -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

View File

@@ -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',
},
}

View File

@@ -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"
}
}
}

View File

@@ -53,7 +53,7 @@ const CIcon = defineComponent({
'sm',
'lg',
'xl',
'2xl',
'xxl',
'3xl',
'4xl',
'5xl',

View File

@@ -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)
})

View File

@@ -1,2 +1,3 @@
import { CIcon } from './CIcon'
export { CIcon }
export default CIcon

View File

@@ -1,12 +0,0 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"outDir": "dist/types",
"declaration": true,
"declarationMap": true,
"emitDeclarationOnly": true
},
"include": [
"src/interfaces/index.ts"
]
}

View File

@@ -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 (<anonymous>)
at /usr/local/lib/node_modules/yarn/lib/cli.js:1625:59
at Generator.next (<anonymous>)
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