Commit 90e9e743 authored by David Votrubec's avatar David Votrubec

added grunt configuration for compiling ES6 into ES5

parent 46a86270
module.exports = function (grunt) {
grunt.initConfig({
regenerator: {
all: {
files: [{
expand: true,
cwd: 'es6/',
src: ['**/*.js'],
dest: 'es5/'
}]
}
}
});
grunt.loadNpmTasks('grunt-regenerator');
grunt.registerTask('default', ['regenerator']);
};
\ No newline at end of file
{
"name": "learn-es6-generators",
"version": "1.0.0",
"description": "Sample code for my blog post about ES6 generators",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "git+https://gitlab.com/DavidVotrubec/learn-es6-generators.git"
},
"keywords": [
"es6",
"generators",
"async+await"
],
"author": "DAvid Vot\u001b[D\u001b[D\u001b[D\u001b[D\u001b[D\u001b[D\u001b[D\u001b[Da\u001b[3~vid Votrubec",
"license": "ISC",
"bugs": {
"url": "https://gitlab.com/DavidVotrubec/learn-es6-generators/issues"
},
"homepage": "https://gitlab.com/DavidVotrubec/learn-es6-generators#README",
"devDependencies": {
"grunt": "^1.0.1",
"grunt-regenerator": "^3.1.0",
"grunt-traceur": "^0.5.5",
"regenerator": "^0.8.46",
"traceur": "0.0.111"
}
}
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