img-component v0.0.19
PACKAGE BUILDER SETUP:
-> run "yarn install" in the builder root directory to install the required deps.
GUIDE TO WRITE REACT COMPONENTS:
-> you can write your typescript react components in the src/components folder.
-> once the component is written, import it into src/index.ts by writing:
export * from './components/<component-name>'
within the index.ts.
GUIDE TO BUNDLE THE TSX FILES INTO THEIR CORRESPONDING JS AND ITS DECLARATION D.TS:
-> run "yarn build" and the bundled files will be present in dist folder.
GUIDE TO PUBLISH THE BUNDLED COMPONENTS:
-> run "npm login" and login with your npm creds.
-> run "yarn init" to configure the project props such as name, version, author, etc.
-> IMPORTANT: set "private" as true when prompted, to publish the component privately. Failing to do this will publish the component publicly and makes it visible for everyone.
-> then run "yarn publish" to finally publish your components privately.