Comments (7)
@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.
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.
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.
@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.
@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 all you need to do is iterate over all of the downloaded
.tgz
files andnpm publish
then to your verdaccio server
it will keep the originalshasum
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 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)
- proxy HOT 1
- Create http module
- Add a configuration option for a different npm registry through command line HOT 1
- Failed to download HOT 14
- Every package is located in a different folder HOT 2
- Error download version of package HOT 1
- Download Rate Limiting HOT 1
- Not working with react-scripts
- download package.json failed
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from node-tgz-downloader.