Skip to content

Rainist/galley-recipes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.