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

plurall-components

v0.0.26

Published

Plurall UI Framework

Downloads

16

Readme

Plurall React Componetes

How to run

Clone this repository and cd plurall-react-components

The first time you need run

yarn && yarn build

To run project

yarn bootstrap && yarn start

if yout development components or new component you nedd run this in other terminal tab

yarn start:watch

to publish in npm

export NPM_TOKEN=token-do-plurall-dev
yarn deploy

open localhost:6006/

Using components locally

To test a component locally in an external application, uninstall the component and reinstall it pointing to the location on your machine where the component source code is located.

For exemple, if you cloned the repository inside a folder called projects and want to test locally the Header component, run

npm uninstall plurall-header
npm install --save ~/projects/plurall-react-components/packages/plurall-component-header

Your package.json will be updated, and will now fetch the component from your local disk, instead of a remote repository:

"plurall-header": "file:../plurall-react-components/packages/plurall-component-header"

Create a new component

  • Create a new folder in /packages/ with this format plurall-component-nomeComponent
  • run npm init for create a new component - Follow the steps to create or look at the button, for example.
  • Create a src folder inside
  • Crate a index.js
    • For example:
        import YourComponetName from './YourComponetName';
    
        export {
            YourComponetName,
        };
  • Create a YourComponetName.js
    • For Example
    import React from 'react'
    import PropTypes from 'prop-types'
    
    class YourComponetName extends React.Component {
        render() {
        const { children } = this.props;
        return (
          <div>
            {children}
            <style jsx>{`
                div { color: red }
            `}</style>
          </div>
        );
      }
    }
    
    YourComponetName.propTypes = {
        children: PropTypes.node
    };
      
    export default YourComponetName
  • Now goto stories/index.js and add new component, for example:
import { MyComponent } from '../packages/plurall-component-YourComponetName/src'
storiesOf('MyComponent', module)
  .addWithInfo('Default', () => (
    <MyComponent />
  ))