### Install

Add `.nmprc` file with following content into the root directory of your project:

```
registry = https://artifacts.apollo.stream/repository/npm-group/
``` 

#### Yarn

* run ```yarn add frontend-shared-icons@1.0.1```

#### NPM 

* run ```npm install frontend-shared-icons@1.0.1```

#### package.json

* add ```"frontend-shared-icons": "1.0.1"```

### First release

* `git init`

* `git remote add origin git@github.com:filtr/frontend-shared-icons.git`

* `git add .`

* `git commit -m "Initial"`

After commit

* `git tag -a v1.0.0 -m "Description of the release..."`

* `git push --set-upstream origin master`

* `git push --tags`

### Upgrade repository

* Do some changes

* `git add .`

* `git commit -m "Description of commit: e.g. Add icon X, icon Y"`

* After the commit create a new tag with a new version [Git-Basics-Tagging](https://git-scm.com/book/en/v2/Git-Basics-Tagging)

* `npm version patch` to increment the app version and add a new tag automatically or update package.json manually 
  but manual update will enforce you to create a new tag by yourself
  
  * If you didn't use `npm version patch` then run → 
  * `git tag -a v1.0.1 -m "Description of changes in the release...`

* `git push && git push --tags`

### Generate icons

* Go to [Icomoon App](https://icomoon.io/app)

* Click **Import Icons** and select `selection.json` file from `dist` folder

* Select **YES** on prompting to load setting from `selection.json`

* Add new icon to set (dropdown menu on the right side of set header - *Import to Set*)

* Move the new icon to the bottom of the set

* Generate font

* Replace all files in `dist` folder with the new generated ones