@rothzerg/nx-s3-remote-cache
v1.0.2
Published
[![npm (scoped)](https://img.shields.io/npm/v/@rothzerg/nx-s3-remote-cache.svg)](https://www.npmjs.com/package/@rothzerg/nx-s3-remote-cache) [![npm bundle size (minified)](https://img.shields.io/bundlephobia/min/@rothzerg/nx-s3-remote-cache.svg)](https://
Downloads
4
Readme
@rothzerg/nx-s3-remote-cache
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