You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 12, 2019. It is now read-only.
Copy file name to clipboardExpand all lines: src/functions-templates/README.md
+1-14Lines changed: 1 addition & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,17 +6,4 @@ place new templates here and our CLI will pick it up. each template must be in i
6
6
7
7
we dont colocate this inside `src/commands/functions` because oclif will think it's a new command.
8
8
9
-
<!--
10
-
## providing metadata (and other functionality)
11
-
12
-
we split the file based on the `// --- Netlify Template Below -- //` string. everything below it is cloned as the template. everything above it can be required and run as a module for configuring the template. for now we simply export a `metadata` object that fits [`inquirer's choices spec`](https://www.npmjs.com/package/inquirer#question).
13
-
14
-
once the templating is done we can also call an `onComplete` hook to print a reminder or execute other logic - see `node-fetch.js` for an example.
15
-
16
-
you can optionally set a `priority` to pin display order.
17
-
18
-
in future we can think about other options we may want to offer.
19
-
20
-
## future dev thoughts
21
-
22
-
we will want a way to scale this to TS and Go as well. -->
9
+
every function should be registered with their respective `template-registry.js`.
0 commit comments