Skip to content

Commit

Permalink
(feat) Billing App (#62)
Browse files Browse the repository at this point in the history
  • Loading branch information
donaldkibet authored Nov 28, 2023
1 parent 9720f3f commit d829290
Show file tree
Hide file tree
Showing 11 changed files with 114 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/esm-billing-app/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
![Node.js CI](https://github.com/palladiumkenya/kenyaemr-esm-3.x/workflows/Node.js%20CI/badge.svg)

# ESM Billing App


53 changes: 53 additions & 0 deletions packages/esm-billing-app/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
{
"name": "@kenyaemr/esm-billing-app",
"version": "5.1.0",
"description": "Billing app for KenyaEMR",
"browser": "dist/kenyaemr-esm-billing-app.js",
"main": "src/index.ts",
"source": true,
"license": "MPL-2.0",
"homepage": "https://github.com/palladiumkenya/kenyaemr-esm-core#readme",
"scripts": {
"start": "openmrs develop",
"serve": "webpack serve --mode=development",
"debug": "npm run serve",
"build": "webpack --mode production",
"analyze": "webpack --mode=production --env.analyze=true",
"lint": "eslint src --ext ts,tsx",
"typescript": "tsc",
"extract-translations": "i18next 'src/**/*.component.tsx'"
},
"browserslist": [
"extends browserslist-config-openmrs"
],
"keywords": [
"openmrs"
],
"publishConfig": {
"access": "public"
},
"repository": {
"type": "git",
"url": "git+https://github.com/palladiumkenya/kenyaemr-esm-core#readme"
},
"bugs": {
"url": "https://github.com/palladiumkenya/kenyaemr-esm-core/issues"
},
"dependencies": {
"@carbon/react": "^1.12.0",
"lodash-es": "^4.17.15",
"react-to-print": "^2.14.13"
},
"peerDependencies": {
"@openmrs/esm-framework": "5.x",
"@openmrs/esm-patient-common-lib": "5.x",
"react": "^18.1.0",
"react-i18next": "11.x",
"react-router-dom": "6.x",
"swr": "2.x"
},
"devDependencies": {
"@openmrs/esm-patient-common-lib": "next",
"webpack": "^5.74.0"
}
}
5 changes: 5 additions & 0 deletions packages/esm-billing-app/src/config-schema.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import { Type } from '@openmrs/esm-framework';

export interface BillingConfig {}

export const configSchema = {};
1 change: 1 addition & 0 deletions packages/esm-billing-app/src/dashboard.meta.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export const dashboardMeta = {};
2 changes: 2 additions & 0 deletions packages/esm-billing-app/src/declarations.d.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
declare module '*.css';
declare module '*.scss';
12 changes: 12 additions & 0 deletions packages/esm-billing-app/src/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import { getAsyncLifecycle, defineConfigSchema, registerBreadcrumbs, getSyncLifecycle } from '@openmrs/esm-framework';
import { configSchema } from './config-schema';
import { dashboardMeta } from './dashboard.meta';
import { createDashboardLink, registerWorkspace } from '@openmrs/esm-patient-common-lib';

const moduleName = '@kenyaemr/esm-billing-app';
export const importTranslation = require.context('../translations', false, /.json$/, 'lazy');

export function startupApp() {
registerBreadcrumbs([]);
defineConfigSchema(moduleName, configSchema);
}
10 changes: 10 additions & 0 deletions packages/esm-billing-app/src/routes.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"$schema": "https://json.openmrs.org/routes.schema.json",
"backendDependencies": {
"kenyaemr": "^18.2.0"
},
"pages": [],
"extensions": [

]
}
1 change: 1 addition & 0 deletions packages/esm-billing-app/translations/en.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
5 changes: 5 additions & 0 deletions packages/esm-billing-app/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"extends": "../../tsconfig.json",
"include": ["src/**/*"],
"exclude": ["src/**/*.test.tsx", "src/**/*.outdated.tsx"]
}
1 change: 1 addition & 0 deletions packages/esm-billing-app/webpack.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = require('openmrs/default-webpack-config');
19 changes: 19 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2944,6 +2944,25 @@ __metadata:
languageName: unknown
linkType: soft

"@kenyaemr/esm-billing-app@workspace:packages/esm-billing-app":
version: 0.0.0-use.local
resolution: "@kenyaemr/esm-billing-app@workspace:packages/esm-billing-app"
dependencies:
"@carbon/react": "npm:^1.12.0"
"@openmrs/esm-patient-common-lib": "npm:next"
lodash-es: "npm:^4.17.15"
react-to-print: "npm:^2.14.13"
webpack: "npm:^5.74.0"
peerDependencies:
"@openmrs/esm-framework": 5.x
"@openmrs/esm-patient-common-lib": 5.x
react: ^18.1.0
react-i18next: 11.x
react-router-dom: 6.x
swr: 2.x
languageName: unknown
linkType: soft

"@kenyaemr/esm-care-panel-app@workspace:packages/esm-care-panel-app":
version: 0.0.0-use.local
resolution: "@kenyaemr/esm-care-panel-app@workspace:packages/esm-care-panel-app"
Expand Down

0 comments on commit d829290

Please sign in to comment.