How to use a repository like Package?

Asked

Viewed 24 times

-1

I started a project with create-React-library and made several customizable components with TS. A kind of Material UI. But this project cannot be public access. I previously wanted to post on npm, I thought I would have some way to ask for a password to install the package, but NPM charges for this, both to post and to have access.

I wanted to know how I can download this project from a repository with password (bit Bucket) and use as a package importing things from it.

I saw that you have to specify dist and configure package.json with "name", "Repository (type and url)", Include script prepare etc. But I’m not sure what to do.

1 answer

0

To leave your particular repository Github has this option, which you choose to leave public or private and can add as many people as you can see and participate in creating the project. NPM is a javascript package manager and package.json is generated automatically for any operation where npm modifies the Node modules tree or package.

here’s a link to how npm and package.json work https://www.digitalocean.com/community/tutorials/how-to-use-node-js-modules-with-npm-and-package-json-pt

about the Act it was made with purpose for componentization, being able to import and reuse in any part of the project .

https://pt-br.reactjs.org/
In the documentation you will be able to see various ways to work with React

Browser other questions tagged

You are not signed in. Login or sign up in order to post.