Cole Bemis
|
90133ea33e
|
build(algolia): Add objects *after* clearing index
|
2018-05-17 23:44:35 -07:00 |
|
Cole Bemis
|
3183ae1ef6
|
chore: Remove unneeded eslint comments
|
2018-05-17 22:43:41 -07:00 |
|
Cole Bemis
|
703b1a7882
|
build: Update build logs
|
2018-05-17 22:42:08 -07:00 |
|
Cole Bemis
|
76f29d8565
|
build: Disable some eslint rules in /bin
|
2018-05-17 22:21:17 -07:00 |
|
Cole Bemis
|
1d3283d81d
|
build: Add sync-algolia script
|
2018-05-17 21:51:49 -07:00 |
|
Cole Bemis
|
d33cb6ecf9
|
refactor: Use uppercase for default attrs import
|
2018-04-04 11:46:37 -07:00 |
|
Cole Bemis
|
a3527829b8
|
chore: Add comments to build script
|
2018-04-01 16:26:54 -07:00 |
|
Cole Bemis
|
e697b3a927
|
refactor: Refactor build-sprite-string.js
|
2018-04-01 16:25:21 -07:00 |
|
Ivan Quirino
|
3422f0aaf7
|
feat: Add SVG sprite support (#319)
|
2018-02-20 16:30:59 -08:00 |
|
Cole Bemis
|
c9552b6916
|
fix: Remove unecessary whitespace from SVG contents
```js
/* BEFORE */
{ circle: "\n <circle cx=\"12\" cy=\"12\" r=\"10\"></circle>\n" }
/* AFTER */
{ circle: "<circle cx=\"12\" cy=\"12\" r=\"10\"></circle>" }
```
|
2017-11-19 16:29:52 -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
|
0dc2bf5c9d
|
build: Add process-svgs script (#216)
|
2017-11-13 08:13:11 -08:00 |
|
Cole Bemis
|
5d6c7d2184
|
build: Add script to build dist/icons directory
|
2017-07-03 15:53:34 -07:00 |
|
Cole Bemis
|
ae164db70f
|
build: Add script to build dist/icons.json
|
2017-07-03 15:53:34 -07:00 |
|
Cole Bemis
|
704870bb12
|
refactor: Remove website code from master branch
|
2017-07-03 15:53:34 -07:00 |
|
Cole Bemis
|
adbc129119
|
chore: automate releases
|
2017-06-05 00:28:24 -07:00 |
|
Cole Bemis
|
a77bbb81fa
|
Reorganize icons
|
2017-05-23 23:40:55 -07:00 |
|
Cole Bemis
|
873c50411f
|
Refactor build process
|
2017-05-13 11:30:06 -07:00 |
|
Cole Bemis
|
b25e6c255b
|
Update automated build process
|
2017-05-13 01:50:01 -07:00 |
|
Cole Bemis
|
a42d1ac0e8
|
Add build script
|
2017-05-12 21:35:13 -07:00 |
|