Skip to content

Instantly share code, notes, and snippets.

@ipedrazas
Last active October 20, 2022 10:11
Show Gist options
  • Save ipedrazas/5dd7f1e9ceed6e9a68d4d94b351a398e to your computer and use it in GitHub Desktop.
Save ipedrazas/5dd7f1e9ceed6e9a68d4d94b351a398e to your computer and use it in GitHub Desktop.
Debug statements for Makefile extensions
{
"extd": {
"scope": "makefile,make",
"prefix": "extd",
"body": [
"debug: # Show Chrome-dev tools",
" docker extension dev debug $(IMAGE):$(TAG)",
"debug-reset: # Reset Chrome-dev tools",
" docker extension dev reset $(IMAGE):$(TAG)",
"debug-ui: # Set UI hot reload",
" docker extension dev ui-source $(IMAGE):$(TAG) http://localhost:3000",
"ui-run:",
" cd ui && npm start"
],
"description": "Add debug statements to extensions Makefile"
}
}
debug: # Show Chrome-dev tools
docker extension dev debug $(IMAGE):$(TAG)
debug-reset: # Reset Chrome-dev tools
docker extension dev reset $(IMAGE):$(TAG)
debug-ui: # Set UI hot reload
docker extension dev ui-source $(IMAGE):$(TAG) http://localhost:3000
ui-run:
cd ui && npm start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment