0.2.106 • Published 2 years ago

sprie-sdk-cra-1 v0.2.106

Weekly downloads
-
License
-
Repository
-
Last release
2 years ago

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
0.2.63

2 years ago

0.2.62

2 years ago

0.2.106

2 years ago

0.2.105

2 years ago

0.2.104

2 years ago

0.2.103

2 years ago

0.2.102

2 years ago

0.2.101

2 years ago

0.2.100

2 years ago

0.2.69

2 years ago

0.2.68

2 years ago

0.2.67

2 years ago

0.2.66

2 years ago

0.2.65

2 years ago

0.2.64

2 years ago

0.2.96

2 years ago

0.2.95

2 years ago

0.2.94

2 years ago

0.2.93

2 years ago

0.2.92

2 years ago

0.2.91

2 years ago

0.2.90

2 years ago

0.2.99

2 years ago

0.2.98

2 years ago

0.2.97

2 years ago

0.2.85

2 years ago

0.2.84

2 years ago

0.2.83

2 years ago

0.2.82

2 years ago

0.2.81

2 years ago

0.2.80

2 years ago

0.2.89

2 years ago

0.2.88

2 years ago

0.2.87

2 years ago

0.2.86

2 years ago

0.2.74

2 years ago

0.2.73

2 years ago

0.2.72

2 years ago

0.2.71

2 years ago

0.2.70

2 years ago

0.2.79

2 years ago

0.2.78

2 years ago

0.2.77

2 years ago

0.2.76

2 years ago

0.2.75

2 years ago

0.2.61

2 years ago

0.2.60

2 years ago

0.2.59

2 years ago

0.2.58

2 years ago

0.2.57

2 years ago

0.2.56

2 years ago

0.2.55

2 years ago

0.2.54

2 years ago

0.2.52

3 years ago

0.2.51

3 years ago

0.2.50

3 years ago

0.2.48

3 years ago

0.2.47

3 years ago

0.2.46

3 years ago

0.2.45

3 years ago

0.2.44

3 years ago

0.2.42

3 years ago

0.2.41

3 years ago

0.2.4

3 years ago

0.2.3

3 years ago

0.2.1

3 years ago

0.2.0

3 years ago

0.1.0

3 years ago