Skip to content

Commit

Permalink
Merge pull request #36 from gustavoFreireS/fix/rollup-issues-test-badge
Browse files Browse the repository at this point in the history
Fix/rollup issues test badge
  • Loading branch information
gustavoFreireS authored Aug 16, 2019
2 parents 2a31320 + d493555 commit 7959251
Show file tree
Hide file tree
Showing 4 changed files with 141 additions and 5 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
![](./readme/react-smart-tabs-logo.png "react-smart-tabs")
> A simple to use tab system built with react.
[![NPM Version][npm-image]][npm-url] [![Downloads Stats][npm-downloads]][npm-url]
[![NPM Version][npm-image]][npm-url] [![Downloads Stats][npm-downloads]][npm-url] [![Codecov Coverage][code-cov-image]][code-cov-repo]

## Description
[react-smart-tabs](https://github.com/EvoluxBR/react-smart-tabs/) is an intuitive tab system built with react, inspired by chrome's tab functionality.
Expand Down Expand Up @@ -268,5 +268,7 @@ Use these links to get the badges:
-->
[npm-image]: https://badge.fury.io/js/react-smart-tabs.svg
[npm-url]: https://www.npmjs.com/package/react-smart-tabs
[npm-downloads]: https://img.shields.io/npm/dt/react-smart-tabs?label=npm%20downloads&style=flat-square
[npm-downloads]: https://img.shields.io/npm/dt/react-smart-tabs
[wiki]: https://github.com/EvoluxBR/react-smart-tabs/wiki
[code-cov-image]: https://img.shields.io/codecov/c/github/EvoluxBR/react-smart-tabs/master.svg
[code-cov-repo]: https://codecov.io/gh/EvoluxBR/react-smart-tabs
129 changes: 129 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
"build": "rollup -c"
},
"repository": {
"type" : "git",
"url" : "https://github.com/EvoluxBR/react-smart-tabs"
"type": "git",
"url": "https://github.com/EvoluxBR/react-smart-tabs"
},
"keywords": [
"React",
Expand All @@ -25,13 +25,15 @@
"@types/react": "^16.8.23",
"@types/react-dom": "^16.8.4",
"awesome-typescript-loader": "^5.2.1",
"codecov": "^3.5.0",
"enzyme": "^3.10.0",
"enzyme-adapter-react-16": "^1.14.0",
"jest": "^24.8.0",
"postcss-preset-env": "^6.6.0",
"react-test-renderer": "^16.8.6",
"rollup": "^1.17.0",
"rollup-plugin-scss": "^1.0.1",
"rollup-plugin-svg": "^2.0.0",
"rollup-plugin-typescript": "^1.0.1",
"source-map-loader": "^0.2.4",
"stylelint": "^10.1.0",
Expand Down
5 changes: 4 additions & 1 deletion rollup.config.js
Original file line number Diff line number Diff line change
@@ -1,17 +1,19 @@
import typescript from 'rollup-plugin-typescript';
import scss from 'rollup-plugin-scss';
import {terser} from "rollup-plugin-terser";
import svg from 'rollup-plugin-svg'

export default {
input: './src/components/index.tsx',
external: ['react', 'uuid'],
external: ['react', 'uuid', 'react-svg'],
output: {
file: './dist/bundle.js',
format: 'umd',
name: 'react-smart-tabs',
globals: {
react: "React",
uuid: "uuid",
"react-svg": "ReactSVG",
}
},
plugins: [
Expand All @@ -20,5 +22,6 @@ export default {
}),
scss({output: './dist/bundle.css',}),
terser(),
svg(),
]
}

0 comments on commit 7959251

Please sign in to comment.