* feat: display a meaningful error when the config file is missing
## What
When you try to add a user with `.all-contributorsrc` missing, you will get a cryptic error message (see also all-contributors/all-contributors#378):
```
$ all-contributors add darekkay maintenance
Cannot read property 'then' of null
```
This PR displays a meaningful error message in this case.
## Why
So users know what's causing the problem.
## How
Before a contribution is being added, the script checks whether the config file exists. If it doesn't, an error message is being displayed:
```
$ all-contributors add darekkay maintenance
Configuration file not found: C:\projects\test\.all-contributorsrc
```
* docs: add darekkay as a contributor
* refactor: fixed typos
* docs(readme): table rectification
Co-authored-by: Maximilian Berkmann <maxieberkmann@gmail.com>
* feat: migrate from request to node-fetch
* docs(readme): add favna for all contributors
* fix: forgot to refactor this one
* style(gitlab): fixed formatting issues
Co-authored-by: Berkmann18 <maxieberkmann@gmail.com>
* add isEnterprise config option and add function to change hostname if on enterprise
* add hipstersmoothie as contributor
* infer enterprise API
* handle enterprise authentication
* add tylerkrupicka as a contributor
Co-authored-by: Tyler Krupicka <tylerkrupicka@gmail.com>
Co-authored-by: Maximilian Berkmann <maxieberkmann@gmail.com>
*BREAKING CHANGE*
* style(generate): changed generator to an HTML based one [WIP]
I added and set the HTML generator for resolving #154 (which works when testing manually but doesn't
when running the cli in dev mode).
fix#154
* refactor(generate): (re)moved files to keep it DRY
* refactor: refactored/updated tests
Update the contributors test (which wasn't already committed somehow) and tweaked the
`format-contribution-type` test.
* docs(readme): removed doctoc
BREAKING CHANGE: (in 2babe26b08) The resulting contributors table is in HTML/CSS instead of being in Markdown.
* refactor(generate): removed the style from the generation
Removed the `<style>` block from the generated HTML code as it's redundant on Github (since it's one
of the non-whitelisted tags). The `README.md` was also updated reflecting the breaking changes.
* refactor(generate): image height and tweaks
Added `height` to images for avatars, quoted some `<table>` attributes and updated `README.md`
* docs: drop TOC
* chore(package): added commitizen
I added `git-cz` (commitizen) with the angular adapter (which seems to work)
* docs(readme): added cz badge
Added the badge to indicate the commitizen-friendliness of this repo.
* revert: removed the category changes from another PR
It removes the addition of a maintenance category to keep them separated.
* feat(contribution-type): added maintenance type
fixes#111
* docs(categories): added maintenance category
* refactor: changed the maintenance symbol
* refactor: alphabetical listing fix
I moved the `maintenance` blocks/lines to the correct locations
* feat(format-contributor): added `alt` attributes
I added `alt` attributes to `img` tags which specifies the name of the
contributor in them (for accessibility purposes).
* docs: added @Berkmann18
I added myself (I forgot to do that) for code (cf. my previous commit),
test and doc.