npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

iqb-components

v5.1.0

Published

[![npm](https://img.shields.io/npm/v/iqb-components.svg)](https://www.npmjs.com/package/iqb-components) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](LICENSE) [![Travis (.com)](https://scm.cms.hu-berlin.de/iqb/iqb-components/badge

Downloads

9

Readme

npm License: MIT Travis (.com)

IqbComponents

This is a library of recurrent components in Angular-Projects of the IQB.

How to use

Install

npm install iqb-components

Components

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!

Try Them Out!

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 serve

Testing

E2E-Tests with Protractor
ng e2e
Troubleshooting
  • 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=false
Unit 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 sysrem

Default 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.json and package.json to new {version}
  • npm run build:lib
  • cp README.md dist/
  • npm login
  • npm publish dist
  • git tag {version}
  • git push # or pull request
  • git push origin {version}