diff --git a/.travis.yml b/.travis.yml index 63fbf1a..c35b263 100644 --- a/.travis.yml +++ b/.travis.yml @@ -18,8 +18,16 @@ before_install: after_success: - cat ./coverage/lcov.info | ./node_modules/codecov.io/bin/codecov.io.js - cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js - - npm run build - - npm run travis-deploy-once "npm run semantic-release" + +jobs: + include: + - stage: release + node_js: lts/* + deploy: + provider: script + skip_cleanup: true + script: + - npx semantic-release branches: only: diff --git a/MobileStoreButton.jsx b/MobileStoreButton.jsx deleted file mode 100755 index 43574de..0000000 --- a/MobileStoreButton.jsx +++ /dev/null @@ -1,62 +0,0 @@ -import React from 'react'; -import PropTypes from 'prop-types'; - -const imageLinks = { - ios: 'https://linkmaker.itunes.apple.com/images/badges/en-us/badge_appstore-lrg.svg', - android: 'https://play.google.com/intl/en_us/badges/images/generic/en_badge_web_generic.png', -}; - -class MobileStoreButton extends React.Component { - static propTypes = { - store: PropTypes.oneOf(['ios', 'android']).isRequired, - url: PropTypes.string.isRequired, - height: PropTypes.number, - width: PropTypes.number, - linkStyles: PropTypes.object, - linkProps: PropTypes.object, - }; - static defaultProps = { - height: 75, - width: 255, - }; - - render() { - const { - store, - url, - height, - width, - linkStyles, - linkProps, - ...props - } = this.props; - - const defaultLinkStyles = { - background: `url(${imageLinks[store]}) no-repeat`, - backgroundSize: 'contain', - display: 'inline-block', - overflow: 'hidden', - textDecoration: 'none', - height: '100%', - width: '100%', - padding: '5px', - ...linkStyles, - }; - - return ( -
- -   - -
- ); - } -} - -export default MobileStoreButton; diff --git a/README.md b/README.md index 3a6c075..1120860 100644 --- a/README.md +++ b/README.md @@ -13,4 +13,4 @@ Describe react-store-badges here. [npm]: https://www.npmjs.org/package/npm-package [coveralls-badge]: https://img.shields.io/coveralls/user/repo/master.png?style=flat-square -[coveralls]: https://coveralls.io/github/user/repo +[coveralls]: https://coveralls.io/github/user/repo \ No newline at end of file diff --git a/package.json b/package.json index 1101cd4..9ae1592 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-store-badges", - "version": "0.0.0-development", + "version": "0.0.1-development", "description": "react-store-badges React component", "main": "lib/index.js", "module": "es/index.js",