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

d2-ui

v29.0.35

Published

d2-ui

Downloads

15,766

Readme

d2-ui

Build Status Test Coverage Code Climate npm version

UI Component library for developing DHIS2 applications. This library makes use of the d2 library for - hence the name :)

--

Get It!

Latest stable version for your dhis2 release

Use @{dhis2-release-version} to get the latest version applicable to that installation

For example, if the DHIS2 release version is 2.28, then:

yarn add d2-ui@28

Contributing

Development

The git repository is located here: d2-ui github repo

Submit your change as a pull request. Pull requests need to include:

  1. good quality unit tests
  2. relevant changes/additions to the examples
Examples

The repo includes a webpack dev server that provides a page showing most of the d2-ui components. To run these do:

yarn start

Some of the examples require a local DHIS2 instance. Most developers have their DHIS2 instance running on http://localhost:8080. If this is the case for you, then the examples should just work.

Publishing to npm

The d2-ui library is published as an npm package: https://www.npmjs.com/package/d2-ui

How to determine the new version

The d2-ui version is in the semver pattern, but the major version tracks the DHIS2 version. So, for DHIS2 version 2.28 the corresponding d2-ui version is v28.mm.pp. The reason for this is at least partly because d2-ui has a dependency on d2, which depends on the DHIS2 API version.

So we follow our own defined version conventions as follows:

Major upgrade

The major version is upgraded at the same time the next DHIS2 is released. So when DHIS2 2.29 is released, v29.0.0 of d2-ui should be published.

Minor upgrade

Minor upgrades are used during the development cycle for breaking changes that are due to client API changes, but not due to DHIS2 API (in other words, d2) breaking changes.

Patch upgrade

Patch upgrades are for bug fixes and small implementations that are not breaking changes.

Steps to publish

After your pull request with functional changes has been merged to master, switch to the master branch locally and pull to get all the latest changes. The version upgrade will be done directly on the master branch:

git checkout master
git pull

Next use yarn to upgrade the npm package version

yarn version

This is interactive and you will input the new version (remember, minor or patch during development, major only when the new DHIS2 version is released)

After you have indicated the version, yarn will do two things:

  1. update package.json and create a commmit locally
  2. create a git tag named according to the new version (e.g., v28.0.35)

Push these 2 things to the remote:

git push
git push --tags

You are done! Travis will detect the new git tag and start a deploy build that publishes the new npm version. You can follow the build on https://travis-ci.org