1.0.2 • Published 4 years ago
@rothzerg/nx-s3-remote-cache v1.0.2
@rothzerg/nx-s3-remote-cache
Install
$ npm install --save-dev @rothzerg/nx-s3-remote-cacheNxS3RemoteCache
Add your AWS Credentials into your .env file
AWS_REGION=XXXXX
AWS_ACCESS_KEY_ID=XXXXXXXXXXXXXX
AWS_SECRET_ACCESS_KEY=XXXXXXXXXXXXXXAdd 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