Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

120
Views
Deploy React components to many personal projects

I hope this is a reasonable forum for this question.

I have a library of React components that I've developed that I'd like to use in multiple personal projects. When I update/improve that library I'd like it to allow me to update in all projects where it is used.

I'm using Meteor as a build tool, which will prompt me when there is an update available for a dependency it's using, so I assume it'd be an NPM module or something. It is checked in to GitHub and I don't mind if it's public.

What would be the best way to achieve this?

over 4 years ago · Santiago Trujillo
3 answers
Answer question

0

I know two ways:

  1. Publish your module on NPM
  2. Link using npm link

For the first one, your module will be public unless you pay NPM for a private module.

The second one, make your module available locally only (It is used for a development purpose, but it fits your needs).

https://docs.npmjs.com/cli/link

over 4 years ago · Santiago Trujillo Report

0

If you have your package published on GitHub, you can simply create dependency by linking to tarball/master. If your path is https://github.com/my-nick/my-package, just add to your dependencies in your project's package.json:

"my-package": "https://github.com/my-nick/my-package/tarball/master"

If you have your package well described (package.json file with name, main and version attributes) it should works after meteor npm install.

Of course it works for Meteor 1.3 and higher only, lower versions don't support npm.

over 4 years ago · Santiago Trujillo Report

0

I did not use is personally yet, but an frequently mentioned tool for this purpose is https://lernajs.io/, which is e.g. used by create-react-app.

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!