@rothzerg/nx-s3-remote-cache

1.0.2 • Public • Published

@rothzerg/nx-s3-remote-cache

npm (scoped) npm bundle size (minified)

Install

$ npm install --save-dev @rothzerg/nx-s3-remote-cache

NxS3RemoteCache

Add your AWS Credentials into your .env file

AWS_REGION=XXXXX
AWS_ACCESS_KEY_ID=XXXXXXXXXXXXXX
AWS_SECRET_ACCESS_KEY=XXXXXXXXXXXXXX

Add tasksRunnerOptions in your nx.json file

{
    "projects": {
        ...
    },
    "tasksRunnerOptions": {
        "default": {
            "runner": "@rothzerg/nx-s3-remote-cache",
            "options": {
                "profile": "default",
                "region": "us-east-1",
                "bucketName": "NAME-OF-YOUR-STORAGE-BUCKET",
                "FolderName": "NAME-OF-YOUR-STORAGE-FOLDER-IN-THE-BUCKET",
                "cacheableOperations": ["build", "test", "e2e", "lint", "package", "prepare"]
            }
        }
    }
}

run a build and see if files end up in your cache storage bucket:

nx run-many --target=build --all

Readme

Keywords

none

Package Sidebar

Install

npm i @rothzerg/nx-s3-remote-cache

Weekly Downloads

3

Version

1.0.2

License

MIT

Unpacked Size

15.6 kB

Total Files

10

Last publish

Collaborators

  • rothzerg