This example demonstrates how to customize the suggestions container.
A Pen by Misha Moroshko on CodePen.
This example demonstrates how to customize the suggestions container.
A Pen by Misha Moroshko on CodePen.
| import { GetObjectCommand, S3Client } from '@aws-sdk/client-s3'; | |
| import { Readable } from 'stream'; | |
| import { logger } from 'logger'; | |
| export class S3Storage { | |
| private readonly s3Client: S3Client; | |
| constructor() { | |
| this.s3Client = new S3Client({ | |
| region: process.env.REGION!, |
| async function uploadDirectoryFilesToS3(dir) { | |
| try { | |
| console.debug('Attempting to upload files to S3') | |
| let downloadLinks = []; | |
| const pathRegex = new RegExp('(.[/]tmp[/]|.[/])Properties[/](VIC|QLD|NSW|ACT|SA|NT|WA)[/](.*)/') | |
| let folderNameResult = pathRegex.exec(dir) | |
| let path = await fs.readdirSync(dir); | |
| for (let filename of path) { |
| { | |
| "version": "0.2.0", | |
| "configurations": [ | |
| { | |
| "type": "node-terminal", | |
| "name": "Debug Current JS File (node)", | |
| "request": "launch", | |
| "command": "node -- ${fileBasenameNoExtension}", | |
| "cwd": "${fileDirname}" | |
| }, |
| # Setup Fork.dev App to utilise Volta binaries for committing | |
| echo "Linking Volta-managed binaries to /usr/local/bin with necessary permissions..." | |
| sudo sh -c 'rm -rf /usr/local/bin/node && ln -s $(volta which node) /usr/local/bin/node' | |
| sudo sh -c 'rm -rf /usr/local/bin/npm && ln -s $(volta which npm) /usr/local/bin/npm' | |
| sudo sh -c 'rm -rf /usr/local/bin/npx && ln -s $(volta which npx) /usr/local/bin/npx' | |
| sudo sh -c 'rm -rf /usr/local/bin/yarn && ln -s $(volta which yarn) /usr/local/bin/yarn' |