react-component-publish | A starter for publishing your own react | Frontend Framework library
kandi X-RAY | react-component-publish Summary
kandi X-RAY | react-component-publish Summary
A starter for publishing your own react components.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of react-component-publish
react-component-publish Key Features
react-component-publish Examples and Code Snippets
Community Discussions
Trending Discussions on react-component-publish
QUESTION
Right now, I'm working on a React component library, which I want to deliver via npm to as many people as possible. I use webpack
and babel
for packaging and processing of my code. However, being fairly new to webpack
, I don't know what the best way would be to go about packaging my library.
I'm planning to have a list of files in the src
folder that will be individual components. How do I go about packaging them for people to grab from npm? My guess is to output them individually, so that people can import whatever they need. However, I want them to work with ES5 (which I think is what babel
does with the es2015
preset which I have installed). My files are as follows:
webpack.config.js (a couple of things were removed for brevity)
...ANSWER
Answered 2017-May-29 at 19:43This is a great question and something that I agree should be covered a lot more. For your specific problem at hand:
- react-npm-boilerplate on githhub
- This article covers the idea of the github site in detail
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install react-component-publish
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page