From 061900474452c6b6291cd51d62cdff8d8106c17e Mon Sep 17 00:00:00 2001 From: Joel Arvidsson Date: Mon, 8 Jan 2018 20:25:20 +0100 Subject: [PATCH] Add travis config and release to npm automatically (#97) --- .flowconfig | 32 +++++++++++++++++++++----------- .travis.yml | 20 ++++++++++++++++++++ README.md | 3 +++ package.json | 5 ++++- yarn.lock | 7 +++++++ 5 files changed, 55 insertions(+), 12 deletions(-) create mode 100644 .travis.yml create mode 100644 yarn.lock diff --git a/.flowconfig b/.flowconfig index 4728e37..7d60895 100644 --- a/.flowconfig +++ b/.flowconfig @@ -1,6 +1,4 @@ [ignore] -.*/KeychainExample/* - ; We fork some components by platform .*/*[.]android.js @@ -14,33 +12,45 @@ ; For RN Apps installed via npm, "Libraries" folder is inside ; "node_modules/react-native" but in the source repo it is in the root .*/Libraries/react-native/React.js -.*/Libraries/react-native/ReactNative.js + +; Ignore polyfills +.*/Libraries/polyfills/.* + +; Ignore metro +.*/node_modules/metro/.* [include] [libs] node_modules/react-native/Libraries/react-native/react-native-interface.js -node_modules/react-native/flow -flow/ +node_modules/react-native/flow/ +node_modules/react-native/flow-github/ [options] -module.system=haste +emoji=true -experimental.strict_type_args=true +module.system=haste munge_underscores=true module.name_mapper='^[./a-zA-Z0-9$_-]+\.\(bmp\|gif\|jpg\|jpeg\|png\|psd\|svg\|webp\|m4v\|mov\|mp4\|mpeg\|mpg\|webm\|aac\|aiff\|caf\|m4a\|mp3\|wav\|html\|pdf\)$' -> 'RelativeImageStub' +module.file_ext=.js +module.file_ext=.jsx +module.file_ext=.json +module.file_ext=.native.js + suppress_type=$FlowIssue suppress_type=$FlowFixMe -suppress_type=$FixMe +suppress_type=$FlowFixMeProps +suppress_type=$FlowFixMeState -suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(>=0\\.\\(3[0-6]\\|[1-2][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\) -suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(>=0\\.\\(3[0-6]\\|1[0-9]\\|[1-2][0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)?:? #[0-9]+ +suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\) +suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)?:? #[0-9]+ suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy +suppress_comment=\\(.\\|\n\\)*\\$FlowExpectedError unsafe.enable_getters_and_setters=true [version] -^0.49.1 +^0.61.0 diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..2e9a6d0 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,20 @@ +language: node_js +node_js: +- stable +cache: + yarn: true + directories: + - node_modules +install: +- yarn +script: +- yarn run test +deploy: + provider: npm + email: joel@oblador.se + api_key: + secure: "nQuYddBeisi88YQ3xmC4RZEhW7RrVugvnlbNnWym6/uwyL9hWQX6h2hsr1GpKAdvvqBJkDrt+TQOdqigrHIabPEw10FIasr7Xoe9Lb26eAaR4ca3Do2nNCZNFPgWyBoKNWzS61Bb1zuhgnLpQDZSxXDvj9Yzk7Y+2bNrUzxMIuP59f83mVxro8p8Ku4WLx+f7Wlq1zLrhTVN7/A1jYgrTHRE4fq0Sfyyuy9LE8Z3GSx2LclpI/YVgX/XsVO+G73VieEdUFGf6gyCOH2sGeJ6Lb2Gyu0tY260PzXrP1NGlDX7cbuqia26fOMkgaYqsV4EKnhTMuB75dfhjcBbYHPjqZQ+0V17C+7WFLyH3zpd4GOwTsK4yPlr1wcVrgtW2Dw6vnz01FecNujCBunxLsVratGWXd44pDXjyqb7roS1i31+ouEvEeiQl6f41NGhQYxzX9jJbEUmakneLbf5RpVvUDM0IbEC7pLNaSrkMCbU9ib16zGGS72l/3jjFb8Vqb4i0EMmR+1Gxo1bw5bsS6M4/1uj4f9z6eECDYhn1QcOM2SqpfjDDuKZgc6NpyucFfGz9cUiut8trtTq4dxNt+chsBz4aZNyU2gOKS4TrrFopsMAc2gF2/VBmbc+dl+ZYdAyF87afVwLcmWl1NH+DqOnTdMPYgSBgVScJeDXzry6HBo=" + on: + tags: true + repo: oblador/react-native-keychain + condition: "$TRAVIS_TAG =~ ^v[0-9]+\\.[0-9]+\\.[0-9]+.*$" diff --git a/README.md b/README.md index 6d2021b..827e3ab 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,7 @@ # react-native-keychain + +[![Travis](https://img.shields.io/travis/oblador/react-native-keychain.svg)](https://travis-ci.org/oblador/react-native-keychain) [![npm](https://img.shields.io/npm/v/react-native-keychain.svg)](https://npmjs.com/package/react-native-keychain) [![npm](https://img.shields.io/npm/dm/react-native-keychain.svg)](https://npmjs.com/package/react-native-keychain) + Keychain Access for React Native. Currently functionality is limited to just storing internet and generic passwords. ### New 2.0.0-rc with improved android implementation diff --git a/package.json b/package.json index 8c9e5d2..c981af4 100644 --- a/package.json +++ b/package.json @@ -32,5 +32,8 @@ "type": "git", "url": "git://github.com/oblador/react-native-keychain.git" }, - "license": "MIT" + "license": "MIT", + "devDependencies": { + "flow-bin": "0.61.0" + } } diff --git a/yarn.lock b/yarn.lock new file mode 100644 index 0000000..5e85807 --- /dev/null +++ b/yarn.lock @@ -0,0 +1,7 @@ +# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. +# yarn lockfile v1 + + +flow-bin@0.61.0: + version "0.61.0" + resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.61.0.tgz#d0473a8c35dbbf4de573823f4932124397d32d35"