react-native-tc-conversations-test-web-2
v0.4.23
Published
## Getting started
Downloads
3
Readme
tc-conversations
Getting started
When developing/testing this module locally you will need to use the comms-dealer app. In the future we will create the ability to test directly from this repo.
Steps For Testing Locally
- Open the comms app and run it.
- In this repo, run the command
npm run test-locally
. This will start up a script that watches for changes and will automatically apply them to comms.
Building
There is a script under /build/buildAndPublish.sh that will copy files accordingly into /staging
folder and even auto increment and publish to npm.
Depending if the first parameter web
was passed to the script, it will either remove the .web.tsx extentions of certain files or rename them to drop the .web, thus replacing the original file.
If a second parameter major | minor | patch
is patched, it will also call npm version {parameter}
and npm publish
afterwards to automatically publish a release. Remember to also update /build/package.native.json
and build/package.web.json
to reflect this latester version number.
To build:
- Run
npm run prep
for native,npm run prep web
for web bundling - This will copy files into the
staging
folder and runnpm run build
against it
To publish/release:
- Ensure you are logged into npm via
npm login
- ask the team for the credentials. - Ensure the npm versions in package.native.json and package.web.json is set to the current released version.
- Run
npm run publishWeb {parameter}
ornpm run publishNative {parameter}
where parameter is as described above to increment the version number and publish to npm, ie.npm run publishWeb patch