Skip to content

Instantly share code, notes, and snippets.

@chriskuech
Created April 2, 2020 00:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chriskuech/1ea36b472b5e19e3ae97854d3b28988d to your computer and use it in GitHub Desktop.
Save chriskuech/1ea36b472b5e19e3ae97854d3b28988d to your computer and use it in GitHub Desktop.
Invoke-InDirectory $RepoRoot {
Invoke-InContext "Build ReactJS App" {
Invoke-InContext "Validate" {
Invoke-InContext "Lint" { yarn lint }
Invoke-InContext "Test" { yarn test }
}
Invoke-InContext "Transpile" { yarn build:ts }
Invoke-InContext "Bundle" { yarn webpack }
}
Invoke-InContext "Build Container" { docker build . }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment