2017-03-01 02:40:11 +03:00
|
|
|
{
|
2017-06-02 09:20:59 +03:00
|
|
|
"name": "feather-icons",
|
2017-06-05 10:28:24 +03:00
|
|
|
"version": "0.0.0-development",
|
2017-06-04 11:03:46 +03:00
|
|
|
"description": "Simply beautiful open source icons",
|
2017-07-04 00:13:34 +03:00
|
|
|
"main": "dist/feather.js",
|
|
|
|
"files": [
|
|
|
|
"dist"
|
|
|
|
],
|
2017-05-13 12:36:11 +03:00
|
|
|
"scripts": {
|
feat: Update API
BREAKING CHANGE:
Each icon in the `feather.icons` object is now an `Icon` object with a `name`, `contents`, `tags` and `attrs` property.
```js
/* BEFORE */
feather.icons.x
// '<line ... /><line ... />'
/* AFTER */
feather.icons.x
// {
// name: 'x',
// contents: '<line ... /><line ... />`,
// tags: ['cancel', 'close', 'delete', 'remove'],
// attrs: {
// class: 'feather feather-x',
// xmlns: 'http://www.w3.org/2000/svg',
// width: 24,
// height: 24,
// viewBox: '0 0 24 24',
// fill: 'none',
// stroke: 'currentColor',
// 'stroke-width': 2,
// 'stroke-linecap': 'round',
// 'stroke-linejoin': 'round',
// }
// }
```
`feather.toSvg()` has been deprecated in favor of `feather.icons[name].toSvg()`:
```js
/* BEFORE */
feather.toSvg('x')
/* AFTER */
feather.icons.x.toSvg()
```
`feather.replace()` now copies all attributes on the placeholder element (i.e. `<i>`) to the `<svg>` tag instead of just `class` and `id`:
```html
<i data-feather="circle" id="my-circle" class="foo bar" stroke-width="1"></i>
<!--
<i> will be replaced with:
<svg id="my-circle" class="feather feather-circle foo bar" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"></circle></svg>
-->
```
2017-11-19 07:00:16 +03:00
|
|
|
"start": "npm-run-all --sequential build lint test",
|
|
|
|
"build": "./bin/build.sh",
|
|
|
|
"lint": "eslint .",
|
|
|
|
"test": "jest",
|
2017-06-05 10:28:24 +03:00
|
|
|
"cm": "git-cz",
|
2017-11-20 05:01:04 +03:00
|
|
|
"precommit": "lint-staged",
|
|
|
|
"commitmsg": "commitlint --edit",
|
2017-06-05 10:28:24 +03:00
|
|
|
"semantic-release": "semantic-release pre && npm publish && semantic-release post"
|
2017-05-13 12:36:11 +03:00
|
|
|
},
|
2017-11-20 05:01:04 +03:00
|
|
|
"config": {
|
|
|
|
"commitizen": {
|
|
|
|
"path": "cz-conventional-changelog"
|
|
|
|
}
|
|
|
|
},
|
feat: Update API
BREAKING CHANGE:
Each icon in the `feather.icons` object is now an `Icon` object with a `name`, `contents`, `tags` and `attrs` property.
```js
/* BEFORE */
feather.icons.x
// '<line ... /><line ... />'
/* AFTER */
feather.icons.x
// {
// name: 'x',
// contents: '<line ... /><line ... />`,
// tags: ['cancel', 'close', 'delete', 'remove'],
// attrs: {
// class: 'feather feather-x',
// xmlns: 'http://www.w3.org/2000/svg',
// width: 24,
// height: 24,
// viewBox: '0 0 24 24',
// fill: 'none',
// stroke: 'currentColor',
// 'stroke-width': 2,
// 'stroke-linecap': 'round',
// 'stroke-linejoin': 'round',
// }
// }
```
`feather.toSvg()` has been deprecated in favor of `feather.icons[name].toSvg()`:
```js
/* BEFORE */
feather.toSvg('x')
/* AFTER */
feather.icons.x.toSvg()
```
`feather.replace()` now copies all attributes on the placeholder element (i.e. `<i>`) to the `<svg>` tag instead of just `class` and `id`:
```html
<i data-feather="circle" id="my-circle" class="foo bar" stroke-width="1"></i>
<!--
<i> will be replaced with:
<svg id="my-circle" class="feather feather-circle foo bar" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"></circle></svg>
-->
```
2017-11-19 07:00:16 +03:00
|
|
|
"dependencies": {
|
|
|
|
"classnames": "^2.2.5"
|
|
|
|
},
|
2017-05-13 12:36:11 +03:00
|
|
|
"devDependencies": {
|
2017-12-15 12:38:12 +03:00
|
|
|
"@commitlint/cli": "^5.2.5",
|
2017-12-14 10:08:54 +03:00
|
|
|
"@commitlint/config-angular": "^5.1.1",
|
2017-07-04 00:13:34 +03:00
|
|
|
"babel-cli": "^6.24.1",
|
|
|
|
"babel-loader": "^7.1.1",
|
feat: Update API
BREAKING CHANGE:
Each icon in the `feather.icons` object is now an `Icon` object with a `name`, `contents`, `tags` and `attrs` property.
```js
/* BEFORE */
feather.icons.x
// '<line ... /><line ... />'
/* AFTER */
feather.icons.x
// {
// name: 'x',
// contents: '<line ... /><line ... />`,
// tags: ['cancel', 'close', 'delete', 'remove'],
// attrs: {
// class: 'feather feather-x',
// xmlns: 'http://www.w3.org/2000/svg',
// width: 24,
// height: 24,
// viewBox: '0 0 24 24',
// fill: 'none',
// stroke: 'currentColor',
// 'stroke-width': 2,
// 'stroke-linecap': 'round',
// 'stroke-linejoin': 'round',
// }
// }
```
`feather.toSvg()` has been deprecated in favor of `feather.icons[name].toSvg()`:
```js
/* BEFORE */
feather.toSvg('x')
/* AFTER */
feather.icons.x.toSvg()
```
`feather.replace()` now copies all attributes on the placeholder element (i.e. `<i>`) to the `<svg>` tag instead of just `class` and `id`:
```html
<i data-feather="circle" id="my-circle" class="foo bar" stroke-width="1"></i>
<!--
<i> will be replaced with:
<svg id="my-circle" class="feather feather-circle foo bar" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"></circle></svg>
-->
```
2017-11-19 07:00:16 +03:00
|
|
|
"babel-plugin-transform-object-rest-spread": "^6.26.0",
|
2017-07-04 00:13:34 +03:00
|
|
|
"babel-preset-es2015": "^6.24.1",
|
|
|
|
"babel-register": "^6.24.1",
|
2017-11-13 19:13:11 +03:00
|
|
|
"cheerio": "^1.0.0-rc.2",
|
2017-06-05 10:28:24 +03:00
|
|
|
"commitizen": "^2.9.6",
|
2017-12-15 10:58:13 +03:00
|
|
|
"core-js": "^2.5.3",
|
feat: Update API
BREAKING CHANGE:
Each icon in the `feather.icons` object is now an `Icon` object with a `name`, `contents`, `tags` and `attrs` property.
```js
/* BEFORE */
feather.icons.x
// '<line ... /><line ... />'
/* AFTER */
feather.icons.x
// {
// name: 'x',
// contents: '<line ... /><line ... />`,
// tags: ['cancel', 'close', 'delete', 'remove'],
// attrs: {
// class: 'feather feather-x',
// xmlns: 'http://www.w3.org/2000/svg',
// width: 24,
// height: 24,
// viewBox: '0 0 24 24',
// fill: 'none',
// stroke: 'currentColor',
// 'stroke-width': 2,
// 'stroke-linecap': 'round',
// 'stroke-linejoin': 'round',
// }
// }
```
`feather.toSvg()` has been deprecated in favor of `feather.icons[name].toSvg()`:
```js
/* BEFORE */
feather.toSvg('x')
/* AFTER */
feather.icons.x.toSvg()
```
`feather.replace()` now copies all attributes on the placeholder element (i.e. `<i>`) to the `<svg>` tag instead of just `class` and `id`:
```html
<i data-feather="circle" id="my-circle" class="foo bar" stroke-width="1"></i>
<!--
<i> will be replaced with:
<svg id="my-circle" class="feather feather-circle foo bar" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"></circle></svg>
-->
```
2017-11-19 07:00:16 +03:00
|
|
|
"cz-conventional-changelog": "^2.1.0",
|
2017-12-16 11:55:43 +03:00
|
|
|
"eslint": "^4.13.1",
|
2017-12-16 12:03:00 +03:00
|
|
|
"eslint-config-airbnb-base": "^12.1.0",
|
2017-12-16 11:51:59 +03:00
|
|
|
"eslint-config-prettier": "^2.9.0",
|
2017-07-04 00:13:34 +03:00
|
|
|
"eslint-plugin-import": "^2.5.0",
|
2017-12-18 11:08:14 +03:00
|
|
|
"eslint-plugin-prettier": "^2.4.0",
|
2017-12-15 12:39:26 +03:00
|
|
|
"html-minifier": "^3.5.7",
|
2017-12-15 02:55:38 +03:00
|
|
|
"husky": "^0.14.3",
|
2017-11-13 19:13:11 +03:00
|
|
|
"jest": "^21.2.1",
|
2017-12-16 11:52:08 +03:00
|
|
|
"lint-staged": "^6.0.0",
|
feat: Update API
BREAKING CHANGE:
Each icon in the `feather.icons` object is now an `Icon` object with a `name`, `contents`, `tags` and `attrs` property.
```js
/* BEFORE */
feather.icons.x
// '<line ... /><line ... />'
/* AFTER */
feather.icons.x
// {
// name: 'x',
// contents: '<line ... /><line ... />`,
// tags: ['cancel', 'close', 'delete', 'remove'],
// attrs: {
// class: 'feather feather-x',
// xmlns: 'http://www.w3.org/2000/svg',
// width: 24,
// height: 24,
// viewBox: '0 0 24 24',
// fill: 'none',
// stroke: 'currentColor',
// 'stroke-width': 2,
// 'stroke-linecap': 'round',
// 'stroke-linejoin': 'round',
// }
// }
```
`feather.toSvg()` has been deprecated in favor of `feather.icons[name].toSvg()`:
```js
/* BEFORE */
feather.toSvg('x')
/* AFTER */
feather.icons.x.toSvg()
```
`feather.replace()` now copies all attributes on the placeholder element (i.e. `<i>`) to the `<svg>` tag instead of just `class` and `id`:
```html
<i data-feather="circle" id="my-circle" class="foo bar" stroke-width="1"></i>
<!--
<i> will be replaced with:
<svg id="my-circle" class="feather feather-circle foo bar" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"></circle></svg>
-->
```
2017-11-19 07:00:16 +03:00
|
|
|
"npm-run-all": "^4.1.2",
|
2017-11-13 19:13:11 +03:00
|
|
|
"prettier": "^1.8.2",
|
feat: Update API
BREAKING CHANGE:
Each icon in the `feather.icons` object is now an `Icon` object with a `name`, `contents`, `tags` and `attrs` property.
```js
/* BEFORE */
feather.icons.x
// '<line ... /><line ... />'
/* AFTER */
feather.icons.x
// {
// name: 'x',
// contents: '<line ... /><line ... />`,
// tags: ['cancel', 'close', 'delete', 'remove'],
// attrs: {
// class: 'feather feather-x',
// xmlns: 'http://www.w3.org/2000/svg',
// width: 24,
// height: 24,
// viewBox: '0 0 24 24',
// fill: 'none',
// stroke: 'currentColor',
// 'stroke-width': 2,
// 'stroke-linecap': 'round',
// 'stroke-linejoin': 'round',
// }
// }
```
`feather.toSvg()` has been deprecated in favor of `feather.icons[name].toSvg()`:
```js
/* BEFORE */
feather.toSvg('x')
/* AFTER */
feather.icons.x.toSvg()
```
`feather.replace()` now copies all attributes on the placeholder element (i.e. `<i>`) to the `<svg>` tag instead of just `class` and `id`:
```html
<i data-feather="circle" id="my-circle" class="foo bar" stroke-width="1"></i>
<!--
<i> will be replaced with:
<svg id="my-circle" class="feather feather-circle foo bar" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"></circle></svg>
-->
```
2017-11-19 07:00:16 +03:00
|
|
|
"rimraf": "^2.6.2",
|
2017-12-13 13:03:10 +03:00
|
|
|
"semantic-release": "^8.2.0",
|
2017-06-05 10:28:24 +03:00
|
|
|
"svgo": "^0.7.2",
|
2017-12-15 10:58:20 +03:00
|
|
|
"webpack": "^3.10.0"
|
2017-06-05 10:28:24 +03:00
|
|
|
},
|
2017-06-04 11:03:46 +03:00
|
|
|
"repository": {
|
|
|
|
"type": "git",
|
2017-12-14 21:14:19 +03:00
|
|
|
"url": "https://github.com/feathericons/feather.git"
|
2017-06-04 11:03:46 +03:00
|
|
|
},
|
|
|
|
"author": "Cole Bemis <cole@colebemis.com> (http://colebemis.com)",
|
|
|
|
"license": "MIT"
|
2017-05-13 12:36:11 +03:00
|
|
|
}
|