Coder Social home page Coder Social logo

Comments (7)

Meir017 avatar Meir017 commented on June 7, 2024

@deskoh is your goal to serve the tgz files using a simple static server?
I first started this project to work together with https://github.com/verdaccio/verdaccio

from node-tgz-downloader.

deskoh avatar deskoh commented on June 7, 2024

Oh yes! I'm currently using verdaccio in an airgap environment currently as a portable registry to proxy to another internal airgap Artifactory. It certainly brought about much convenience! (It's portable cos we might need to move to a different site)

The intent is to allow developers to self-service to bring in packages. package-bundle works great to bring in packages for Artifactory but when we need specific versions in package-lock.json, that workflow doesn't work anymore.

Any advice?

from node-tgz-downloader.

deskoh avatar deskoh commented on June 7, 2024

To add on, verdaccio also requires '-' in the directory structure. Other than the lack of CLI, to import into Artifactory would mean that I need some scripts to move each tgz file into - directory.

from node-tgz-downloader.

Meir017 avatar Meir017 commented on June 7, 2024

@deskoh all you need to do is iterate over all of the downloaded .tgz files and npm publish then to your verdaccio server
it will keep the original shasum and all of the original values.

you might need to enable the https://docs.npmjs.com/cli/v7/using-npm/config#ignore-scripts flag

from node-tgz-downloader.

Meir017 avatar Meir017 commented on June 7, 2024

@deskoh some packages might need special handling, for example the node-sass module tries to download artifacts from github releases.
I created https://github.com/meir017/node-sass-downloader/ to help with that

from node-tgz-downloader.

deskoh avatar deskoh commented on June 7, 2024

@deskoh all you need to do is iterate over all of the downloaded .tgz files and npm publish then to your verdaccio server
it will keep the original shasum and all of the original values.

you might need to enable the https://docs.npmjs.com/cli/v7/using-npm/config#ignore-scripts flag

Learnt something new. Currently package-bundle outputs a single tgz file for potentially 100's of packages that our developers can just drag and drop in Artifactory UI to upload.
Trying my luck to strive for a workflow with better developer experience for my fellow devs =)

from node-tgz-downloader.

deskoh avatar deskoh commented on June 7, 2024

@deskoh some packages might need special handling, for example the node-sass module tries to download artifacts from github releases.
I created https://github.com/meir017/node-sass-downloader/ to help with that

Awesome. This would be useful too! Currently we are downloading it manually based on arch and version required to manually mirror them. Other packages we encountered with such requirements are electron, cypress...

from node-tgz-downloader.

Related Issues (10)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.