meinwien-react-components
Mein-Wien Shared Component Library. This Repo designed for providing common requirements in mein-wien frontend projects. By NPM module distrubuted following bundles:
- dist\index.js (Shared React Components)
- dist\ie-polyfill-bundle.js (Old Browser polyfills)
- dist\jquery-bootstrap-bundle.js (Included jquery, jquery-validation, jquery-ui & timePicker, bootstrap)
- dist\style.css (Shared mein-wien base styles, included bootstrap.scss)
There is also an Test Project under /test folder, you can use and expand it to testing integrity of your last modifications before publishment and binding.
The distribution also includes minimized versions and source maps of scripts. index.js is distributed in 4 different formats: CJS (default), ESM, UMD und IIFE.
This NPM Module is referenced in many frontend projects. The changes made should not cause problems in related projects. Please get approval before interface changes.
How to use
To compile your code once, run
-
npm run build
.
To update documentation file COMPONENTS.md npm
-
npm run doc
.
To compile your code once and refresh on file change, run
-
npm run start
.
To publish your package to npm, make sure you're logged in the correct account by running
-
npm login
.
Compile your package by running
npm run build
Update the package version accordingly by using
npm version [patch | minor | major]
git push
Then publish your package by running
npm publish