Skip to content

How to create a new Recipe

Nitin Surana edited this page Feb 21, 2016 · 9 revisions
  1. cd to the project folder in console/terminal
  2. Execute gulp dev command
  3. Create a new Recipe.js file (for e.g. MyNewRecipe.js)
  • It is mandatory for the recipe file name to end with Recipe word.
  1. Create a new entry in the array defined in recipes.json for this new recipe.
  • Make sure the id of the new entry matches with the global namespace of the recipe. For e.g. window.recipe.myNewRecipe should always have "id" :"myNewRecipe" in recipes.json
  1. If the extensions is not already installed, please see the video on how to install (source-code).
  2. Click on "background page" in chrome://extensions and clear all stored recipes by executing chrome.storage.sync.clear() in the console of background page.
  3. Click on "Reload" to reload the extension
  4. You should now see the new recipe in recipes list.

NOTE - Do not forget to mention project field for which project your recipe belongs expected values are "ls", "edulastic" & "glider".

Options for new recipe entry in recipes.json :

  1. id (mandatory)
  2. title (mandatory)
  3. description (mandatory, keep it blank if not required)
  4. type (mandatory, possible values - parent, child)
  5. version (optional)
  6. params (optional)
  7. children (optional)

Clone this wiki locally