@nrk/ps-static-file-uploader

Publish static files to Azure blob store

Usage no npm install needed!

<script type="module">
  import nrkPsStaticFileUploader from 'https://cdn.skypack.dev/@nrk/ps-static-file-uploader';
</script>

README

static-file-uploader

install size npm version

⚠️ This is an internal tool used by the TV web team @ NRK
The package is public only for ease of use with npx in CI
settings so we dont have to provide npx --userconfig <.npmrc>

Simple NodeJS cli tool for uploading static files in a directory to Azure Blob storage

Usage

Typical use case for node apps in the PS.Web repo, use npx in npm script and be explicit about the version (@1.0.x)

{
  "scripts": {
    "deploy": "npx @nrk/ps-static-file-uploader@1.0.x --uploadDirPath=<path to local dir> --remoteFolderName=<Folder name in Azure Blob storage>"
  }
}

The connection string to the Azure Blob storage is read from env['BLOB_CONNECTION_STRING']. The url to the Azure Blob storage is read from env['BLOB_STORE_URL'],

Set deployFeatureBranch to true to deploy other branches than master

Display help

> npx @nrk/ps-static-file-uploader -h