@ixchuk/unity-api-mocks
v1.0.18
Published
Unity API Mocks
Downloads
4
Readme
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:
- Encrypt your Intellective credentials in the following format: intellective_email:password.
- Put encrypted string into your ~/.npmrc file (create if absent)
Note: .npmrc should be in the user home directory.[email protected] always-auth=true _auth=INSERT_ENCRYPTED_PASSWORD_HERE
- Run command,
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 protected] always-auth=true _auth=[YOUR_ENCRYPTED_CREDENTIALS]
Usage
Run the following command to install unity-api-mocks:
yarn add --dev @intellective/unity-api-mocks