feat: initial commit for Alexa Malayalam Calendar skill

This commit is contained in:
2026-07-20 13:20:15 +05:30
commit 04f1d7d9d1
8 changed files with 355 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
$ProjectRoot = (Resolve-Path "$PSScriptRoot\..").Path
$DistPath = Join-Path -Path $ProjectRoot -ChildPath "dist"
$ZipPath = Join-Path -Path $DistPath -ChildPath "bundle.zip"
if (Test-Path -Path $DistPath) {
Remove-Item -Path $DistPath -Recurse -Force
}
New-Item -ItemType Directory -Path $DistPath | Out-Null
Write-Host "Packaging skill into $ZipPath..." -ForegroundColor Cyan
Set-Location -Path $ProjectRoot
Compress-Archive -Path "src", "node_modules", "package.json" -DestinationPath $ZipPath -Force
Write-Host "Build complete. Bundle created at $ZipPath" -ForegroundColor Green
+27
View File
@@ -0,0 +1,27 @@
param (
[string]$FunctionName = "AlexaMalayalamCalendar"
)
$ProjectRoot = (Resolve-Path "$PSScriptRoot\..").Path
$DistPath = Join-Path -Path $ProjectRoot -ChildPath "dist"
$BuildScript = Join-Path -Path $PSScriptRoot -ChildPath "build.ps1"
$ZipPath = Join-Path -Path $DistPath -ChildPath "bundle.zip"
# 1. Run build script first to ensure dist/bundle.zip is fresh
Write-Host "Triggering build..." -ForegroundColor Cyan
powershell -ExecutionPolicy Bypass -File $BuildScript
if (-not (Test-Path -Path $ZipPath)) {
Write-Host "Build failed! $ZipPath not found." -ForegroundColor Red
exit 1
}
# 2. Upload to AWS Lambda
Write-Host "Deploying $ZipPath to AWS Lambda ($FunctionName)..." -ForegroundColor Cyan
aws lambda update-function-code `
--function-name $FunctionName `
--zip-file fileb://$ZipPath `
--no-cli-pager `
| Out-Null
Write-Host "Deployment finished successfully." -ForegroundColor Green