Cole Bemis
c978b1cb4e
fix: Remove unused polyfills and update build config
...
Removes polyfills for `Object.assign` and `Set` which, as far as I can tell, are unused in the
codebase. Updates `webpack` from 3 to 4. Replaces `babel-preset-es2015` with `babel-preset-env`.
Reduces the minified bundle size (`feather.min.js`) by **9.3kB** (72.4kB to 63.1kB). Does not change
any functionality of the library.
2018-05-18 12:26:21 -07:00
Cole Bemis
1da9dd43b2
test: Track code coverage
2018-05-17 23:19:02 -07:00
Cole Bemis
6e7693e6da
test: Update test scripts
2018-05-17 23:12:06 -07:00
Cole Bemis
741ac5632c
chore: Replace @commitlint/config-angular with @commitlint/config-conventional
2018-05-17 22:29:21 -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
ba33c8312e
Merge pull request #278 from feathericons/dependabot/npm_and_yarn/eslint-plugin-prettier-2.5.0
...
chore(dependencies): Bump eslint-plugin-prettier from 2.4.0 to 2.5.0
2018-01-19 09:32:05 -08:00
dependabot[bot]
6adadf4319
chore(dependencies): Bump eslint-plugin-prettier from 2.4.0 to 2.5.0
...
Bumps [eslint-plugin-prettier](https://github.com/prettier/eslint-plugin-prettier ) from 2.4.0 to 2.5.0.
- [Changelog](https://github.com/prettier/eslint-plugin-prettier/blob/master/CHANGELOG.md )
- [Commits](https://github.com/prettier/eslint-plugin-prettier/compare/v2.4.0...v2.5.0 )
2018-01-19 05:50:26 +00:00
dependabot[bot]
7ea765f04f
chore(dependencies): Bump semantic-release from 8.2.0 to 12.2.2
...
Bumps [semantic-release](https://github.com/semantic-release/semantic-release ) from 8.2.0 to 12.2.2.
- [Release notes](https://github.com/semantic-release/semantic-release/releases )
- [Commits](https://github.com/semantic-release/semantic-release/compare/v8.2.0...v12.2.2 )
2018-01-19 05:49:42 +00:00
Cole Bemis
2dbe78fc02
Merge pull request #260 from feathericons/dependabot/npm_and_yarn/html-minifier-3.5.8
...
chore(dependencies): Bump html-minifier from 3.5.7 to 3.5.8
2018-01-18 21:48:59 -08:00
dependabot[bot]
ed0e08a451
chore(dependencies): Bump eslint from 4.13.1 to 4.15.0
...
Bumps [eslint](https://github.com/eslint/eslint ) from 4.13.1 to 4.15.0.
- [Release notes](https://github.com/eslint/eslint/releases )
- [Changelog](https://github.com/eslint/eslint/blob/master/CHANGELOG.md )
- [Commits](https://github.com/eslint/eslint/compare/v4.13.1...v4.15.0 )
2018-01-08 08:03:01 +00:00
dependabot[bot]
ada2681ad4
chore(dependencies): Bump html-minifier from 3.5.7 to 3.5.8
...
Bumps [html-minifier](https://github.com/kangax/html-minifier ) from 3.5.7 to 3.5.8.
- [Release notes](https://github.com/kangax/html-minifier/releases/tag/v3.5.8 )
- [Commits](https://github.com/kangax/html-minifier/compare/v3.5.7...v3.5.8 )
2017-12-25 07:37:07 +00:00
dependabot[bot]
fbdff6452c
chore(dependencies): Bump eslint-plugin-prettier from 2.3.1 to 2.4.0
...
Bumps [eslint-plugin-prettier](https://github.com/prettier/eslint-plugin-prettier ) from 2.3.1 to 2.4.0.
- [Changelog](https://github.com/prettier/eslint-plugin-prettier/blob/master/CHANGELOG.md )
- [Commits](https://github.com/prettier/eslint-plugin-prettier/compare/v2.3.1...v2.4.0 )
2017-12-18 08:08:14 +00:00
Cole Bemis
1f87e256b6
Merge pull request #238 from feathericons/dependabot/npm_and_yarn/lint-staged-6.0.0
...
Bump lint-staged from 5.0.0 to 6.0.0
2017-12-16 01:26:48 -08:00
dependabot[bot]
1d3807c005
chore(dependencies): Bump eslint-config-airbnb-base from 11.3.2 to 12.1.0
...
Bumps [eslint-config-airbnb-base](https://github.com/airbnb/javascript ) from 11.3.2 to 12.1.0.
- [Commits](https://github.com/airbnb/javascript/compare/eslint-config-airbnb-base-v11.3.2...eslint-config-airbnb-base-v12.1.0 )
2017-12-16 09:03:00 +00:00
Cole Bemis
a7fe66e4b4
Merge pull request #239 from feathericons/dependabot/npm_and_yarn/eslint-4.13.1
...
Bump eslint from 4.10.0 to 4.13.1
2017-12-16 01:01:59 -08:00
dependabot[bot]
c85cb6556b
chore(dependencies): Bump eslint from 4.10.0 to 4.13.1
...
Bumps [eslint](https://github.com/eslint/eslint ) from 4.10.0 to 4.13.1.
- [Release notes](https://github.com/eslint/eslint/releases )
- [Changelog](https://github.com/eslint/eslint/blob/master/CHANGELOG.md )
- [Commits](https://github.com/eslint/eslint/compare/v4.10.0...v4.13.1 )
2017-12-16 08:55:43 +00:00
Cole Bemis
3ad661ecae
Merge pull request #241 from feathericons/dependabot/npm_and_yarn/@commitlint/cli-5.2.5
...
Bump @commitlint/cli from 5.0.0 to 5.2.5
2017-12-16 00:55:38 -08:00
dependabot[bot]
e3a3cd6727
chore(dependencies): Bump lint-staged from 5.0.0 to 6.0.0
...
Bumps [lint-staged](https://github.com/okonet/lint-staged ) from 5.0.0 to 6.0.0.
- [Release notes](https://github.com/okonet/lint-staged/releases/tag/v6.0.0 )
- [Commits](https://github.com/okonet/lint-staged/compare/v5.0.0...v6.0.0 )
2017-12-16 08:52:08 +00:00
dependabot[bot]
73111225b0
chore(dependencies): Bump eslint-config-prettier from 2.7.0 to 2.9.0
...
Bumps [eslint-config-prettier](https://github.com/prettier/eslint-config-prettier ) from 2.7.0 to 2.9.0.
- [Changelog](https://github.com/prettier/eslint-config-prettier/blob/master/CHANGELOG.md )
- [Commits](https://github.com/prettier/eslint-config-prettier/compare/v2.7.0...v2.9.0 )
2017-12-16 08:51:59 +00:00
Cole Bemis
d5e7e14e5b
Merge pull request #251 from feathericons/dependabot/npm_and_yarn/webpack-3.10.0
...
Bump webpack from 3.8.1 to 3.10.0
2017-12-16 00:51:35 -08:00
dependabot[bot]
84b8428ee9
chore(dependencies): Bump html-minifier from 3.5.6 to 3.5.7
...
Bumps [html-minifier](https://github.com/kangax/html-minifier ) from 3.5.6 to 3.5.7.
- [Release notes](https://github.com/kangax/html-minifier/releases/tag/v3.5.7 )
- [Commits](https://github.com/kangax/html-minifier/compare/v3.5.6...v3.5.7 )
2017-12-15 09:39:26 +00:00
Cole Bemis
f6984951a9
Merge pull request #243 from feathericons/dependabot/npm_and_yarn/husky-0.14.3
...
Bump husky from 0.13.4 to 0.14.3
2017-12-15 01:38:13 -08:00
dependabot[bot]
e70ae51980
chore(dependencies): Bump @commitlint/cli from 5.0.0 to 5.2.5
...
Bumps [@commitlint/cli](https://github.com/marionebl/commitlint ) from 5.0.0 to 5.2.5.
- [Release notes](https://github.com/marionebl/commitlint/releases )
- [Changelog](https://github.com/marionebl/commitlint/blob/master/CHANGELOG.md )
- [Commits](https://github.com/marionebl/commitlint/compare/v5.0.0...v5.2.5 )
2017-12-15 09:38:12 +00:00
Cole Bemis
dd9a0b0fe1
Merge pull request #244 from feathericons/dependabot/npm_and_yarn/@commitlint/config-angular-5.1.1
...
Bump @commitlint/config-angular from 5.0.0 to 5.1.1
2017-12-15 01:37:19 -08:00
dependabot[bot]
c847a2b195
chore(dependencies): Bump webpack from 3.8.1 to 3.10.0
...
Bumps [webpack](https://github.com/webpack/webpack ) from 3.8.1 to 3.10.0.
- [Release notes](https://github.com/webpack/webpack/releases?after=v4.0.0-alpha.0 )
- [Commits](https://github.com/webpack/webpack/compare/v3.8.1...v3.10.0 )
2017-12-15 07:58:20 +00:00
dependabot[bot]
9d3a802eb2
chore(dependencies): Bump core-js from 2.5.1 to 2.5.3
...
Bumps [core-js](https://github.com/zloirock/core-js ) from 2.5.1 to 2.5.3.
- [Release notes](https://github.com/zloirock/core-js/releases )
- [Changelog](https://github.com/zloirock/core-js/blob/master/CHANGELOG.md )
- [Commits](https://github.com/zloirock/core-js/compare/v2.5.1...v2.5.3 )
2017-12-15 07:58:13 +00:00
dependabot[bot]
10a1b217ef
chore(dependencies): Bump husky from 0.13.4 to 0.14.3
...
Bumps [husky](https://github.com/typicode/husky ) from 0.13.4 to 0.14.3.
- [Changelog](https://github.com/typicode/husky/blob/master/CHANGELOG.md )
- [Commits](https://github.com/typicode/husky/compare/v0.13.4...v0.14.3 )
2017-12-14 23:55:38 +00:00
dependabot[bot]
080d5b4187
chore(dependencies): Bump semantic-release from 6.3.6 to 8.2.0
...
Bumps [semantic-release](https://github.com/semantic-release/semantic-release ) from 6.3.6 to 8.2.0.
- [Release notes](https://github.com/semantic-release/semantic-release/releases?after=v8.2.1 )
- [Commits](https://github.com/semantic-release/semantic-release/compare/v6.3.6...v8.2.0 )
2017-12-14 15:54:41 -08:00
Cole Bemis
b817fe2605
ci: Update repository url in package.json
...
This change allows semantic-release to automatically publish release notes again.
https://github.com/semantic-release/semantic-release/issues/199
2017-12-14 10:14:19 -08:00
dependabot[bot]
ef4f52918b
chore(dependencies): Bump @commitlint/config-angular from 5.0.0 to 5.1.1
...
Bumps [@commitlint/config-angular](https://github.com/marionebl/commitlint ) from 5.0.0 to 5.1.1.
- [Release notes](https://github.com/marionebl/commitlint/releases?after=v5.1.2 )
- [Changelog](https://github.com/marionebl/commitlint/blob/master/CHANGELOG.md )
- [Commits](https://github.com/marionebl/commitlint/compare/v5.0.0...v5.1.1 )
2017-12-14 07:08:54 +00:00
Cole Bemis
14c796917d
build: Update linting config
2017-11-19 18:01:04 -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
998b2e9add
chore: Add lint script
2017-07-03 15:53:34 -07:00
Cole Bemis
ef3e69b327
build: Build js files with webpack
2017-07-03 15:53:34 -07:00
Cole Bemis
75068f6625
chore: Update package.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
1356b013b7
Update package.json
2017-06-04 01:03:46 -07:00
Cole Bemis
5554766f88
Change npm name
2017-06-01 23:20:59 -07:00
Cole Bemis
7fec7374be
Clean up package.json
2017-05-30 20:29:32 -07:00
Cole Bemis
714b8d3aff
Update package.json
2017-05-23 23:41:09 -07:00
Cole Bemis
a254c688d9
Clean up package.json
2017-05-23 20:46:38 -07:00
Cole Bemis
b25a67dc0f
Add svgo
2017-05-23 13:59:21 -07:00
Cole Bemis
873c50411f
Refactor build process
2017-05-13 11:30:06 -07:00
Cole Bemis
31337f00cc
Watch package.json
2017-05-13 02:44:55 -07:00
Cole Bemis
49bc7a1735
Add npm scripts
2017-05-13 02:36:11 -07:00