Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

122
Vistas
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 Respuestas
Responde la pregunta

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 Denunciar

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 Denunciar

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 Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda