Skip to content

Instantly share code, notes, and snippets.

@eckdanny
Last active January 4, 2016 05:09
Show Gist options
  • Save eckdanny/8573601 to your computer and use it in GitHub Desktop.
Save eckdanny/8573601 to your computer and use it in GitHub Desktop.
SublimeText build system: console.log() search
{
// ...
"build_systems":
[
{
"cmd": "echo 'Found console.log() statement(s):'; grep -rEnio 'console.log\\(.+\\).*\\$' --exclude-dir=app/bower_components app | awk -F: '{printf \" - %-30s%-7s%-s\\n\", \\$1, \\$2, \\$3}'; echo",
"name": "Find console.log()",
"shell": true,
"working_dir": "$project_path"
}
]
}
// Output:
//
// Found console.log() statement(s):
// - app/test.html 160 console.log(getAppUrl());
// - app/test.html 310 console.log(data);
// [Finished in 0.0s]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment