/branches/jsdoc_tk_gui/setup/plugins/strip.js
http://jsdoc-toolkit.googlecode.com/ · JavaScript · 20 lines · 12 code · 4 blank · 4 comment · 0 complexity · 127d9feafd49b02084945751422e3414 MD5 · raw file
- /**
- @overview Remove JsDoc comments from source code and save file.
- @author Michael Mathews micmath@gmail.com
- */
-
- function deploy_begin(context) {
- context.src = context.d+"/src";
- MakeDir(context.src);
- }
-
- function deploy_each(sourceFile, context) {
- var name = sourceFile.fileName.replace(/(\.\.?)?[\/\\]/g, "_");
- inform("Saving stripped source file to "+name);
-
- var stripped = sourceFile.content.replace(/\/\*\*[\S\s]+?\*\//g, "");
- SaveFile(context.src, name, stripped);
- }
-
- function deploy_finish(context) {
- }