From 5a87065ac61eaaba8d239f4ea8becd5844b3f679 Mon Sep 17 00:00:00 2001 From: "andrea.ghensi" Date: Sun, 2 Jun 2024 21:02:41 +0000 Subject: [PATCH] build: add idx dev config --- .idx/dev.nix | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 .idx/dev.nix diff --git a/.idx/dev.nix b/.idx/dev.nix new file mode 100644 index 0000000..da09f27 --- /dev/null +++ b/.idx/dev.nix @@ -0,0 +1,42 @@ +{pkgs}: { + channel = "stable-23.11"; + packages = [ + pkgs.nodePackages.firebase-tools + pkgs.jdk17 + pkgs.unzip + ]; + idx.extensions = [ + "Dart-Code.dart-code" + "Dart-Code.flutter" + ]; + idx.previews = { + previews = { + web = { + command = [ + "flutter" + "run" + "--machine" + "-d" + "web-server" + "--web-hostname" + "0.0.0.0" + "--web-port" + "$PORT" + ]; + manager = "flutter"; + }; + android = { + command = [ + "flutter" + "run" + "--machine" + "-d" + "android" + "-d" + "emulator-5554" + ]; + manager = "flutter"; + }; + }; + }; +} \ No newline at end of file