Build chef.bake.

This commit is contained in:
d98762625
2018-07-20 13:55:11 +01:00
parent 2480dca473
commit 9abaadf1b6
6 changed files with 448 additions and 139 deletions
+11 -1
View File
@@ -39,7 +39,7 @@ let code = `/**
import "babel-polyfill";
import { wrap, help } from "./apiUtils";
import { wrap, help, bake } from "./api";
import {
`;
@@ -88,8 +88,18 @@ includedOperations.forEach((op) => {
code +=`
const operations = [\n`;
includedOperations.forEach((op) => {
code += ` ${decapitalise(op)},\n`;
});
code += `];
chef.bake = bake(operations);
export default chef;
export {
operations,
`;
includedOperations.forEach((op) => {