0.0.15 • Published 5 years ago
@superhuman/shared v0.0.15
This directory is there to hold the shared libraries between web, backend, and iOS.
Publish
- Log into npm with an account that has publish permissions (if you don't have this, create one and ask Conrad) (
npm login) - Bump the version number in
package.json - Run
npm publish
Tests
Web tests should be run with the web test suite as detailed in ../README.md
To run iOS tests against the updated library:
- start Xcode (make sure you have the latest version, ask the iOS team if you don't)
- run
yarn buildto build theshared.jsfile - go to
ios/Superhuman/SuperhumanLib/and runyarn build - copy
shared/build/shared.jsintoios/Superhuman/SuperhumanLib/node_modules/@superhuman/shared/build/shared.js
cp build/shared.js ../../ios/Superhuman/SuperhumanLib/node_modules/@superhuman/shared/build/shared.js- run
yarn buildfromios/Superhuman/SuperhumanLib/ - run the tests from Xcode:
- open the
iosproject - Select
Product>Test
- open the
Backend
See https://github.com/superhuman/backend/tree/master/lib/js