this package replace internal recipe codes in galley to reduce the complexity
$ yarn add galley-recipes # or npm install galley-recipes
Try galley first to see what this package is for
import { envMapper } from 'galley-recipes'
const { generate } = envMapper;
const output = generate({
namespace: "my-namespace",
cmName: "my-cm",
cmEnv: "a=b\nc=d",
secretName: "my-secret",
secretEnv: "what=secret\nshouldbe=hidden"
});
import { fileCM } from 'galley-recipes'
const { generate } = fileCM;
const output = generate({
name: 'my-file-cm',
namespace: 'my-namespace',
filename: 'code.js',
filecontent: 'console.log("Hellow, World!");',
});
$ yarn test
any contributions are welcome.
galley-recipes is MIT licensed.