From 8cf6515298c075b54ac6e82c9021fd7d2e3acb18 Mon Sep 17 00:00:00 2001 From: Nolan Lawson Date: Sat, 16 Mar 2019 10:26:09 -0700 Subject: [PATCH] chore: add Travis CI tests --- .travis.yml | 10 ++++++++++ README.md | 1 + package.json | 3 ++- src/components/category.js | 19 +++++++++---------- src/components/search.js | 6 +++--- src/polyfills/stringFromCodePoint.js | 2 +- yarn.lock | 8 ++++---- 7 files changed, 30 insertions(+), 19 deletions(-) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..cda0efc --- /dev/null +++ b/.travis.yml @@ -0,0 +1,10 @@ +language: node_js +node_js: +- 10 +sudo: false +script: yarn test +before_script: +- yarn prettier:check +branches: + only: + - master diff --git a/README.md b/README.md index 8691741..ef733ae 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,7 @@

Emoji Mart is a Slack-like customizable
emoji picker component for React
DemoChangelog +
Build Status

picker

Missive | Team email, team chat, team tasks, one app
Brought to you by the Missive team diff --git a/package.json b/package.json index 54c6c57..da04a31 100644 --- a/package.json +++ b/package.json @@ -49,7 +49,7 @@ "inflection": "1.10.0", "jest": "^23.0.0", "mkdirp": "0.5.1", - "prettier": "1.11.1", + "prettier": "^1.16.4", "react": "^16.0.0", "react-dom": "^16.0.0", "react-test-renderer": "^16.8.4", @@ -76,6 +76,7 @@ "storybook": "start-storybook -p 6006", "build-storybook": "build-storybook", "prettier": "prettier --write \"{src,scripts}/**/*.js\"", + "prettier:check": "prettier --check \"{src,scripts}/**/*.js\"", "prepare": "npm run build:dist" }, "size-limit": [ diff --git a/src/components/category.js b/src/components/category.js index 31beaa3..26e08b8 100644 --- a/src/components/category.js +++ b/src/components/category.js @@ -210,16 +210,15 @@ export default class Category extends React.Component { ))} - {emojis && - !emojis.length && ( - - )} + {emojis && !emojis.length && ( + + )} ) } diff --git a/src/components/search.js b/src/components/search.js index b8cbfc8..6aec93f 100644 --- a/src/components/search.js +++ b/src/components/search.js @@ -94,9 +94,9 @@ export default class Search extends React.PureComponent { autoFocus={autoFocus} /> {/* - * Use a