![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
deploy-azure-cdn
Advanced tools
A package that copies files to Azure CDN. Can be used as gulp task.
A node package for uploading files to Azure Blob Storage. It is perfect for deploying compiled assets to Microsoft Azure CDN as a last step in a Continuous Integration setup.
npm install deploy-azure-cdn
See __tests__
folder for all possible scenarios.
var logger = console.log;
var files = [
{cwd: 'node_modules/deploy-azure-cdn', path: '/Users/bestander/work/opensource/gulp-deploy-azure-cdn/node_modules/deploy-azure-cdn/index.js'},
{cwd: 'node_modules/deploy-azure-cdn', path: '/Users/bestander/work/opensource/gulp-deploy-azure-cdn/node_modules/deploy-azure-cdn/LICENSE'},
{cwd: 'node_modules/deploy-azure-cdn', path: '/Users/bestander/work/opensource/gulp-deploy-azure-cdn/node_modules/deploy-azure-cdn/package.json'}
];
var opts = {
serviceOptions: ['blobstoragename', '/OwQ/MyLongSecretStringFromAzureConfigPanel'], // custom arguments to azure.createBlobService
containerName: 'test', // container name in blob
containerOptions: {publicAccessLevel: "blob"}, // container options
folder: 'deploy/source', // path within container
deleteExistingBlobs: true, // true means recursively deleting anything under folder
concurrentUploadThreads: 2, // number of concurrent uploads, choose best for your network condition
zip: true, // gzip files if they become smaller after zipping, content-encoding header will change if file is zipped
filters: [new azure.ExponentialRetryPolicyFilter()],
metadata: {cacheControl: 'public, max-age=31556926'}, // metadata for each uploaded file
testRun: false // test run - means no blobs will be actually deleted or uploaded, see log messages for details
};
deploy(opts, files, logger, function(err){
if(err) {
console.log("Error deploying", err)
}
console.log('Job\'s done!');
});
deployOptions
- azure cdn and upload configs
serviceOptions
: [] - custom arguments to azure.createBlobService, or you can use Azure SDK environment variables AZURE_STORAGE_ACCOUNT and AZURE_STORAGE_ACCESS_KEYcontainerName
: null - container name, requiredcontainerOptions
: {publicAccessLevel: "blob"} - container optionsfolder
: '', // path within container. Default is root directory of containerdeleteExistingBlobs
: true, // set it to false to skip recursive deleting blobs in folderconcurrentUploadThreads
: 10, // number of concurrent uploads, choose best for your network conditionzip
: false, // true if want to gzip the files before uploading. File will be zipped only if compressed file is smaller than originalfilters
: <azure.IFilter>[]
, // list of filters to apply to blob service.metadata
: {cacheControl: 'public, max-age=31556926'} // metadata for each uploaded filetestRun
: false, // set to true if you just want to check connectivity and see deployment logs. No blobs will be removed or uplaoded.files
: [] - array of files objects to be deployed
path
- absolute path of filecwd
- [deprecated] current working directory path. Now replaced by base
base
- (optional) the base directory in which the file is located. The relative path of file to this directory is used as the destination pathbase
and cwd
are missing, the file will be uploaded to the root of the CDN folder
.dest
- (optional) if provided, file will be uploaded to this path on CDN. (relative to the folder
). Useful for cases where you want to upload to a different path or file name.logger
- logger compatible with console.log(param1, param2...)cb
- node callbackSee plugins as repositories:
FAQs
A package that copies files to Azure CDN. Can be used as gulp task.
The npm package deploy-azure-cdn receives a total of 978 weekly downloads. As such, deploy-azure-cdn popularity was classified as not popular.
We found that deploy-azure-cdn demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.