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

mekari-ui-vue

v1.2.4

Published

--- General web components in Mekari. The components are made using vue.js as its framework. Styling of components on Mekari UI Vue uses [Mekari UI Toolkit](https://bitbucket.org/mid-kelola-indonesia/mekari-ui-toolkit/src/master/). Don't forget to import

Downloads

257

Readme

Mekari UI Vue


General web components in Mekari. The components are made using vue.js as its framework. Styling of components on Mekari UI Vue uses Mekari UI Toolkit. Don't forget to import the styling from Mekari UI Toolkit on your application first before using components from Mekari UI Vue.

Prerequisite


  • Node (Recommended to use >= v10.0.0)
  • Yarn (Recommended to use >= v1.22.0)

Setup


Before running the setup, make sure to fulfill the prerequisite above. After that, the repo needed to be cloned, and then run the initial setup script. Here is the snippet:

git clone [email protected]:mid-kelola-indonesia/mekari-ui-vue.git
cd mekari-ui-vue
yarn

Storybook


Mekari UI Vue uses Storybook to see a preview of the components and its documentation. The preview of component can be updated dynamically using option provided from control panel.

Run Storybook

The storybook needed to be run first in order to be able to see the preview the components on Mekari UI Vue. By default, the storybook will be run on http://localhost:6006. Here is the snippet to run storybook on Mekari UI Vue:

yarn storybook

Build Storybook

In some case, you need the static version of storybook so you can embed it on some other pages. This can be done using build-storybook command from storybook. The built code by default will be located in /build directory. Here is the snippet to build storybook:

yarn build-storybook

Development


Sometimes, the Mekari UI Vue and Mekari UI Toolkit developed at same time. Because of that, sometimes the package version of Mekari UI Toolkit used in Mekari UI Vue on storybook from npmjs will not be the same with the current Mekari UI Toolkit that is still in development. To handle this, you can use the source of Mekari UI Toolkit to use from local machine like this:

//package.json

.
.
.
"dependencies": {
  "mekari-ui-toolkit": "file:/location/to/mekari-ui-toolkit",
  .
  .
  .
},
.
.
.

After that, make sure mekari-ui-toolkit on node_modules is using the right version. You can check it on yarn.lock. It will look like this:

//yarn.lock

.
.
.
mekari-ui-toolkit:
  version "1.0.11" -> this version is based on version in package.json
  resolved "/location/to/mekari-ui-toolkit"
.
.
.

Or if you really want to make sure 100% your mekari-ui-tollkit is using version from your local machine, you can run these commands on your root mekari-ui-vue directory:

rm -rf ./node_modules/@mekari/mekari-ui-toolkit
rm yarn.lock
yarn

Further Reading

You can read more documentation on many how to in Mekari UI Vue here.

If you want to contribute to Mekari UI, you can read this guide.