gia-cli
Version:
Guardian US Interactive CLI tool
31 lines (27 loc) • 486 B
JavaScript
/*global require */
const gia = require( '../giafile.js' );
const uploadToS3 = require( './utils/uploadToS3' );
uploadToS3([
{
files: 'v/**/*',
prefix: `atoms/${gia.path}`,
headers: {
CacheControl: 'max-age=600'
}
},
{
files: 'static/**',
prefix: `atoms/${gia.path}`,
headers: {
CacheControl: 'max-age=600'
}
},
{
files: '@(live|preview)',
prefix: `atoms/${gia.path}`,
headers: {
ContentType: 'text/plain',
CacheControl: 'max-age=5'
}
}
]);