Skip to content

Commit 4bcbb5f

Browse files
add note about git-ignoring the folder you're downloading the CLI to
1 parent 688f814 commit 4bcbb5f

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

docs/source/swift-scripting.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,11 @@ You can use this to get the URL of the folder you plan to download the CLI to:
7474
let cliFolderURL = sourceRootURL
7575
.appendingPathComponent("Codegen")
7676
.appendingPathComponent("ApolloCLI")
77-
```
77+
```
78+
79+
>**Note**: We recommend adding this folder to your `.gitignore`, because otherwise you'll be adding the zip file and a ton of JS code to your repo.
80+
>
81+
> If you're on versions prior to `0.24.0`, throw an empty `.keep` file and force-add it to git to preserve the folder structure. Versions after `0.24.0` automatically create the folder being downloaded to if it doesn't exist.
7882
7983
Now, with access to both the `sourceRootURL` and the `cliFolderURL`, it's time to use your script to do neat stuff for you!
8084

0 commit comments

Comments
 (0)