PageRenderTime 12ms CodeModel.GetById 9ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/tags/jsdoc_toolkit-1.3.3/plugins/strip.js

http://jsdoc-toolkit.googlecode.com/
JavaScript | 20 lines | 12 code | 4 blank | 4 comment | 0 complexity | 127d9feafd49b02084945751422e3414 MD5 | raw file
 1/**
 2	@overview Remove JsDoc comments from source code and save file.
 3	@author Michael Mathews micmath@gmail.com
 4*/
 5
 6function deploy_begin(context) {
 7	context.src = context.d+"/src";
 8	MakeDir(context.src);
 9}
10
11function deploy_each(sourceFile, context) {
12	var name = sourceFile.fileName.replace(/(\.\.?)?[\/\\]/g, "_");
13	inform("Saving stripped source file to "+name);
14	
15	var stripped = sourceFile.content.replace(/\/\*\*[\S\s]+?\*\//g, "");
16	SaveFile(context.src, name, stripped);
17}
18
19function deploy_finish(context) {	
20}