@superhuman/shared

v0.0.15

Published

Shared library for Superhuman

Downloads

1

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 the shared.js file
  • go to ios/Superhuman/SuperhumanLib/ and run yarn build
  • copy shared/build/shared.js into ios/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 from ios/Superhuman/SuperhumanLib/
  • run the tests from Xcode:
    • open the ios project
    • Select Product>Test

Backend

See https://github.com/superhuman/backend/tree/master/lib/js