1.0.18 • Published 2 years ago

@ixchuk/unity-api-mocks v1.0.18

Weekly downloads
-
License
-
Repository
-
Last release
2 years ago

Unity API Mocks

This is a collection of API mocks that simulate the Unity API.

Using the mocks allows a developer to create UI components in isolation w/o a need to deploy the Unity App.

Prerequisites

  • You’ll need to have Node >= 8.10 on your local development machine. Download and install nodejs - https://nodejs.org/en/download/

  • Install yarn: npm install -g yarn

  • Install create-react-app tool: npm -g install create-react-app

  • Setup Intellective NPM repository:

    1. Encrypt your Intellective credentials in the following format: intellective_email:password.
    2. Put encrypted string into your ~/.npmrc file (create if absent)
      email=ichukanov@intellective.com 
      always-auth=true 
      _auth=INSERT_ENCRYPTED_PASSWORD_HERE
      Note: .npmrc should be in the user home directory.
    3. Run command,

      ```bash
      npm set @intellective:registry https://npm.intellective.com/repository/npm-main/
      
      Check your .npmrc file, it should look like the following:

      @intellective:registry=https://npm.intellective.com/repository/npm-main/ email=!your-id@intellective.com always-auth=true _auth=YOUR_ENCRYPTED_CREDENTIALS

Usage

Run the following command to install unity-api-mocks: yarn add --dev @intellective/unity-api-mocks