Commit df2f005a authored by David Votrubec's avatar David Votrubec

Renamed files. Installed grunt-contrib-clean

parent ae413f31
......@@ -9,8 +9,12 @@ module.exports = function (grunt) {
dest: 'es5/'
}]
}
}
},
clean: ['es5/'],
});
grunt.loadNpmTasks('grunt-contrib-clean');
grunt.loadNpmTasks('grunt-regenerator');
grunt.registerTask('default', ['regenerator']);
grunt.registerTask('default', ['clean', 'regenerator']);
};
\ No newline at end of file
function run (genFn) {
var gen = genFn(); // [1]
next(); // [2]
function next (er, value) { // [3]
if (er) return gen.throw(er);
var continuable = gen.next(value);
if (continuable.done) return; // [4]
var cbFn = continuable.value; // [5]
cbFn(next);
}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment