Socket
Socket
Sign inDemoInstall

react-npm-package-template

Package Overview
Dependencies
8
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    react-npm-package-template

The template that will help you quickly start developing your NPM package for React


Version published
Weekly downloads
1
Maintainers
1
Created
Weekly downloads
 

Readme

Source

react-npm-package-template

npm version Build Coverage Status Downloads license

Table of contents

How to install

You can use this project like template. To do this, you need press button "Use this template".

Or clone repository and go to the project folder.

git clone https://github.com/awibox/react-redux-app-boilerplate.git ProjectName
cd ProjectName

Then you should install required dependencies.

yarn install

Initializing the package

The first step is to initialize your package. You should execute following command:

npm init

And fill in the required fields (package name, version, license). You can correct the other fields manually in the package.json.

Rename a component

The next step is to replace the YourComponentName in the entire project with the one you need.

Build of the package

After writing the code you need to build the package with the following command:

yarn  build

Publishing a package

To publish a package, run the command:

npm publish

If you are not logged in to npm you should run the command before publishing:

npm login

Travis CI

You need to register on the Travis CI and connect the repository.

Coveralls

You need to register on the Coveralls and connect the repository.

Badges in the README.md

For badges to work you need to change the repository name in the link and image paths.

Keywords

FAQs

Last updated on 24 Jan 2020

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc