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

wedeliver-shared-components

v1.0.3

Published

A shared UI component library for WeDeliver projects-

Downloads

2

Readme

WeDeliver Shared Components

A shared UI component library for WeDeliver projects.

Table of Contents

Installation

To install the package in a project, run:

npm install wedeliver-shared-components

Development

To develop the shared components library locally and link it to another project, follow these steps:

  1. Clone the repository:

    git clone https://github.com/WeDeliverGitHub/sharedUI.git
    cd sharedUI
  2. Install dependencies:

    npm install
  3. Build the library:

    npm run build
  4. Link the package:

    npm link
  5. Link the package in your consumer project:

    In your consumer project's directory, run:

    npm link wedeliver-shared-components
  6. Start the development server:

    npm run dev

Any changes made to the shared components library will be reflected in the consumer project after rebuilding the library and restarting the development server.

Building

To build the package for production, run:

npm run build

The built files will be in the dist directory.

Publishing

To publish the package to npm, ensure you are logged in to npm and have the correct permissions. Then run:

npm publish --access public

Ensure the version in package.json is updated according to semantic versioning before publishing.

Usage

After installing the package, you can use the shared components in your project:

import React from "react";
import { PrimeButton } from "wedeliver-shared-components";

function App() {
  return (
    <div>
      <PrimeButton label="Click me" onClick={() => alert("Button clicked!")} />
    </div>
  );
}

export default App;

Contributing

Contributions are welcome! Please follow these steps to contribute:

  1. Fork the repository.
  2. Create a new branch for your feature or bugfix.
  3. Make your changes.
  4. Commit your changes with a descriptive commit message.
  5. Push your changes to your fork.
  6. Create a pull request.

Expanding the ESLint configuration

If you are developing a production application, we recommend updating the configuration to enable type aware lint rules:

  • Configure the top-level parserOptions property like this:
export default {
  // other rules...
  parserOptions: {
    ecmaVersion: "latest",
    sourceType: "module",
    project: ["./tsconfig.json", "./tsconfig.node.json"],
    tsconfigRootDir: __dirname,
  },
};
  • Replace plugin:@typescript-eslint/recommended to plugin:@typescript-eslint/recommended-type-checked or plugin:@typescript-eslint/strict-type-checked
  • Optionally add plugin:@typescript-eslint/stylistic-type-checked
  • Install eslint-plugin-react and add plugin:react/recommended & plugin:react/jsx-runtime to the extends list