Created
June 26, 2022 08:50
-
-
Save voidnerd/c5ca705505efdb8c93454f78e5f69188 to your computer and use it in GitHub Desktop.
Buildspec for typescript project on AWS CodeBuild
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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