netlify-cli 9.0.4 → 9.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -0
- package/bin/run +6 -1
- package/npm-shrinkwrap.json +517 -672
- package/package.json +5 -4
- package/src/commands/base-command.js +4 -3
- package/src/commands/dev/dev.js +6 -41
- package/src/commands/functions/functions-serve.js +2 -0
- package/src/commands/graph/graph-config-write.js +55 -0
- package/src/commands/graph/graph.js +2 -0
- package/src/lib/functions/server.js +58 -23
- package/src/lib/one-graph/cli-client.js +3 -1
- package/src/lib/one-graph/cli-netlify-graph.js +9 -3
- package/src/utils/dev.js +3 -3
package/README.md
CHANGED
|
@@ -159,6 +159,7 @@ Manage netlify functions
|
|
|
159
159
|
|
|
160
160
|
| Subcommand | description |
|
|
161
161
|
|:--------------------------- |:-----|
|
|
162
|
+
| [`graph:config:write`](/docs/commands/graph.md#graphconfigwrite) | Write a .graphqlrc.json file to the current directory for use with local tooling (e.g. the graphql extension for vscode) |
|
|
162
163
|
| [`graph:edit`](/docs/commands/graph.md#graphedit) | Launch the browser to edit your local graph functions from Netlify |
|
|
163
164
|
| [`graph:handler`](/docs/commands/graph.md#graphhandler) | Generate a handler for a Graph operation given its name. See `graph:operations` for a list of operations. |
|
|
164
165
|
| [`graph:library`](/docs/commands/graph.md#graphlibrary) | Generate the Graph function library |
|
package/bin/run
CHANGED
|
@@ -25,5 +25,10 @@ if (require.main === module) {
|
|
|
25
25
|
const program = createMainCommand()
|
|
26
26
|
|
|
27
27
|
// eslint-disable-next-line promise/prefer-await-to-then
|
|
28
|
-
program
|
|
28
|
+
program
|
|
29
|
+
.parseAsync(process.argv)
|
|
30
|
+
.then(() => {
|
|
31
|
+
program.onEnd()
|
|
32
|
+
})
|
|
33
|
+
.catch((error_) => program.onEnd(error_))
|
|
29
34
|
}
|