@lmu-med/ci-components
v0.1.12
Published
React component library for shared html elements in LMU Klinikum CI.
Downloads
15
Readme
lmu-klinikum-components
React component library for shared html elements in LMU Klinikum CI.
Usage
Add to your package.json like so and include bootstrap:
npm install @lmu-med/ci-components bootstrap
JSX components available for immediate use
import { CommonNavbar } from "@lmu-med/ci-components";
<CommonNavbar />
<CommonNavbarGrey />
<CommonFooter />
<CommonCookieNotice />
<CommonSpinner />
For details on these see the wiki.
Some example implementation and available properties for the components can also be found inside App.tsx
.
Favicons
The CI components come with a set of favicons for immediate use on your project. For info on how to implement, head over to the favicon implementation guide in the wiki.
Development
In the project directory, you can run:
npm start
Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.
The page will reload if you make edits.
You will also see any lint errors in the console.
npm test
Launches the test runner in the interactive watch mode.
Building
To compile the tsx sources into jsx files with declarations into the dist/lib
folder, run
npm run build
npm run compile:jsx
Releasing
To create a new release, run either of these commands, depending on the gravity of the release:
npm version patch
npm version minor
npm version major
The version command runs the compile
script once, commits the newly created files and pushes the code and the new tag to the origin server.
Publishing
To publish a new release, login as user lmu-med-wad
with this command:
npm login
Finally, to publish the new package to NPM, run this:
npm publish
Contributing
Feel free to fork, post issues etc. to this repository.