5.1.0 • Published 4 years ago
iqb-components v5.1.0
IqbComponents
This is a library of recurrent components in Angular-Projects of the IQB.
How to use
Install
npm install iqb-componentsComponents
This library is developed and maintained with a show case application. Every component is used, so in order to get an idea of what these components are for and how they are to be used, have a look at the source code!
Information for developers
Show Case App for Development
This contains a showcase App for developers to try out each component and also for the automated tests.
Installation and Deployment
git clone https://github.com/iqb-berlin/iqb-components.git
npm install
ng serveTesting
E2E-Tests with Protractor
ng e2eTroubleshooting
- e2e test fails because version of chrome mismatches chrome driver version
npx webdriver-manager clean
npx webdriver-manager update --versions.chrome=`chromium --product-version` # replace "chrome" with "google-chrome" if you use that
ng e2e --webdriver-update=falseUnit Tests with Karma
ng test Troubleshooting
- If no browser could be caught run
export CHROME_BIN=/usr/bin/chromium #this is an example. you have to fill CHROME_BIN according to your sysremDefault Ports
- deployment: 4207
- e2e-tests: 4208
Minimum Requirements
- node 14
- Google-Chrome or Chromium (for the tests)
How to include a new component
new component check list
- clone repository and install showcase up (see above)
- place component under
src/app/components - include component in module in
src/app/components/iqb-components.module.ts - export component from barrel file:
src/app/components/public_api.ts - make a testing card in the showcase app for your component in
src/app/showcase.component.* - write unit test in same folder like component. You can use ... to auto-generate a skeleton for the unit test
- write a e2e-test for your component in e2e/src
publish a new version of components lib
run make tag-minor (or patch or major)
or:
- change version tag both in
src/app/components/package.jsonandpackage.jsonto new {version} npm run build:libcp README.md dist/npm loginnpm publish distgit tag {version}git push# or pull requestgit push origin {version}
5.1.0
4 years ago
5.0.2
4 years ago
5.0.1
4 years ago
5.0.0
4 years ago
4.1.0
5 years ago
4.0.0
5 years ago
1.8.4
5 years ago
1.8.3
5 years ago
3.1.0
5 years ago
3.0.0
5 years ago
2.0.0
5 years ago
1.8.0
5 years ago
1.8.2
5 years ago
1.7.2
6 years ago
1.7.1
6 years ago
1.7.0
6 years ago
1.6.4
6 years ago
1.6.3
6 years ago
1.6.2
6 years ago
1.6.1
6 years ago
1.5.0
6 years ago
1.4.7
6 years ago
1.4.6
6 years ago
1.4.4
6 years ago
1.4.3
6 years ago
1.4.2
6 years ago
1.4.1
6 years ago
1.4.0
6 years ago