Add travis config and release to npm automatically (#97)

This commit is contained in:
Joel Arvidsson 2018-01-08 20:25:20 +01:00 committed by GitHub
parent c84f9517ca
commit 0619004744
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 55 additions and 12 deletions

View File

@ -1,6 +1,4 @@
[ignore] [ignore]
.*/KeychainExample/*
; We fork some components by platform ; We fork some components by platform
.*/*[.]android.js .*/*[.]android.js
@ -14,33 +12,45 @@
; For RN Apps installed via npm, "Libraries" folder is inside ; For RN Apps installed via npm, "Libraries" folder is inside
; "node_modules/react-native" but in the source repo it is in the root ; "node_modules/react-native" but in the source repo it is in the root
.*/Libraries/react-native/React.js .*/Libraries/react-native/React.js
.*/Libraries/react-native/ReactNative.js
; Ignore polyfills
.*/Libraries/polyfills/.*
; Ignore metro
.*/node_modules/metro/.*
[include] [include]
[libs] [libs]
node_modules/react-native/Libraries/react-native/react-native-interface.js node_modules/react-native/Libraries/react-native/react-native-interface.js
node_modules/react-native/flow node_modules/react-native/flow/
flow/ node_modules/react-native/flow-github/
[options] [options]
module.system=haste emoji=true
experimental.strict_type_args=true module.system=haste
munge_underscores=true 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.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=$FlowIssue
suppress_type=$FlowFixMe 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\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(<VERSION>\\)? *\\(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\\)*\\$FlowIssue\\((\\(<VERSION>\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)?:? #[0-9]+
suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy
suppress_comment=\\(.\\|\n\\)*\\$FlowExpectedError
unsafe.enable_getters_and_setters=true unsafe.enable_getters_and_setters=true
[version] [version]
^0.49.1 ^0.61.0

20
.travis.yml Normal file
View File

@ -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]+.*$"

View File

@ -1,4 +1,7 @@
# react-native-keychain # 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. 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 ### New 2.0.0-rc with improved android implementation

View File

@ -32,5 +32,8 @@
"type": "git", "type": "git",
"url": "git://github.com/oblador/react-native-keychain.git" "url": "git://github.com/oblador/react-native-keychain.git"
}, },
"license": "MIT" "license": "MIT",
"devDependencies": {
"flow-bin": "0.61.0"
}
} }

7
yarn.lock Normal file
View File

@ -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"