Skip to content

Commit 5ef226d

Browse files
committed
chore: setup idx (firebase studio) environments
1 parent b23a7e3 commit 5ef226d

File tree

2 files changed

+55
-1
lines changed

2 files changed

+55
-1
lines changed

.idx/dev.nix

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
{ pkgs }: {
2+
channel = "stable-25.05";
3+
packages = [
4+
pkgs.fvm
5+
pkgs.jdk23
6+
];
7+
idx.extensions = [
8+
"Dart-Code.dart-code"
9+
"Dart-Code.flutter"
10+
];
11+
idx.workspace.onCreate = {
12+
fvm-use-prod = "yes | fvm use prod";
13+
pub-get = "fvm flutter pub get";
14+
build-utils = "fvm dart run build_runner build -d";
15+
16+
# files to open when the workspace is first opened.
17+
default.openFiles = [ "README.md" ];
18+
};
19+
idx.workspace.onStart = {
20+
build-utils = "fvm dart run build_runner watch -d";
21+
};
22+
idx.previews = {
23+
previews = {
24+
web = {
25+
command = [
26+
"flutter"
27+
"run"
28+
"--machine"
29+
"-d"
30+
"web-server"
31+
"--web-hostname"
32+
"0.0.0.0"
33+
"--web-port"
34+
"$PORT"
35+
];
36+
manager = "flutter";
37+
};
38+
android = {
39+
command = [
40+
"flutter"
41+
"run"
42+
"--machine"
43+
"-d"
44+
"android"
45+
"-d"
46+
"localhost:5555"
47+
];
48+
manager = "flutter";
49+
};
50+
};
51+
};
52+
}

.vscode/settings.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,7 @@
33
"{.dart_tool,.fvm,.idea}": true,
44
"**/*.{g,freezed}.dart": true
55
},
6-
"dart.flutterSdkPath": ".fvm/versions/3.29.2"
6+
"dart.flutterSdkPath": ".fvm/versions/3.29.2",
7+
"IDX.aI.enableInlineCompletion": true,
8+
"IDX.aI.enableCodebaseIndexing": true
79
}

0 commit comments

Comments
 (0)