diff --git a/.babelrc b/.babelrc
index 3c078e9..831f20a 100644
--- a/.babelrc
+++ b/.babelrc
@@ -1,5 +1,4 @@
{
- "presets": [
- "es2015"
- ]
+ "presets": ["es2015"],
+ "plugins": ["transform-object-rest-spread"]
}
diff --git a/.eslintrc.json b/.eslintrc.json
index f020c3c..4317b2d 100644
--- a/.eslintrc.json
+++ b/.eslintrc.json
@@ -1,12 +1,11 @@
{
"extends": "airbnb-base",
- "plugins": [
- "import"
- ],
+ "plugins": ["import"],
"rules": {
- "no-use-before-define": "off",
"arrow-parens": ["error", "as-needed"],
+ "no-console": ["error", { "allow": ["warn", "error"] }],
+ "no-param-reassign": "off",
"no-shadow": "off",
- "no-console": ["error", { "allow": ["warn", "error"] }]
+ "no-use-before-define": "off"
}
}
diff --git a/.travis.yml b/.travis.yml
index 0c28266..4ba7f6c 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -8,6 +8,6 @@ node_js: 6
before_script:
- npm prune
script:
- - npm run all
+ - npm start
after_success:
- npm run semantic-release
diff --git a/Makefile b/Makefile
deleted file mode 100644
index 7a28afc..0000000
--- a/Makefile
+++ /dev/null
@@ -1,34 +0,0 @@
-src_files := src/*.js
-src_dir := src
-
-.PHONY: all lint test build
-
-all: lint test build
-
-lint: dist/icons.json
- ./node_modules/.bin/eslint .
-
-test:
- ./node_modules/.bin/jest
-
-build: dist/feather.js dist/feather.min.js dist/icons
-
-node_modules:
- npm install
-
-dist:
- mkdir dist
-
-dist/icons.json: node_modules dist icons icons/*.svg
- ./node_modules/.bin/babel-node bin/build-json.js
-
-dist/feather.js: dist/icons.json $(src_dir) $(src_files)
- ./node_modules/.bin/webpack --output-filename feather.js
-
-dist/feather.min.js: dist/icons.json $(src_dir) $(src_files)
- ./node_modules/.bin/webpack --output-filename feather.min.js -p
-
-dist/icons: dist/icons.json
- rm -rf dist/icons
- mkdir -p dist/icons
- ./node_modules/.bin/babel-node bin/build-svgs.js
diff --git a/README.md b/README.md
index e6afc75..bdc7920 100644
--- a/README.md
+++ b/README.md
@@ -3,12 +3,12 @@
[![Travis branch](https://img.shields.io/travis/colebemis/feather/master.svg?style=flat-square)](https://travis-ci.org/colebemis/feather)
[![npm](https://img.shields.io/npm/v/feather-icons.svg?style=flat-square)](https://www.npmjs.com/package/feather-icons)
[![npm](https://img.shields.io/npm/dm/feather-icons.svg?style=flat-square)](https://npm-stat.com/charts.html?package=feather-icons&from=2017-06-01)
-[![Code Climate](https://img.shields.io/codeclimate/github/colebemis/feather.svg?style=flat-square)](https://codeclimate.com/github/colebemis/feather)
[![CDNJS version](https://img.shields.io/cdnjs/v/feather-icons.svg?style=flat-square)](https://cdnjs.com/libraries/feather-icons)
+[![Code Climate](https://img.shields.io/codeclimate/github/colebemis/feather.svg?style=flat-square)](https://codeclimate.com/github/colebemis/feather)
## What is Feather?
-Feather is a collection of **simply beautiful open source icons**. Each icon is designed on a 24x24 grid with an emphasis on simplicity, consistency and readability.
+Feather is a collection of simply beautiful open source icons. Each icon is designed on a 24x24 grid with an emphasis on simplicity, consistency and readability.
**[feathericons.com](https://feathericons.com)**
@@ -20,12 +20,13 @@ npm install feather-icons
* [Quick Start](#quick-start)
* [Usage](#usage)
- * [Client-side JavaScript](#client-side-javascript)
+ * [Client-side](#client-side)
* [Node](#node)
* [API Reference](#api-reference)
* [`feather.icons`](#feathericons)
- * [`feather.toSvg()`](#feathertosvgkey-options)
- * [`feather.replace()`](#featherreplaceoptions)
+ * [`feather.icons[name].toSvg()`](#feathericonsnametosvgattrs)
+ * [`feather.replace()`](#featherreplaceattrs)
+ * [[DEPRECATED] `feather.toSvg()`](#deprecated-feathertosvgname-attrs)
* [Roadmap](#roadmap)
* [Contributing](#contributing)
* [Related Projects](#related-projects)
@@ -60,7 +61,7 @@ At its core, Feather is a collection of [SVG](https://svgontheweb.com/#svg) file
The following are additional ways you can use Feather.
-### Client-side JavaScript
+### Client-side
#### 1. Install
@@ -79,7 +80,7 @@ Or just copy [`feather.js`](https://unpkg.com/feather-icons/dist/feather.js) or
Include `feather.js` or `feather.min.js` with a `
+
```
Or load the script from a CDN provider.
@@ -104,7 +105,7 @@ See the complete list of icons at [feathericons.com](https://feathericons.com).
#### 4. Replace
-Call the `feather.replace` method.
+Call the `feather.replace()` method.
```html
```
-You can pass `feather.replace()` an `options` object:
+You can pass `feather.replace()` an `attrs` object:
```html