Skip to content

Commit d2755d8

Browse files
author
Tane Morgan
committed
Refactor tooling
1 parent d2b1848 commit d2755d8

33 files changed

+48590
-761
lines changed

.eslintignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
compiled/
2+
coverage/
3+
dist/
4+
node_modules/

.eslintrc.js

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
module.exports = {
2+
root: true,
3+
parser: '@typescript-eslint/parser',
4+
parserOptions: {
5+
project: 'tsconfig.json',
6+
sourceType: 'module',
7+
ecmaFeatures: {
8+
jsx: true
9+
}
10+
},
11+
settings: {
12+
react: {
13+
version: 'detect'
14+
}
15+
},
16+
extends: [
17+
'plugin:react/recommended',
18+
'plugin:@typescript-eslint/recommended',
19+
'prettier',
20+
'prettier/@typescript-eslint'
21+
],
22+
plugins: ['react', '@typescript-eslint'],
23+
rules: {
24+
'@typescript-eslint/explicit-function-return-type': 'off',
25+
'@typescript-eslint/explicit-member-accessibility': 'off'
26+
},
27+
overrides: [
28+
{
29+
files: ['*.js'],
30+
rules: {
31+
'@typescript-eslint/no-var-requires': 'off'
32+
}
33+
}
34+
]
35+
}

.gitignore

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
11
*.log
2-
*.tgz
32
.DS_Store
43
.vscode
5-
cjs
4+
compiled
65
coverage
7-
es
8-
examples/*/package-lock.json
9-
index.d.ts
10-
node_modules
11-
umd
6+
dist
7+
node_modules

.prettierignore

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
cjs
1+
complied
22
coverage
3-
es
4-
index.d.ts
5-
package.json
6-
umd
3+
dist
4+
package.json

.size-snapshot.json

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
{
2+
"dist/react-svg.cjs.production.js": {
3+
"bundled": 4879,
4+
"minified": 2594,
5+
"gzipped": 1018
6+
},
7+
"dist/react-svg.umd.production.js": {
8+
"bundled": 16336,
9+
"minified": 7068,
10+
"gzipped": 2930
11+
},
12+
"dist/react-svg.cjs.development.js": {
13+
"bundled": 5393,
14+
"minified": 3054,
15+
"gzipped": 1138
16+
},
17+
"dist/react-svg.esm.js": {
18+
"bundled": 5059,
19+
"minified": 2764,
20+
"gzipped": 1079,
21+
"treeshaked": {
22+
"rollup": {
23+
"code": 2479,
24+
"import_statements": 348
25+
},
26+
"webpack": {
27+
"code": 3793
28+
}
29+
}
30+
},
31+
"dist/react-svg.umd.development.js": {
32+
"bundled": 16899,
33+
"minified": 7418,
34+
"gzipped": 3028
35+
}
36+
}

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
[![build status](https://img.shields.io/travis/tanem/react-svg/master.svg?style=flat-square)](https://travis-ci.org/tanem/react-svg)
55
[![coverage status](https://img.shields.io/codecov/c/github/tanem/react-svg.svg?style=flat-square)](https://codecov.io/gh/tanem/react-svg)
66
[![npm downloads](https://img.shields.io/npm/dm/react-svg.svg?style=flat-square)](https://www.npmjs.com/package/react-svg)
7-
[![gzip size](http://img.badgesize.io/https://unpkg.com/react-svg/umd/react-svg.production.min.js?style=flat-square&compression=gzip)](https://unpkg.com/react-svg/umd/react-svg.production.min.js)
87

98
> A React component that injects SVG into the DOM.
109
@@ -87,8 +86,8 @@ $ npm install react-svg
8786

8887
There are also UMD builds available via [unpkg](https://unpkg.com/):
8988

90-
- https://unpkg.com/react-svg/umd/react-svg.development.js
91-
- https://unpkg.com/react-svg/umd/react-svg.production.min.js
89+
- https://unpkg.com/react-svg/dist/react-svg.development.js
90+
- https://unpkg.com/react-svg/dist/react-svg.production.js
9291

9392
For the non-minified development version, make sure you have already included:
9493

0 commit comments

Comments
 (0)