-
Notifications
You must be signed in to change notification settings - Fork 524
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(module): Setup CircleCI, semantic-release, and rename to @react-…
…native-community/voice (#226) BREAKING CHANGE: Module renamed to @react-native-community/voice
- Loading branch information
Showing
10 changed files
with
4,414 additions
and
637 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
version: 2.1 | ||
orbs: | ||
rn: react-native-community/[email protected] | ||
|
||
jobs: | ||
checkout_code: | ||
executor: rn/linux_js | ||
steps: | ||
- checkout | ||
- persist_to_workspace: | ||
root: . | ||
paths: . | ||
|
||
analyse_js: | ||
executor: rn/linux_js | ||
steps: | ||
- attach_workspace: | ||
at: . | ||
- rn/yarn_install | ||
- run: | ||
name: Run ESLint | ||
command: yarn lint | ||
|
||
release: | ||
executor: rn/linux_js | ||
steps: | ||
- attach_workspace: | ||
at: . | ||
- rn/yarn_install | ||
- run: | ||
name: Publish to NPM | ||
command: yarn semantic-release || true | ||
|
||
workflows: | ||
ci: | ||
jobs: | ||
- checkout_code | ||
- analyse_js: | ||
requires: | ||
- checkout_code | ||
- release: | ||
requires: | ||
- analyse_js | ||
filters: | ||
branches: | ||
only: master |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,69 +1,3 @@ | ||
{ | ||
"parser": "babel-eslint", | ||
"env": { | ||
"browser": true, | ||
"node": true, | ||
"jest": true, | ||
"es6": true, | ||
}, | ||
"plugins": [ | ||
"react", | ||
"react-native", | ||
"flowtype", | ||
"import" | ||
], | ||
"parserOptions": { | ||
"ecmaVersion": 6, | ||
"sourceType": "module", | ||
"ecmaFeatures": { | ||
"modules": true | ||
} | ||
}, | ||
"extends": [ | ||
"eslint:recommended", | ||
"plugin:react/recommended", | ||
"plugin:import/errors" | ||
], | ||
"rules": { | ||
"comma-dangle": [2, "always-multiline"], | ||
"quotes": [2, "single", { "allowTemplateLiterals": true }], | ||
"react/prop-types": 0, | ||
"no-case-declarations": 0, | ||
"react/jsx-no-bind": 0, | ||
"react/display-name": 0, | ||
"new-cap": 0, | ||
"react-native/no-unused-styles": 2, | ||
"react-native/split-platform-components": 0, | ||
"react-native/no-inline-styles": 0, | ||
"react-native/no-color-literals": 0, | ||
"no-unexpected-multiline": 0, | ||
"no-class-assign": 1, | ||
"no-console": 2, | ||
"object-curly-spacing": [1, "always"], | ||
"flowtype/define-flow-type": 1, | ||
"flowtype/use-flow-type": 1, | ||
"import/first": 2, | ||
"import/default": 0, | ||
"no-unused-vars": ["error", { "ignoreRestSiblings": true }], | ||
"import/named": 0, | ||
"import/namespace": [2, { "allowComputed": true }], | ||
"no-extra-boolean-cast": 0, | ||
"import/no-duplicates": 2, | ||
"react/no-deprecated": 0 | ||
}, | ||
"settings": { | ||
"import/resolver": { | ||
"node": { | ||
"extensions":[ | ||
".js", | ||
".android.js", | ||
".ios.js", | ||
".json" | ||
] | ||
} | ||
} | ||
}, | ||
"globals": { | ||
"__DEV__": true | ||
} | ||
} | ||
"extends": "@react-native-community" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"semi": true, | ||
"singleQuote": true, | ||
"trailingComma": "all" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,17 @@ | ||
{ | ||
"name": "react-native-voice", | ||
"name": "@react-native-community/voice", | ||
"description": "React Native Native Voice library for iOS and Android", | ||
"version": "0.3.0", | ||
"author": "Sam Wenke <[email protected]>", | ||
"homepage": "https://github.com/react-native-community/react-native-voice", | ||
"homepage": "https://github.com/react-native-community/voice", | ||
"devDependencies": { | ||
"eslint": "^5.3.0", | ||
"eslint-plugin-flowtype": "^2.50.0", | ||
"eslint-plugin-import": "^2.13.0", | ||
"eslint-plugin-react": "^7.10.0", | ||
"eslint-plugin-react-native": "^3.2.1", | ||
"pre-commit": "^1.2.2", | ||
"prettier": "^1.12.0", | ||
"@react-native-community/eslint-config": "^0.0.7", | ||
"@semantic-release/git": "^9.0.0", | ||
"eslint": "^6.8.0", | ||
"lint-staged": "^7.2.0", | ||
"babel-eslint": "^8.2.6", | ||
"react": "16.4.2", | ||
"react-native": "^0.56.0" | ||
"react-native": "^0.56.0", | ||
"semantic-release": "^17.0.4" | ||
}, | ||
"keywords": [ | ||
"android", | ||
|
@@ -25,25 +21,19 @@ | |
"voice" | ||
], | ||
"license": "MIT", | ||
"lint-staged": { | ||
"*.js": [ | ||
"yarn prettier", | ||
"eslint --fix", | ||
"git add" | ||
] | ||
}, | ||
"main": "src/index.js", | ||
"peerDependencies": { | ||
"react-native": ">=0.40.0" | ||
}, | ||
"pre-commit": "lint:staged", | ||
"repository": { | ||
"type": "git", | ||
"url": "git://github.com/react-native-community/react-native-voice.git" | ||
"url": "git://github.com/react-native-community/voice.git" | ||
}, | ||
"scripts": { | ||
"lint": "eslint src --max-warnings=0", | ||
"lint:staged": "lint-staged", | ||
"prettier": "prettier --write --single-quote true --trailing-comma all --print-width 100" | ||
"lint": "eslint src/*", | ||
"semantic-release": "semantic-release" | ||
}, | ||
"dependencies": { | ||
"invariant": "^2.2.4" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.