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

emagiz-tag-filter

v1.1.3

Published

eMagiz right panel

Downloads

5

Readme

Component to create tag filter component for eMagiz Widget based on html/css framework.


STRUCTURE

This widget has structure as follows:

  1. src/ : source code folder where index.tsx is the main file of the widget

  2. dist/ : after compiled, all the distribution files will places here. Make user main attribute in package.json points to dist/index.js

  3. test/ : test folder. The component will be imported in this test project so we can test it before published. This already has everything setup correctly.

  • 2.1 MxReactWidget: a react component to import the tested component. This component will be build to Mendix Widget.
  • 2.2 test/: Mendix Project use the MxReactWidget so it tests the component.
  1. tsconfig.json: typescript configuration
  2. webpack.config.js: webpack configuration

HOW TO USE

I. In the main folder

  1. Install all dependencies
npm install
  1. Compile the component
npm run build

After this step, webpack will build the component and put in dist/ and also copy this folter to test/node_modules/emagiz-tag-filter/ so the test project could use it right away.

After each change, we have to run this command again (we could set up some webpack's watch to do this automatically)

  1. Publish in npm
npm version patch
or
npm version major

npm publish

Note: Make sure you have account and granted access to the repo.

II. In test/ folder

  1. Import the component from npm respository

npm install emagiz-tag-filter -D
  1. Run gulp
gulp
  1. Open Mendix project and run

To sum up, if you change the component

  • npm run build: to compile and copy the latest version to test project
  • the change will be update in MxReactWidget
  • make a change in MxReactWidget so guld can build new version of the widget
  • refresh the browser to see the result.

3. When to publish the component

Only publish when tested fully in the test project which has similar enviroment as main eMagiz project. Increate the version correctly.