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

@iamproperty/components

v5.6.1-beta8

Published

Component library for iamproperty

Downloads

3,997

Readme

Getting started

Using the component library or assets

Install

npm install @iamproperty/components --save

Usage

Static assets

The assets folder can be used independently from the Vue components so that they can be used with other frameworks. With the compiled files available to use out of the box alongside the source files that can be configured.

<link href="./node_modules/@iamproperty/components/assets/css/style.min.css" as="style" />
<script src="./node_modules/@iamproperty/components/assets/js/scripts.bundle.min.js"></script>
Sass files
@import './node_modules/@iamproperty/components/assets/sass/_func.scss';
@import './node_modules/@iamproperty/components/assets/sass/_corefiles_.scss';
JS modules
import navbar from @iamproperty/components/assets/js/modules/navbar.js

Vue application

import '@iamproperty/components/assets/css/core.min.css'
import '@iamproperty/components/dist/style.css'

import * as iamkey from '@iamproperty/components'
for (const [key, value] of Object.entries(iamkey)) {
  Vue.component(key, value)
}

Components then can be used as described in the design system documentation.

<Header title="Page title" image="../../assets/image.jpeg"><p>Page description</p></Header>

Contributing to iam key

Create code branch

Firstly the clone the repo from GitHub and create a new branch from the develop branch using the agreed naming convention (FEG-99/feature/task-title).

Commands

Install node packages

npm install --force

Development local web server

Setup a local web server to run the documentation site this will allow you to modify the code and check it.

npm run dev 

OR

npm run watch

The second command will run dev but will also watch for sass and typescript files being changed which would then update the CSS and JavaScript files.

Run unit tests

Unit tests should be ran after changing any code to make sure it has no unwanted side effects.

npm run test

This command is ran when a PR is created to give the reviewer confidence that their hasn't been any unforeseen side effects

Run visual regression test

This command should be ran while the local web server is still running. The localURL variable in package.json file needs to match the local web server.

npm run visual

The visual regression tests may differ greatly if the tests are running on a windows when the the snapshots where created on Mac.

Prepare for pull request

This command should be ran while the local web server is still running. The localURL variable in package.json file needs to match the local web server.

Before creating a pull request we want to make sure assets get re-compiled and audited so that we can keep an eye on file sizes. We also want to recreate visual regression snapshots. This will create a number of files that will be added to the pull request to help the reviewers make judgement on the changes.

npm run pull-request

Create Pull request into develop

You will not have the ability to commit changes directly to the main or develop branches and a pull request will have to be created. This pull request should follow the format dictated in the .github/pull_request_template.md file. The pull reguest should always be into develop unless you are doing a hotfix in a release branch. At least one approver is needed but for more complex bits of work more can be added. The pull request will run the unit tests and create a test environment in netlify for the reviewer to help complete the review. Once the pull request is closed the netlify development environment will get updated.

https://iamproperty-dev.netlify.app/

Create release

The creation of an npm package is done through GitHub actions when a GitHub release is created. Releases can be made from any branch but it should come from the master branch. npm registry package.

Update the documentation site

To update the documentation site you need to create a pull request from develop or a release branch into master. Once the PR is approved an automatic build and deploy process using GitHub actions will be created.

https://iamproperty.github.io/