Last active
August 29, 2015 14:16
-
-
Save VienosNotes/42c27be7f24197e6abe9 to your computer and use it in GitHub Desktop.
one liner to output JSDoc from TypeScript source codes
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
cat ./*.ts | perl -nle 'print if /^\s*((\/\*)|\*)/' > cat.js; jsdoc ./cat.js; rm cat.js |
Author
VienosNotes
commented
Mar 12, 2015
- It breakes the relation of position between original code and the link in output documents.
- All block comments in source code must be appeared at the beginning of the line.
- It needs to replace 'cat.js' in one liner if you already have a file named 'cat.js'.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment