Last active
January 4, 2016 05:09
-
-
Save eckdanny/8573601 to your computer and use it in GitHub Desktop.
SublimeText build system: console.log() search
This file contains 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
{ | |
// ... | |
"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