react-native-create-bridge
Advanced tools
Comparing version 1.2.2 to 2.0.0
@@ -19,3 +19,3 @@ # Contributor Guidelines | ||
5. Make the appropriate changes for the issue you are trying to address or the feature that you want to add. If you are adding a feature or changing functionality, please write tests! 👍 Tests will help your PR get merged faster. | ||
6. Test your change locally by running `npm run package:dev`. This command will build the project and create a symlink. In a test project, run `npm link react-native-create-bridge` which will link to your local copy. Then, you can run `create-bridge` to test your change. | ||
6. Test your change locally by running `npm run package:dev`. This command will build the project and create a symlink. In a test project, run `npm install --save react-native-create-bridge && npm link react-native-create-bridge` which will link to your local copy. Then, you can run `react-native new-module` to test your change. | ||
7. Confirm that tests still pass by running `npm run test`. If the tests are failing, please ask for help! | ||
@@ -22,0 +22,0 @@ 8. Add and commit the changed files using `git add` and `git commit`. We use [Conventional Changelog Standard](https://github.com/bcoe/conventional-changelog-standard/blob/master/convention.md) for our commit messages. More info on that below. |
{ | ||
"name": "react-native-create-bridge", | ||
"version": "1.2.2", | ||
"version": "2.0.0", | ||
"description": "A CLI generator that creates React Native bridges with ease!", | ||
@@ -67,3 +67,6 @@ "main": "index.js", | ||
"plugins": ["transform-runtime"] | ||
}, | ||
"rnpm": { | ||
"plugin": "./src/index.js" | ||
} | ||
} |
@@ -5,4 +5,4 @@ # react-native-create-bridge | ||
## Getting Started | ||
1. `npm install -g react-native-create-bridge` or `yarn global add react-native-create-bridge` | ||
2. From the root of your React Native project, run `create-bridge` | ||
1. `npm install --save react-native-create-bridge` or `yarn add react-native-create-bridge` | ||
2. From the root of your React Native project, run `react-native new-module` | ||
3. The prompts will ask you for: | ||
@@ -52,3 +52,3 @@ - Your bridge module name | ||
- Import your package at the top: `import com.yourapp.yourmodule.YourModulePackage` | ||
#### iOS/Obj-C | ||
@@ -73,3 +73,3 @@ - Currently, you will need to add the files manually to your project in Xcode. Right click on the folder with your app name and select `Add Files To YourApp`. Select the files associated with your module and click `Add` | ||
4. After you make changes, link your local package by running `npm run package:dev` | ||
5. You can now run `create-bridge` locally in a React Native project to test your changes | ||
5. You can now run `react-native new-module` locally in a React Native project to test your changes | ||
6. `npm run test` will run the Jest test suite | ||
@@ -91,4 +91,5 @@ | ||
| :---: | :---: | :---: | :---: | :---: | :---: | | ||
| [<img src="https://avatars0.githubusercontent.com/u/4745679?s=460&v=4" width="100px;"/><br /><sub>Jarret Moses</sub>](https://github.com/jarretmoses)<br />[💻](https://github.com/peggyrayzis/react-native-create-bridge/commits?author=jarretmoses "Code") [📖](https://github.com/peggyrayzis/react-native-create-bridge/commits?author=jarretmoses "Documentation") | | ||
<!-- ALL-CONTRIBUTORS-LIST:END --> | ||
This project follows the [all-contributors](https://github.com/kentcdodds/all-contributors) specification. Contributions of any kind welcome! | ||
This project follows the [all-contributors](https://github.com/kentcdodds/all-contributors) specification. Contributions of any kind welcome! |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
92
0
162462
44
42
2