Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

bahmniapps-commons

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bahmniapps-commons

Common Modules carved out from bahmniapps.

  • 0.0.1-beta.0
  • latest
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

bahmniapps-commons

This repository contains extracted common modules form openmrs-module-bahmniapps.

Install

npm i bahmniapps-commons

Developer Documentation

Setup

git clone git@github.com:mddubey/bahmniapps-commons.git
cd bahmniapps-commons
npm install
npm run bundle

Above steps will generate a dist folder with a output js file for each module.

Adding a new module

Below is the strucutre of project:

|-- module-1
    |-- init.js
    |-- views
    |-- directives
    |-- filters
    |-- components
    |-- services
|-- module-2
    |-- init.js
    ....
|.......	
|-- module-n
    |-- init.js
    ....
|-- dist
|-- package.json
|-- webpack.config.json
  • All modules are present on the root of the project.
  • By convention, every module should have an init.js file. This would be maintioned in the entry for the webpack.config.js.
  • The key for the entry will be used to generate the bundled file.

Expose templates from a module

Right now there are two ways the templates are exposed from module.

  • We can expose the template as part of a directive. E.g. bahmni-patient-commons/directives/patientSummary.js defines a directive patientSummary which exposes patientSummary.html template.
  • The templates can be provided in the $templateCache directly. The applications using these should look for these templates from $templateCache using the key. The key used to put the template must be documented. E.g. ui-helper/init.js exposes common templates which are used across components.

FAQs

Package last updated on 24 Jun 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc