Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: gregberge/svgr
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 36a43e2d45469d6ff9aae6d4de004487fc649f03
Choose a base ref
...
head repository: gregberge/svgr
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: af9a6cbd4387180c7d6683713330a7ffcfb600e9
Choose a head ref
Loading
Showing 311 changed files with 86,824 additions and 21,084 deletions.
14 changes: 0 additions & 14 deletions .babelrc

This file was deleted.

5 changes: 3 additions & 2 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
node_modules/
lib/
__fixtures__/
__fixtures_build__/
coverage/
examples/
svgr.now.sh/
svgr.now.sh/
/website/
dist/
19 changes: 0 additions & 19 deletions .eslintrc.js

This file was deleted.

26 changes: 26 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"root": true,
"env": {
"node": true
},
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint"],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:react-hooks/recommended",
"plugin:react/recommended"
],
"rules": {
"@typescript-eslint/ban-ts-comment": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-empty-function": "warn",
"@typescript-eslint/ban-types": "warn",
"react/prop-types": "off"
},
"settings": {
"react": {
"version": "detect"
}
}
}
2 changes: 2 additions & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
github: gregberge
open_collective: svgr
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## 👉 [Please follow one of these issue templates](https://github.com/smooth-code/svgr/issues/new/choose) 👈
## 👉 [Please follow one of these issue templates](https://github.com/gregberge/svgr/issues/new/choose) 👈

<!-- Love SVGR? Please consider supporting our collective: 👉 https://opencollective.com/svgr/donate -->

15 changes: 15 additions & 0 deletions .github/opencollective.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
collective: svgr
tiers:
- tiers: '*'
labels: ['backer']
message: |
Hey <author> :wave:,
Thank you so much for supporting us on [Open Collective](<link>) :heart:.
We'll give a special attention to this issue.
<link>
invitation: |
Hey <author> :wave:,
Thank you for opening an issue. We'll get back to you as soon as we can.
Please, consider supporting us on [Open Collective](<link>). We give a special attention to issues opened by backers.
If you use SVGR at work, you can also ask your company to sponsor us :heart:.
<link>
11 changes: 11 additions & 0 deletions .github/stale.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Number of days of inactivity before an issue becomes stale
daysUntilStale: 60
# Number of days of inactivity before a stale issue is closed
daysUntilClose: 7
# Label to use when marking an issue as stale
staleLabel: wontfix
# Comment to post when marking an issue as stale. Set to `false` to disable
markComment: >
This issue has been automatically marked as stale because it has not had
recent activity. It will be closed if no further activity occurs. Thank you
for your contributions.
45 changes: 45 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: CI

on:
push:
branches: [main]
pull_request:
branches: [main]

jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [12.x, 14.x, 16.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
- name: Check out repository code
uses: actions/checkout@v2

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'

- name: Use latest npm
run: npm i -g npm@latest --registry=https://registry.npmjs.org
if: ${{ matrix.node-version == '12.x' || matrix.node-version == '14.x' }}

- name: Install dependencies
run: npm ci

- name: Build
run: npm run build

- name: Lint
run: npm run lint

- name: Test
run: npm run test -- --ci --coverage

- name: Codecov
run: npx codecov
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
node_modules/
lib/
dist/
!svgr.now.sh/lib/
__fixtures_build__/
src/__fixtures__/dist/
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
16
6 changes: 4 additions & 2 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -3,5 +3,7 @@ __fixtures__/
CHANGELOG.md
package.json
lerna.json
lib/
.next/
dist/
.next/
/website/.cache/
/website/public/
21 changes: 0 additions & 21 deletions .travis.yml

This file was deleted.

6 changes: 3 additions & 3 deletions BACKERS.md
Original file line number Diff line number Diff line change
@@ -8,19 +8,19 @@ SVGR is an MIT-licensed open source project. Even if it has been created at Smoo

## Gold Sponsors

Gold Sponsors are those who have pledged $200/month and more to SVGR.
Gold Sponsors are those who have pledged \$100/month and more to SVGR.

[![gold-sponsors](https://opencollective.com/svgr/tiers/gold-sponsors.svg?avatarHeight=120&width=600)](https://opencollective.com/svgr/order/6010)

## Silver Sponsors

Silver Sponsors are those who have pledged $100/month to $200/month to SVGR.
Silver Sponsors are those who have pledged $50/month to$100/month to SVGR.

[![silver-sponsors](https://opencollective.com/svgr/tiers/silver-sponsors.svg?avatarHeight=120&width=600)](https://opencollective.com/svgr/order/6008)

## Bronze Sponsors

Bronze Sponsors are those who have pledged $50/month to $100/month to SVGR.
Bronze Sponsors are those who have pledged $50/month to$100/month to SVGR.

[![bronze-sponsors](https://opencollective.com/svgr/tiers/bronze-sponsors.svg?avatarHeight=80&width=600)](https://opencollective.com/svgr/order/6009)

Loading