generated from openmrs/openmrs-esm-template-app
-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #26 from METS-Programme/packaging
Packaging
- Loading branch information
Showing
117 changed files
with
7,720 additions
and
2,215 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
src/**/*.test.tsx | ||
**/*.d.tsx | ||
src/**/*.spec.tsx | ||
**/*.d.tsx | ||
**/node_modules/**/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,33 @@ | ||
{ | ||
"parser": "@typescript-eslint/parser", | ||
"extends": ["ts-react-important-stuff", "plugin:prettier/recommended"] | ||
"plugins": [ | ||
"@typescript-eslint" | ||
], | ||
"extends": ["ts-react-important-stuff", "plugin:prettier/recommended"], | ||
"rules": { | ||
"no-restricted-imports": [ | ||
"error", | ||
{ | ||
"paths": [ | ||
{ | ||
"name": "lodash", | ||
"message": "Import specific methods from `lodash`. e.g. `import map from 'lodash/map'`" | ||
}, | ||
{ | ||
"name": "lodash-es", | ||
"importNames": ["default"], | ||
"message": "Import specific methods from `lodash-es`. e.g. `import { map } from 'lodash-es'`" | ||
}, | ||
{ | ||
"name": "carbon-components-react", | ||
"message": "Import from `@carbon/react` directly. e.g. `import { Toggle } from '@carbon/react'`" | ||
}, | ||
{ | ||
"name": "@carbon/icons-react", | ||
"message": "Import from `@carbon/react/icons`. e.g. `import { ChevronUp } from '@carbon/react/icons'`" | ||
} | ||
] | ||
} | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
export const mockPatient = { | ||
resourceType: 'Patient', | ||
id: '8673ee4f-e2ab-4077-ba55-4980f408773e', | ||
extension: [ | ||
{ | ||
url: 'http://fhir-es.transcendinsights.com/stu3/StructureDefinition/resource-date-created', | ||
valueDateTime: '2017-01-18T09:42:40+00:00', | ||
}, | ||
{ | ||
url: 'https://purl.org/elab/fhir/StructureDefinition/Creator-crew-version1', | ||
valueString: 'daemon', | ||
}, | ||
], | ||
identifier: [ | ||
{ | ||
id: '1f0ad7a1-430f-4397-b571-59ea654a52db', | ||
use: 'secondary', | ||
system: 'Old Identification Number', | ||
value: '100732HE', | ||
}, | ||
{ | ||
id: '1f0ad7a1-430f-4397-b571-59ea654a52db', | ||
use: 'usual', | ||
system: 'OpenMRS ID', | ||
value: '100GEJ', | ||
}, | ||
], | ||
active: true, | ||
name: [ | ||
{ | ||
id: 'efdb246f-4142-4c12-a27a-9be60b9592e9', | ||
use: 'usual', | ||
family: 'Wilson', | ||
given: ['John'], | ||
}, | ||
], | ||
gender: 'male', | ||
birthDate: '1972-04-04', | ||
deceasedBoolean: false, | ||
address: [], | ||
}; | ||
|
||
export const mockPatientWithLongName = { | ||
...mockPatient, | ||
name: [ | ||
{ | ||
id: 'efdb246f-4142-4c12-a27a-9be60b9592e9', | ||
use: 'usual', | ||
family: 'family name', | ||
given: ['Some very long given name'], | ||
}, | ||
], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"packages": [ | ||
"packages/*" | ||
], | ||
"npmClient": "yarn", | ||
"useWorkspaces": true, | ||
"version": "1.0.0", | ||
"command": { | ||
"publish": { | ||
"verifyAccess": false | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
|
||
# esm-family-health-app | ||
|
||
This microfrontend provides the baseline for a family health clinic based on paper workflows collected from various health centres in Uganda. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
{ | ||
"name": "@ugandaemr/esm-family-health-app", | ||
"version": "1.0.0", | ||
"license": "MPL-2.0", | ||
"description": "Family health microfrontend for UgandaEMR", | ||
"browser": "dist/esm-family-health-app.js", | ||
"main": "src/index.ts", | ||
"source": true, | ||
"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 tsx,ts --fix --max-warnings=0", | ||
"typescript": "tsc", | ||
"extract-translations": "i18next 'src/**/*.component.tsx' --config ../../tools/i18next-parser.config.js" | ||
}, | ||
"browserslist": [ | ||
"extends browserslist-config-openmrs" | ||
], | ||
"keywords": [ | ||
"openmrs", | ||
"microfrontends", | ||
"ugandaEMR", | ||
"family health" | ||
], | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/METS-Programme/esm-ugandaemr-core.git" | ||
}, | ||
"homepage": "https://github.com/METS-Programme/esm-ugandaemr-core#readme", | ||
"publishConfig": { | ||
"access": "public" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/METS-Programme/esm-ugandaemr-core/issues" | ||
}, | ||
"dependencies": { | ||
"@carbon/react": "^1.14.0", | ||
"lodash-es": "^4.17.15" | ||
}, | ||
"peerDependencies": { | ||
"@openmrs/esm-framework": "4.x", | ||
"react": "18.x", | ||
"react-i18next": "11.x" | ||
}, | ||
"devDependencies": { | ||
"webpack": "^5.74.0" | ||
} | ||
} |
Oops, something went wrong.