betajs/betajs-compile

View on GitHub
grunt/qunitjs.js

Summary

Maintainability
A
0 mins
Test Coverage
module.exports = function (taskname, code) {
    this.grunt.loadNpmTasks('grunt-shell');
    taskname = taskname || "qunitjs";
    return this.registerTask(taskname, [
        this.addConfigTask("shell", taskname, {
            command: ["node_modules/qunitjs/bin/qunit"].concat(code).join(" "),
            options: {
                stdout: true,
                stderr: true
            },
            src: [
                "src/**", "dist/**", "tests/**"
            ]
        })
    ]);
};