0.0.74 • Published 6 years ago

common-react-components v0.0.74

Weekly downloads
-
License
ISC
Repository
-
Last release
6 years ago

To use component

''' npm install --save react-modal-simple

import MenuIcon from 'common-react-components' import 'common-react-components/dist/MenuIcon.css'

'''

To run example demo locally

  • npm start

  • localhost:3001

To build and deply demo

  1. To build dist of demo - npm run build

  2. To deploy demo to ghpages - npm run deploy

OR

  1. npm run publish-demo (combines above steps)

To publish to npm again

  1. Increment package version

  2. npm publish

  3. npm run publish-demo

Resources

Step by step instruction to publish component to npm from scratch - https://medium.com/dailyjs/building-a-react-component-with-webpack-publish-to-npm-deploy-to-github-guide-6927f60b3220

Also, do the following -

  1. Install prop-types as dev dependency - npm install prop-types -D

  2. Install as dev dependency, to run es6. npm install babel-preset-stage-2 -D

  3. Update .babelrc config, add plugins

.babelrc { "presets": "env", "react", "plugins": "transform-object-rest-spread", "transform-class-properties", }

Note, for this repo - Cannot publish to gh-pages since repo is private. Make it public to put on gh-pages.

0.0.74

6 years ago

0.0.73

6 years ago

0.0.72

6 years ago

0.0.71

6 years ago

0.0.70

6 years ago

0.0.68

6 years ago

0.0.67

6 years ago

0.0.66

7 years ago

0.0.65

7 years ago

0.0.64

7 years ago

0.0.63

7 years ago

0.0.62

7 years ago

0.0.61

7 years ago

0.0.6

7 years ago

0.0.53

7 years ago

0.0.52

7 years ago

0.0.51

7 years ago

0.0.5

7 years ago

0.0.42

7 years ago

0.0.41

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.21

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago