Converted all modules from CommonJS to ES6

This commit is contained in:
n1474335 2017-03-23 17:52:20 +00:00
parent 0f2a5014be
commit 131b3a83c1
75 changed files with 395 additions and 282 deletions

View file

@ -1,5 +1,5 @@
var Dish = require("./Dish.js"),
Recipe = require("./Recipe.js");
import Dish from "./Dish.js";
import Recipe from "./Recipe.js";
/**
@ -11,7 +11,7 @@ var Dish = require("./Dish.js"),
*
* @class
*/
var Chef = module.exports = function() {
var Chef = function() {
this.dish = new Dish();
};
@ -122,3 +122,5 @@ Chef.prototype.silentBake = function(recipeConfig) {
}
return new Date().getTime() - startTime;
};
export default Chef;