chore: add Travis CI tests

nolan/hinaloe-test
Nolan Lawson 2019-03-16 10:26:09 -07:00
parent d739f27714
commit 8cf6515298
7 changed files with 30 additions and 19 deletions

10
.travis.yml Normal file
View File

@ -0,0 +1,10 @@
language: node_js
node_js:
- 10
sudo: false
script: yarn test
before_script:
- yarn prettier:check
branches:
only:
- master

View File

@ -1,6 +1,7 @@
<div align="center"> <div align="center">
<br><b>Emoji Mart</b> is a Slack-like customizable<br>emoji picker component for React <br><b>Emoji Mart</b> is a Slack-like customizable<br>emoji picker component for React
<br><a href="https://missive.github.io/emoji-mart">Demo</a><a href="https://github.com/missive/emoji-mart/releases">Changelog</a> <br><a href="https://missive.github.io/emoji-mart">Demo</a><a href="https://github.com/missive/emoji-mart/releases">Changelog</a>
<br><a href="https://travis-ci.org/nolanlawson/emoji-mart"><img src="https://travis-ci.org/nolanlawson/emoji-mart.svg?branch=master" alt="Build Status"></a>
<br><br><img width="338" alt="picker" src="https://user-images.githubusercontent.com/436043/43481399-d9b60acc-94d3-11e8-9b3b-e5f2db8f0bd1.png"> <br><br><img width="338" alt="picker" src="https://user-images.githubusercontent.com/436043/43481399-d9b60acc-94d3-11e8-9b3b-e5f2db8f0bd1.png">
<br><br><a title="Team email, team chat, team tasks, one app" href="https://missiveapp.com"><img width="30" alt="Missive | Team email, team chat, team tasks, one app" src="https://user-images.githubusercontent.com/436043/32532559-0d15ddfc-c400-11e7-8a24-64d0157d0cb0.png"></a> <br><br><a title="Team email, team chat, team tasks, one app" href="https://missiveapp.com"><img width="30" alt="Missive | Team email, team chat, team tasks, one app" src="https://user-images.githubusercontent.com/436043/32532559-0d15ddfc-c400-11e7-8a24-64d0157d0cb0.png"></a>
<br>Brought to you by the <a title="Team email, team chat, team tasks, one app" href="https://missiveapp.com">Missive</a> team <br>Brought to you by the <a title="Team email, team chat, team tasks, one app" href="https://missiveapp.com">Missive</a> team

View File

@ -49,7 +49,7 @@
"inflection": "1.10.0", "inflection": "1.10.0",
"jest": "^23.0.0", "jest": "^23.0.0",
"mkdirp": "0.5.1", "mkdirp": "0.5.1",
"prettier": "1.11.1", "prettier": "^1.16.4",
"react": "^16.0.0", "react": "^16.0.0",
"react-dom": "^16.0.0", "react-dom": "^16.0.0",
"react-test-renderer": "^16.8.4", "react-test-renderer": "^16.8.4",
@ -76,6 +76,7 @@
"storybook": "start-storybook -p 6006", "storybook": "start-storybook -p 6006",
"build-storybook": "build-storybook", "build-storybook": "build-storybook",
"prettier": "prettier --write \"{src,scripts}/**/*.js\"", "prettier": "prettier --write \"{src,scripts}/**/*.js\"",
"prettier:check": "prettier --check \"{src,scripts}/**/*.js\"",
"prepare": "npm run build:dist" "prepare": "npm run build:dist"
}, },
"size-limit": [ "size-limit": [

View File

@ -210,16 +210,15 @@ export default class Category extends React.Component {
))} ))}
</ul> </ul>
{emojis && {emojis && !emojis.length && (
!emojis.length && ( <NotFound
<NotFound i18n={i18n}
i18n={i18n} notFound={notFound}
notFound={notFound} notFoundEmoji={notFoundEmoji}
notFoundEmoji={notFoundEmoji} data={this.data}
data={this.data} emojiProps={emojiProps}
emojiProps={emojiProps} />
/> )}
)}
</section> </section>
) )
} }

View File

@ -94,9 +94,9 @@ export default class Search extends React.PureComponent {
autoFocus={autoFocus} autoFocus={autoFocus}
/> />
{/* {/*
* Use a <label> in addition to the placeholder for accessibility, but place it off-screen * Use a <label> in addition to the placeholder for accessibility, but place it off-screen
* http://www.maxability.co.in/2016/01/placeholder-attribute-and-why-it-is-not-accessible/ * http://www.maxability.co.in/2016/01/placeholder-attribute-and-why-it-is-not-accessible/
*/} */}
<label className="emoji-mart-sr-only" htmlFor={inputId}> <label className="emoji-mart-sr-only" htmlFor={inputId}>
{i18n.search} {i18n.search}
</label> </label>

View File

@ -30,7 +30,7 @@ export default _String.fromCodePoint ||
// http://mathiasbynens.be/notes/javascript-encoding#surrogate-formulae // http://mathiasbynens.be/notes/javascript-encoding#surrogate-formulae
codePoint -= 0x10000 codePoint -= 0x10000
highSurrogate = (codePoint >> 10) + 0xd800 highSurrogate = (codePoint >> 10) + 0xd800
lowSurrogate = codePoint % 0x400 + 0xdc00 lowSurrogate = (codePoint % 0x400) + 0xdc00
codeUnits.push(highSurrogate, lowSurrogate) codeUnits.push(highSurrogate, lowSurrogate)
} }
if (index + 1 === length || codeUnits.length > MAX_SIZE) { if (index + 1 === length || codeUnits.length > MAX_SIZE) {

View File

@ -6805,10 +6805,10 @@ preserve@^0.2.0:
resolved "https://registry.yarnpkg.com/preserve/-/preserve-0.2.0.tgz#815ed1f6ebc65926f865b310c0713bcb3315ce4b" resolved "https://registry.yarnpkg.com/preserve/-/preserve-0.2.0.tgz#815ed1f6ebc65926f865b310c0713bcb3315ce4b"
integrity sha1-gV7R9uvGWSb4ZbMQwHE7yzMVzks= integrity sha1-gV7R9uvGWSb4ZbMQwHE7yzMVzks=
prettier@1.11.1: prettier@^1.16.4:
version "1.11.1" version "1.16.4"
resolved "https://registry.yarnpkg.com/prettier/-/prettier-1.11.1.tgz#61e43fc4cd44e68f2b0dfc2c38cd4bb0fccdcc75" resolved "https://registry.yarnpkg.com/prettier/-/prettier-1.16.4.tgz#73e37e73e018ad2db9c76742e2647e21790c9717"
integrity sha512-T/KD65Ot0PB97xTrG8afQ46x3oiVhnfGjGESSI9NWYcG92+OUPZKkwHqGWXH2t9jK1crnQjubECW0FuOth+hxw== integrity sha512-ZzWuos7TI5CKUeQAtFd6Zhm2s6EpAD/ZLApIhsF9pRvRtM1RFo61dM/4MSRUA0SuLugA/zgrZD8m0BaY46Og7g==
pretty-error@^2.0.2: pretty-error@^2.0.2:
version "2.1.1" version "2.1.1"