Skip to content
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

feat: add Netlify Graph support #3904

Merged
merged 67 commits into from
Jan 22, 2022
Merged
Show file tree
Hide file tree
Changes from 66 commits
Commits
Show all changes
67 commits
Select commit Hold shift + click to select a range
63c5e04
chore: interim commit
sgrove Dec 20, 2021
fb40978
feat: clean up the code generation
sgrove Dec 22, 2021
5db4916
Fix up various imports and upserts
sgrove Dec 23, 2021
7debe47
chore: eslint and prettier
sgrove Dec 23, 2021
419ffcc
chore: add netlify app host option
sgrove Dec 23, 2021
a5577b0
feat: refactor names, common usage, and automatically re-pull schema …
sgrove Dec 30, 2021
07ec111
chore: update docs
sgrove Dec 30, 2021
f2c5e3b
chore: fix eslint issues
sgrove Dec 30, 2021
e9756d9
chore: remote optional chaining
sgrove Dec 30, 2021
d06e358
chore: remove graph:create command
sgrove Dec 30, 2021
84738ce
chore: add netlify back in
sgrove Dec 30, 2021
4ab287c
chore: fix package.json
sgrove Dec 30, 2021
7aedc0f
chore: disable eslint rule
sgrove Dec 30, 2021
4782623
chore: add lodash back in
sgrove Dec 30, 2021
8d83322
chore: fix eslint rule
sgrove Dec 30, 2021
1ca4c24
chore: run prettier
sgrove Dec 30, 2021
abf1932
chore: move to dotProp over lodash.get
sgrove Dec 30, 2021
ec7dd25
feat: support configuration, better error handling, improved codegen
sgrove Dec 31, 2021
df5bfb3
feat: refactor, handle inputs better, handle commonjs vs module in co…
sgrove Jan 1, 2022
886cdbf
feat: update session metadata with current docId when graph:edit
sgrove Jan 5, 2022
39156da
feat: improve stability and fingerprinting
sgrove Jan 6, 2022
e8d17aa
feat: handle reserved keywords when generating handlers
sgrove Jan 6, 2022
3217921
fix: don't try to generate a operation data list if we don't have an …
sgrove Jan 7, 2022
42d8f09
chore: fix tests
sgrove Jan 12, 2022
395aab2
Merge branch 'main' into netligraph-poc
sgrove Jan 12, 2022
64b3da8
chore: move away from make-dir
sgrove Jan 12, 2022
e8dc667
chore: remove optional accessor
sgrove Jan 12, 2022
691f153
chore: update snapshot
sgrove Jan 12, 2022
d380080
chore: rename Netligraph to Netlify Graph
sgrove Jan 12, 2022
3fbab5f
chore: rename Netligraph to Netlify Graph
sgrove Jan 12, 2022
da24433
Merge branch 'main' into netligraph-poc
sgrove Jan 12, 2022
7898fbd
chore: update snapshots
sgrove Jan 12, 2022
00f8e78
chore: rename more Netligraph references
sgrove Jan 12, 2022
9f2c525
chore: rename more Netligraph references
sgrove Jan 12, 2022
b98fa8b
chore: fix formatting
sgrove Jan 12, 2022
32e186f
chore: rename more Netligraph references
sgrove Jan 12, 2022
b8e2026
chore: refactor and add tests
sgrove Jan 13, 2022
b7f0866
chore: fix formatting
sgrove Jan 13, 2022
f4530f4
chore: address pr comments
sgrove Jan 13, 2022
94d5e93
chore: fix filenames
sgrove Jan 13, 2022
1cfa0de
chore: fix formatting
sgrove Jan 13, 2022
110f143
chore: add jsdocs
sgrove Jan 13, 2022
8ebc83a
chore: update graph command snapshots
sgrove Jan 13, 2022
304d96c
chore: refactor Netlify Graph logic into a reusable package with type…
sgrove Jan 18, 2022
87a8154
chore: add npm scripts back
sgrove Jan 18, 2022
5f1d4b3
chore: refactor common Netlify Graph functionality out to a shared pa…
sgrove Jan 18, 2022
b7cc1ef
chore: error exits, no need to return
sgrove Jan 18, 2022
b61e5ad
chore: fix formatting
sgrove Jan 18, 2022
3da2b34
chore: address PR comments
sgrove Jan 18, 2022
7e66cdc
Merge branch 'main' into netligraph-poc
sgrove Jan 18, 2022
528454a
chore: update docs
sgrove Jan 18, 2022
9a59846
chore: fix command help wording
sgrove Jan 18, 2022
8d0ee53
feat: add next.js support
sgrove Jan 19, 2022
58ade51
feat: add next.js support
sgrove Jan 19, 2022
668c9a9
chore: fix formatting and support node 12
sgrove Jan 19, 2022
b8b5910
chore: fix tests
sgrove Jan 20, 2022
107dfe2
chore: fix formatting
sgrove Jan 20, 2022
c7ae2db
Merge github.com:netlify/cli into netligraph-poc
sgrove Jan 20, 2022
068a1b8
chore: regenerate lock file
lukasholzer Jan 21, 2022
b9d66bd
chore: fix tests
lukasholzer Jan 21, 2022
22689d6
Merge branch 'main' into netligraph-poc
lukasholzer Jan 21, 2022
11d7487
Merge branch 'main' into netligraph-poc
lukasholzer Jan 21, 2022
5db4138
Merge branch 'main' into netligraph-poc
sgrove Jan 21, 2022
80a45a7
chore: fix formatting
sgrove Jan 21, 2022
97e04ef
Merge branch 'netligraph-poc' of github.com:netlify/cli into netligra…
sgrove Jan 21, 2022
ae9df1f
chore: fix nested array bug in paths
sgrove Jan 21, 2022
b68fb54
chore: fix root path issue
sgrove Jan 22, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ See the [CLI command line reference](https://cli.netlify.com/commands/) to get s
- [dev](#dev)
- [env](#env)
- [functions](#functions)
- [graph](#graph)
- [init](#init)
- [link](#link)
- [lm](#lm)
Expand Down Expand Up @@ -152,6 +153,16 @@ Manage netlify functions
| [`functions:serve`](/docs/commands/functions.md#functionsserve) | (Beta) Serve functions locally |


### [graph](/docs/commands/graph.md)

(Beta) Control the Netlify Graph functions for the current site

| 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 Netlify Graph schema, and process pending Graph edit events |


### [init](/docs/commands/init.md)

Configure continuous deployment for a new or existing site. To create a new site without continuous deployment, use `netlify sites:create`
Expand Down
10 changes: 10 additions & 0 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,16 @@ Manage netlify functions
| [`functions:serve`](/docs/commands/functions.md#functionsserve) | (Beta) Serve functions locally |


### [graph](/docs/commands/graph.md)

(Beta) Control the Netlify Graph functions for the current site

| 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 Netlify Graph schema, and process pending Graph edit events |


### [init](/docs/commands/init.md)

Configure continuous deployment for a new or existing site. To create a new site without continuous deployment, use `netlify sites:create`
Expand Down
72 changes: 72 additions & 0 deletions docs/commands/graph.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
---
title: Netlify CLI graph command
description: Sync and edit your Netlify Graph library
---

# `graph`

<!-- AUTO-GENERATED-CONTENT:START (GENERATE_COMMANDS_DOCS) -->
(Beta) Control the Netlify Graph 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 Netlify Graph schema, and process pending Graph edit events |


**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 Netlify Graph schema, and process pending Graph edit events

**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 -->
10 changes: 10 additions & 0 deletions docs/commands/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,16 @@ Manage netlify functions
| [`functions:serve`](/docs/commands/functions.md#functionsserve) | (Beta) Serve functions locally |


### [graph](/docs/commands/graph.md)

(Beta) Control the Netlify Graph functions for the current site

| 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 Netlify Graph schema, and process pending Graph edit events |


### [init](/docs/commands/init.md)

Configure continuous deployment for a new or existing site. To create a new site without continuous deployment, use `netlify sites:create`
Expand Down
Loading