Socket
Book a DemoInstallSign in
Socket

@nodeframe/nfs-components-box

Package Overview
Dependencies
Maintainers
4
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nodeframe/nfs-components-box

bolier plate startup for creating new react component

latest
npmnpm
Version
0.0.12
Version published
Weekly downloads
1
-66.67%
Maintainers
4
Weekly downloads
 
Created
Source

#React Component Creator Boilerplate This is the very first and simple startup project for creating the react component. If you are starting to create a react component publishing to NPM registry or want to make it reusable, this project will be helpful for you to start from this project.

Get started

|--dist
  |--index.js
  |--index.js.map
|--src
  |--index.js
  |--yourComponent.js
  |--yourComponentStyle.css
|--stories (storybook things)

The folder that you will be involved is /src.

  • Rename file component to your component name.
  • Fix the /src/index.js to import the right name that you have changed.

So now all ready. Go!!

Developing

npm run storybook

This project use storybook for developing and testing. So you can just run storybook.

When you created a new component please DON'T forget to add that component to (/src/index.js)

Build and publish

npm run build

This will build the project from entry point (/src/index.js) to /dist/index.js.

So now the project is ready for publishing. You need to set package.json to point main to file /dist/index.js.

npm version [<newversion> | major | minor | patch]
git push --tag

Support

Now this project support only css. scss is not supported in this project yet.

FAQs

Package last updated on 27 Oct 2017

Did you know?

Socket

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