Commit Graph

8 Commits

Author SHA1 Message Date
Cole Bemis
9dffc53b3a ci: Fix "all" script in .travis.yml 2018-05-17 22:30:32 -07:00
Cole Bemis
ad3c8a94d0 ci: Rename "start" script to "all" 2018-05-17 22:24:38 -07:00
Cole Bemis
1d3283d81d build: Add sync-algolia script 2018-05-17 21:51:49 -07:00
Cole Bemis
b3655c438f fix: Fix semantic-release deploys
Updated .travis.yml to match the example provided in the documentation
https://semantic-release.gitbooks.io/semantic-release/content/docs/recipes/travis.html
2018-02-20 12:48:09 -08:00
Cole Bemis
fac43e92cf
ci: Update .travis.yml 2017-12-14 00:39:45 -08:00
Cole Bemis
f243624fbd
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-18 20:00:16 -08:00
Cole Bemis
ee36bff7c3 ci: Update .travis.yml 2017-07-03 15:53:34 -07:00
Cole Bemis
adbc129119 chore: automate releases 2017-06-05 00:28:24 -07:00