Skip to content

Latest commit

 

History

History
82 lines (51 loc) · 1.67 KB

README.md

File metadata and controls

82 lines (51 loc) · 1.67 KB

Streamline

Luko Design System using react-native for iOS and Android

Sandbox

The objective of the sandbox project is to showcase all the components available from the Streamline library.

To start the sandbox expo project, run the following command

yarn sandbox start

Running Tests

To run tests, run the following command

  yarn test

Visual regression with Maestro

Maestro installation requirement

  • Run iPhone 12 simulator or Pixel 5 API 33 emulator

  • Start expo

yarn sandbox start:e2e
  • re-generate screenshots with maestro
yarn sandbox test:visual:[ios|android]
  • Compare screenshots with reg-cli
yarn sandbox test:visual:[ios|android]:compare

📺 All good with your new screenshots? Then move them from e2e/android/tempScreenshots to e2e/android/screenshots

Generate icons

yarn generate:icons:regular
yarn generate:icons:small

Build & release the library

We are using react-native-builder-bob to build the library and release-it to publish it on NPM.

With github action

To build & publish the library, you can execute the Release & Publish to NPM workflow. It will automatically:

  • Bump version (in package.json)
  • Git commit, tag, push
  • Create release on Github
  • Publish to npm

Manually

yarn && yarn prepare && yarn release

License

MIT


Made with create-react-native-library