@superhuman/shared
v0.0.15
Published
Shared library for Superhuman
Downloads
7
Keywords
Readme
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 build
to build theshared.js
file - go to
ios/Superhuman/SuperhumanLib/
and runyarn build
- copy
shared/build/shared.js
intoios/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 build
fromios/Superhuman/SuperhumanLib/
- run the tests from Xcode:
- open the
ios
project - Select
Product>Test
- open the
Backend
See https://github.com/superhuman/backend/tree/master/lib/js