Skip to content

Instantly share code, notes, and snippets.

View jrybinski's full-sized avatar

Jakub Rybinski jrybinski

  • Gliwice, Poland
View GitHub Profile
@jrybinski
jrybinski / link.directive.ts
Created May 8, 2020 12:29
Angular router link custom directive
@jrybinski
jrybinski / ngProjectDetails.sh
Created April 9, 2020 08:59
Print out details of angular project. Used for comparing bundle size with project details.
getFilesOfType() {
find . -name "$1" -not -path "./node_modules/*" -not -path "./dist/*" -not -path "./reports/*"
}
getEs5JSBuildFiles() {
du -chk ./dist/*es5*.js | grep total
}
getEs2015JSBuildFiles() {
du -chk ./dist/*es2015*.js | grep total
@jrybinski
jrybinski / ngComponents.sh
Created February 17, 2020 11:30
Search angular components in current dir and child dirs
find . -name "*.component.ts" | wc -l