Skip to content

Instantly share code, notes, and snippets.

@voidnerd
Created June 26, 2022 08:50
Show Gist options
  • Save voidnerd/c5ca705505efdb8c93454f78e5f69188 to your computer and use it in GitHub Desktop.
Save voidnerd/c5ca705505efdb8c93454f78e5f69188 to your computer and use it in GitHub Desktop.
Buildspec for typescript project on AWS CodeBuild
version: 0.2
phases:
install:
runtime-versions:
nodejs: 14.x
commands:
- npm install -g typescript
- npm install
pre_build:
commands:
- echo Nothing to do in the pre_build phase...
build:
commands:
- echo Build started on `date`
- npm run build
post_build:
commands:
- echo Build completed on `date`
cache:
paths:
- "node_modules/**/*"
artifacts:
files:
- "**/*"
base-directory: build
name: fileName-$(date +%Y-%m-%d)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment