Skip to content

Instantly share code, notes, and snippets.

@afternoon
Created February 15, 2014 18:06
Show Gist options
  • Save afternoon/9022928 to your computer and use it in GitHub Desktop.
Save afternoon/9022928 to your computer and use it in GitHub Desktop.
Add TypeScript references to .ts files
find app/src -path '*/js/*/*.ts' -and -not \( -path '*/js/*/*.spec.ts' -or -path '*/js/*/*.scenario.ts' \) -exec sed -i '1i/// <reference path="../../../../../references/module.ts" />' {} \;
find app/src -path '*/js/*/*.spec.ts' -exec sed -i '1i/// <reference path="../../../../../references/test.ts" />' {} \;
find app/src -path '*/js/*.scenario.ts' -exec sed -i '1i/// <reference path="../../../../references/test.ts" />' {} \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment