• jscodeshift snippet - printing a whole MemberExpression

    I’ve been writing codemods using jscodeshift. I find that while the main goal of codemods is to refactor code, I often have to print some output either for debugging or making sure I’m on the right path.

    One of the things I had to do recently was to print a whole MemberExpression based on a module name I was looking for. For example, consider the following code snippet.

    Read more
  • Measuring your AngularJS module size with ng-sizer

    Sometimes you might want to see how large your AngularJS projects are, either for bragging rights or to estimate migration efforts.

    I’ve created a tool that you can simply drop into your existing AngularJS app. Check out ng-sizer!

  • Deploying to GitHub Pages with git worktree

    GitHub Pages is a great service for showcasing your GitHub projects. Chances are, you want to keep the actual project source code and the GitHub pages code separated in different branches. You might also prefer the GitHub pages code to not pollute the project source code. The git command git worktree (from git 2.5) can help you do just that.

    Read more