/package-boilerplate

Creates React component and publish it on npm.

Primary LanguageJavaScriptMIT LicenseMIT

react-package-boilerplate

Change following details in package.json

{
  "name": "package name",
  "version": "package version",
  "description": "Package description",
  "main": "dist/index.js",
  "repository": {
    "type": "git",
    "url": "git+https://github.com/miteshtagadiya/package-boilerplate.git"//your package git url
  },
  "keywords": [
    "boilerplate",
    "code",
    "for",
    "package"
  ],
  "author": "Author name",
  "license": "Licence",//MIT or ISC etc.
  "bugs": {
    "url": "https://github.com/miteshtagadiya/package-boilerplate/issues" //Your package git issue url
  },
  "homepage": "https://github.com/miteshtagadiya/package-boilerplate#readme" //Your package git url
}

npm install

npm login

npm run transpile

npm i gh-pages -D // creates github pages for demo

npm run build

npm run deploy

npm run publish-demo