-
Notifications
You must be signed in to change notification settings - Fork 4
How to create a new Recipe
Nitin Surana edited this page Feb 21, 2016
·
9 revisions
-
cdto the project folder in console/terminal - Execute
gulp devcommand - Create a new Recipe.js file (for e.g. MyNewRecipe.js)
- It is mandatory for the recipe file name to end with
Recipeword.
- Create a new entry in the array defined in recipes.json for this new recipe.
- Make sure the
idof the new entry matches with the global namespace of the recipe. For e.g. window.recipe.myNewRecipe should always have"id" :"myNewRecipe"inrecipes.json
- If the extensions is not already installed, please see the video on how to install (source-code).
- Click on
"background page"inchrome://extensionsand clear all stored recipes by executingchrome.storage.sync.clear()in the console of background page. - Click on
"Reload"to reload the extension - You should now see the new recipe in recipes list.
NOTE - Do not forget to mention
projectfield for which project your recipe belongs expected values are"ls","edulastic"&"glider".
Options for new recipe entry in recipes.json :
-
id(mandatory) -
title(mandatory) -
description(mandatory, keep it blank if not required) -
type(mandatory, possible values - parent, child) -
version(optional) -
params(optional) -
children(optional)