Created
February 15, 2014 18:06
-
-
Save afternoon/9022928 to your computer and use it in GitHub Desktop.
Add TypeScript references to .ts files
This file contains hidden or 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
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