import qbs.TextFile Product { type: ["blubb"] Transformer { alwaysRun: false Artifact { filePath: "blubb.txt" fileTags: product.type } prepare: { var cmd = new JavaScriptCommand(); cmd.description = "yo"; cmd.sourceCode = function() { var f = new TextFile(output.filePath, TextFile.WriteOnly); f.write("blubb"); f.close(); } return [cmd]; } } }