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

sprie-sdk-cra-1

v0.2.106

Published

`$ yarn build`

Downloads

9

Readme

CRA reacy component

Commands:

$ yarn build

TODO

TODO

Progress

Logs

  1. yarn -D rollup
  2. yarn add -D @babel/cli @babel/core @babel/preset-env @babel/preset-react @rollup/plugin-babel
  3. yarn add -D rollup-plugin-styles autoprefixer
  4. yarn add @babel/runtime
  5. yarn add -D @babel/plugin-transform-runtime rollup-plugin-sourcemaps
  6. yarn add -D rollup-plugin-terser
  7. touch rollup.config.js
import styles from "rollup-plugin-styles";
const autoprefixer = require('autoprefixer');
import { terser } from 'rollup-plugin-terser'
import babel from '@rollup/plugin-babel';

// the entry point for the library
const input = 'src/index.js'

// 
var MODE = [
  {
    fomart: 'cjs'
  },
  {
    fomart: 'esm'
  },
  {
    fomart: 'umd'
  }
]




var config = []


MODE.map((m) => {
    var conf = {
        input: input,
        output: {
            // then name of your package
            name: "react-awesome-buttons",
            file: `dist/index.${m.fomart}.js`,
            format: m.fomart,
            exports: "auto"
        },
        // this externelizes react to prevent rollup from compiling it
        external: ["react", /@babel\/runtime/],
        plugins: [
            // these are babel comfigurations
            babel({
                exclude: 'node_modules/**',
                plugins: ['@babel/transform-runtime'],
                babelHelpers: 'runtime'
            }),
            // this adds sourcemaps
            sourcemaps(),
            // this adds support for styles
            styles({
                postcss: {
                    plugins: [
                        autoprefixer()
                    ]
                }
            })
        ]
    }
    config.push(conf)
})

export default [
  ...config,
]
  1. touch .babelrc
{
    "presets": [
        "@babel/preset-react",
        "@babel/preset-env"
    ]
}
  1. Put react to peerDependencies
  2. create .npmignore

RefS:

  1. https://github.com/jim-junior/react-npm-library-template

Testing Points


  1. check Camera Permission first time
  2. Click on product one by one in third party web page and checked that will be add in widget stack
  3. Product stack
    • switch between products
    • Close functionality
    • Mobile close functionality ( Long Pressed will open popover)
    • Slider should work in desktop with arrow icons
    • Share Functionality - pasted that url and check that product will be visble in widget
  4. Session Storage
    • Add some product in stack
    • Refresh the page, again open the widget and product list should be same
  5. Widget Close button should close the Widget
  6. Green circle button will be open the widget popup
  7. Widget popup should be draggable in desktop only
  8. If Product stack is empty then message will be there in widget popup
  9. All icon related to the widget popup should be displayed (should not be break)
  10. Selected product should be in green color in product stack
  11. Needs to verify design as well