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 ( -