Skip to content

Instantly share code, notes, and snippets.

@VienosNotes
Last active August 29, 2015 14:16
Show Gist options
  • Save VienosNotes/42c27be7f24197e6abe9 to your computer and use it in GitHub Desktop.
Save VienosNotes/42c27be7f24197e6abe9 to your computer and use it in GitHub Desktop.
one liner to output JSDoc from TypeScript source codes
cat ./*.ts | perl -nle 'print if /^\s*((\/\*)|\*)/' > cat.js; jsdoc ./cat.js; rm cat.js
@VienosNotes
Copy link
Author

  • 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