@linked-helper/framework.build-tools.aws-artifacts

5.1.0-beta-promo-affiliate-pas-client.0 • Public • Published

@linked-helper/framework.build-tools.aws-artifacts

Upload/download package artifacts to AWS

Cli

npx aws-artifacts

Usage

Configuration

In package.json add section aws-artifacts

"aws-artifacts": {
    "credentials": {
        "accessKeyId": "AKIA...",
        "secretAccessKey": "Dw+Y..."
    },
    "region": "eu-west-1",
    "bucket": "bucket-for-tests",
    "prefix": "",
    // list files to upload/download
    "root": "",
    "files": "dist/*.zip"
}
  • credentials - AWS access credentials
  • region, bucket - target bucket
  • prefix - optional prefix path for artifacts in bucket, by default is set to packageName/packageVersion/
  • root - cwd for listed files (all relative paths for files will be preserved), by default is set to directory of package.json
  • files - files to upload

Download artifacts when package is installed as dep

Add to package.json in scripts section:

"postinstall": "npx --package=@linked-helper/framework.build-tools.aws-artifacts aws-artifacts postinstall"

Upload artifacts after building

if electron-builder is used:

"build": {
    ...
    // upload artifacts
    "afterAllArtifactBuild": "@linked-helper/framework.build-tools.aws-artifacts/dist/afterAllArtifactBuild",
    ...
}

or just exec npx aws-artifacts upload after building

to see all options: npx aws-artifacts --help

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
5.1.0-beta-promo-affiliate-pas-client.04latest

Version History

VersionDownloads (Last 7 Days)Published
5.1.0-beta-promo-affiliate-pas-client.04
5.0.1-beta-core-changes-and-typeorm-core.00
5.0.0156
3.12.00
3.12.0-esm.01
4.0.0-delete-old-pas-endpoints.00
3.5.00
3.0.50
3.0.20
3.0.00
2.2.10
2.2.00
2.0.20
2.0.00
1.0.10
0.28.00
0.27.00
0.26.30
0.26.00
0.25.00
0.24.00
0.23.00
0.22.00
0.21.10
0.21.00
0.20.00
0.19.00
0.18.00
0.17.00
0.16.00
0.15.20
0.15.00
0.14.00
0.13.00
0.12.00
0.11.01
0.10.00
0.9.10
0.9.00
0.8.00
0.7.10
0.7.00
0.0.40
0.0.30
0.0.20
0.0.10

Package Sidebar

Install

npm i @linked-helper/framework.build-tools.aws-artifacts

Weekly Downloads

119

Version

5.1.0-beta-promo-affiliate-pas-client.0

License

MIT

Unpacked Size

63.8 kB

Total Files

40

Last publish

Collaborators

  • linkedhelperllc
  • gplhorg
  • sanperrier
  • antonecma
  • vladimirmikhno
  • z1ne2wo
  • lindon0390
  • lhdevmaster
  • qlba
  • elkornacio
  • senails
  • daria.lipinskaia
  • elekchyan
  • goriunovpm
  • yuliya_gorbachevskaya
  • edlways2
  • hardcorka
  • deanar
  • dmleko
  • prestonviewer
  • almadelx
  • psychotronic
  • azarattum
  • rhymmor
  • alexkrylov
  • evilandfox
  • iamsane
  • ilya_boyko
  • dt_medicin
  • 6akcuk
  • victor-trapenok
  • volkoderov
  • bricks667
  • i-polyakov
  • acidgeneration
  • r.ease
  • nikita_shevtsov
  • verhovny
  • obv1ouslyme
  • mmotair
  • nekohub