We use artifactory to pull libraries and store artifacts. We set the npm registry to this artifactory url to pull down the libraries. We use gitlab as our CI. I've written a job that builds the angular app with ng build --prod. My question is what's the best practice for pushing the dist/ folder to artifactory?. In the next step, I will be retrieving the dist/ folder and deploying it to cloud foundry with cf push. I looked into npm install, but it says it needs a package.json. Do i create one in the dist folder? If so what do i put in there? Another option appears to be to tar the dist/ , but that also seems to require package.json. Any thoughts are much appreciated.
I tried to push the folder using artifactory's REST API and curl with --data-binary, but this supports a single file only (as expected)
curl -u $ARTIFACTORY_USER:$ARTIFACTORY_APIKEY --data-binary @$RELEASE_PACKAGE -X PUT $ARTIFACTORY_URL/artifactory/
I was expecting to be able to push the entire dist folder so i could retreive and deploy it. But, i dont know what the best practice is (if its right to push the folder or should i push a tar.gz)