Socket
Book a DemoInstallSign in
Socket

@itkyk/aws-s3-sync

Package Overview
Dependencies
Maintainers
0
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@itkyk/aws-s3-sync

2.0.0-alpha-2
latest
npmnpm
Version published
Weekly downloads
0
-100%
Maintainers
0
Weekly downloads
 
Created
Source

@itkyk/aws-s3-sync

install

$ npm i -D @itkyk/aws-s3-sync

Introduce

  • Add init command to script in package.json.
{
  "script": {
    "init": "sync --init"
  }
}
  • Execute init command.
    This command makes s3.config.ts in root.
$ npm run init
  • Open s3.config.ts, then write AWS/S3 settings.

  • Add deploy command to script in package.json
    The location of "preview" will be the name you changed from template earlier.

{
  "script": {
      "deploy": "sync --deploy example"
  }
}
  • If execute npm run deploy, sync s3 bucket.

setting options

keydescriptiondefault
configureAWS.S3ClientConfig & AWS.CloudFrontClientConfig settings.
localTargetDir name of traget local files.
bucketNameName of Target Bucket.
includesGlob pattern of localTarget./**/*
excludesGlob pattern of excludes pattern.
maxAsyncS330
syncDelete file when syncing.false
forceUpload all files without checking remote files.false
exactTimestampsWhen syncing, also check the TimeStamp.false
outputLogLog file settings.(boolean OR {outDir: string, filename?: string})false
outputLog.outDirOutput log file directory../s3
outputLog.filenameOutput log filename.log-[yy-mm-dd-hh-mm-ss].json
clearCache.distributionIdTarget CloudFront distoributionId.
clearCache.pathsdistoribution paths.string[]

Keywords

aws

FAQs

Package last updated on 29 Nov 2024

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.