JavaScript AngularJS (1.x) library exposing OpenMRS API
npm install @openmrs/angularjs-openmrs-api --save
ES6: import openmrsApi from '@openmrs/angularjs-openmrs-api'
;
ES5: var openmrsApi = require('@openmrs/angularjs-openmrs-api')
;
You need to have Node 6.x installed. We recommend using nvm or nvm-windows to install Node.
Installing dependencies: npm install
(once after code checkout or when dependencies change)
Development build: npm run build:dev
Clean build: npm run clean && npm run build:dev
Running tests continously: npm run test:dev
Production build: npm run build
Release: npm version 1.0.0 && git push upstream master && git push upstream --tags
Linking is a feature of npm, which allows you to modify the library and test modifications in your project.
- Run
npm link
andnpm run build
from the lib directory. - Run
npm link @openmrs/angularjs-openmrs-api
from your project directory. - Build your project.
In order to unlink do:
- Run
npm unlink @openmrs/angularjs-openmrs-api
andnpm install
from your project directory. - Build your project.