Skip to content

Latest commit

 

History

History
48 lines (34 loc) · 1016 Bytes

README.md

File metadata and controls

48 lines (34 loc) · 1016 Bytes

galley-recipes

this package replace internal recipe codes in galley to reduce the complexity

Install

$ yarn add galley-recipes # or npm install galley-recipes

How to use

Try galley first to see what this package is for

and put them in your code like below

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!");',
});

Test

$ yarn test

Contribution

any contributions are welcome.

License

galley-recipes is MIT licensed.