Skip to content

Commit 75f2b8a

Browse files
📝 Update filtered exports section with .flutterflowignore example
1 parent 77cf2cb commit 75f2b8a

File tree

1 file changed

+23
-2
lines changed
  • docs/testing-deployment-publishing/exporting-code

1 file changed

+23
-2
lines changed

docs/testing-deployment-publishing/exporting-code/ff-cli.md

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,28 @@ To use the CLI, you'll need to create an API token and use it in your requests.
7575

7676
## Filtered exports
7777

78-
We've developed [a solution](https://github.com/krabhishek/flutterflow-filtered-pull) that allows you to use the CLI tool without overwriting specific files or directories. This is especially useful if you're managing code outside of FlutterFlow and want to prevent it from being overwritten during a code export.
78+
If you are updating an existing project and do not want certain files to be changed during a code export, you can create a `.flutterflowignore` file in the root of your project directory. This file should contain a list of files to be ignored using globbing syntax.
79+
80+
### **Example:**
81+
If your project is located at:
82+
```
83+
/Users/yourname/projects/my_flutterflow_app/
84+
```
85+
Then, place the `.flutterflowignore` file in:
86+
```
87+
/Users/yourname/projects/.flutterflowignore
88+
```
89+
90+
### **Example `.flutterflowignore` contents:**
91+
```
92+
my_flutterflow_app/android/app/build.gradle # Prevents FlutterFlow from overwriting native Android build configuration
93+
my_flutterflow_app/ios/Runner/Info.plist # Keeps iOS app metadata unchanged
94+
my_flutterflow_app/web/index.html # Ensures custom modifications to the web entry file are retained
95+
```
96+
This ensures that the specified files and directories are not overwritten during code export.
97+
98+
For more details on globbing syntax, refer to [this guide](https://pub.dev/packages/glob#syntax).
99+
79100

80101
## FAQ
81102
<details>
@@ -87,4 +108,4 @@ dart pub global activate flutterflow_cli
87108
```
88109
This should update the CLI and fix the issue.
89110
</p>
90-
</details>
111+
</details>

0 commit comments

Comments
 (0)