betajs/betajs-compile

View on GitHub
grunt/betajstemplates.js

Summary

Maintainability
A
35 mins
Test Coverage
module.exports = function (taskname, source, target, namespace, noscoped) {
    this.grunt.loadNpmTasks('grunt-betajs-templates');
    taskname = taskname || "betajstemplates";
    var files = {};
    files[target] = [source];
    return this.registerTask(taskname, [
        this.addConfigTask("betajs_templates", taskname, {
            options : {
                namespace: namespace,
                scoped: !noscoped
            },
            files: files
        })
    ]);
};