-
Notifications
You must be signed in to change notification settings - Fork 414
feat: add Netlify Graph support #3904
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 18 commits
Commits
Show all changes
67 commits
Select commit
Hold shift + click to select a range
63c5e04
chore: interim commit
sgrove fb40978
feat: clean up the code generation
sgrove 5db4916
Fix up various imports and upserts
sgrove 7debe47
chore: eslint and prettier
sgrove 419ffcc
chore: add netlify app host option
sgrove a5577b0
feat: refactor names, common usage, and automatically re-pull schema …
sgrove 07ec111
chore: update docs
sgrove f2c5e3b
chore: fix eslint issues
sgrove e9756d9
chore: remote optional chaining
sgrove d06e358
chore: remove graph:create command
sgrove 84738ce
chore: add netlify back in
sgrove 4ab287c
chore: fix package.json
sgrove 7aedc0f
chore: disable eslint rule
sgrove 4782623
chore: add lodash back in
sgrove 8d83322
chore: fix eslint rule
sgrove 1ca4c24
chore: run prettier
sgrove abf1932
chore: move to dotProp over lodash.get
sgrove ec7dd25
feat: support configuration, better error handling, improved codegen
sgrove df5bfb3
feat: refactor, handle inputs better, handle commonjs vs module in co…
sgrove 886cdbf
feat: update session metadata with current docId when graph:edit
sgrove 39156da
feat: improve stability and fingerprinting
sgrove e8d17aa
feat: handle reserved keywords when generating handlers
sgrove 3217921
fix: don't try to generate a operation data list if we don't have an …
sgrove 42d8f09
chore: fix tests
sgrove 395aab2
Merge branch 'main' into netligraph-poc
sgrove 64b3da8
chore: move away from make-dir
sgrove e8dc667
chore: remove optional accessor
sgrove 691f153
chore: update snapshot
sgrove d380080
chore: rename Netligraph to Netlify Graph
sgrove 3fbab5f
chore: rename Netligraph to Netlify Graph
sgrove da24433
Merge branch 'main' into netligraph-poc
sgrove 7898fbd
chore: update snapshots
sgrove 00f8e78
chore: rename more Netligraph references
sgrove 9f2c525
chore: rename more Netligraph references
sgrove b98fa8b
chore: fix formatting
sgrove 32e186f
chore: rename more Netligraph references
sgrove b8e2026
chore: refactor and add tests
sgrove b7f0866
chore: fix formatting
sgrove f4530f4
chore: address pr comments
sgrove 94d5e93
chore: fix filenames
sgrove 1cfa0de
chore: fix formatting
sgrove 110f143
chore: add jsdocs
sgrove 8ebc83a
chore: update graph command snapshots
sgrove 304d96c
chore: refactor Netlify Graph logic into a reusable package with type…
sgrove 87a8154
chore: add npm scripts back
sgrove 5f1d4b3
chore: refactor common Netlify Graph functionality out to a shared pa…
sgrove b7cc1ef
chore: error exits, no need to return
sgrove b61e5ad
chore: fix formatting
sgrove 3da2b34
chore: address PR comments
sgrove 7e66cdc
Merge branch 'main' into netligraph-poc
sgrove 528454a
chore: update docs
sgrove 9a59846
chore: fix command help wording
sgrove 8d0ee53
feat: add next.js support
sgrove 58ade51
feat: add next.js support
sgrove 668c9a9
chore: fix formatting and support node 12
sgrove b8b5910
chore: fix tests
sgrove 107dfe2
chore: fix formatting
sgrove c7ae2db
Merge github.com:netlify/cli into netligraph-poc
sgrove 068a1b8
chore: regenerate lock file
b9d66bd
chore: fix tests
22689d6
Merge branch 'main' into netligraph-poc
11d7487
Merge branch 'main' into netligraph-poc
5db4138
Merge branch 'main' into netligraph-poc
sgrove 80a45a7
chore: fix formatting
sgrove 97e04ef
Merge branch 'netligraph-poc' of github.com:netlify/cli into netligra…
sgrove ae9df1f
chore: fix nested array bug in paths
sgrove b68fb54
chore: fix root path issue
sgrove File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
--- | ||
title: Netlify CLI graph command | ||
description: Sync and edit your Netligraph library | ||
--- | ||
|
||
# `graph` | ||
|
||
<!-- AUTO-GENERATED-CONTENT:START (GENERATE_COMMANDS_DOCS) --> | ||
(Beta) Control the Netligraph functions for the current site | ||
|
||
**Usage** | ||
|
||
```bash | ||
netlify graph | ||
``` | ||
|
||
**Flags** | ||
|
||
- `debug` (*boolean*) - Print debugging information | ||
- `httpProxy` (*string*) - Proxy server address to route requests through. | ||
- `httpProxyCertificateFilename` (*string*) - Certificate file to use when connecting using a proxy server | ||
|
||
| Subcommand | description | | ||
|:--------------------------- |:-----| | ||
| [`graph:edit`](/docs/commands/graph.md#graphedit) | Launch the browser to edit your local graph functions from Netlify | | ||
| [`graph:pull`](/docs/commands/graph.md#graphpull) | Pull down your local Netligraph schema and regenerate your local functions | | ||
|
||
|
||
**Examples** | ||
|
||
```bash | ||
netlify graph:pull | ||
netlify graph:edit | ||
``` | ||
|
||
--- | ||
## `graph:edit` | ||
|
||
Launch the browser to edit your local graph functions from Netlify | ||
|
||
**Usage** | ||
|
||
```bash | ||
netlify graph:edit | ||
``` | ||
|
||
**Flags** | ||
|
||
- `debug` (*boolean*) - Print debugging information | ||
- `httpProxy` (*string*) - Proxy server address to route requests through. | ||
- `httpProxyCertificateFilename` (*string*) - Certificate file to use when connecting using a proxy server | ||
|
||
--- | ||
## `graph:pull` | ||
|
||
Pull down your local Netligraph schema and regenerate your local functions | ||
|
||
**Usage** | ||
|
||
```bash | ||
netlify graph:pull | ||
``` | ||
|
||
**Flags** | ||
|
||
- `debug` (*boolean*) - Print debugging information | ||
- `httpProxy` (*string*) - Proxy server address to route requests through. | ||
- `httpProxyCertificateFilename` (*string*) - Certificate file to use when connecting using a proxy server | ||
|
||
--- | ||
|
||
<!-- AUTO-GENERATED-CONTENT:END --> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.