From 507a8f22c803aed16865841067effd85787d1688 Mon Sep 17 00:00:00 2001 From: "matteopietro.dazzi" Date: Tue, 30 Apr 2024 13:19:40 +0000 Subject: [PATCH] feat: IDX configuration --- .idx/dev.nix | 55 ++++++++++++++++++++++++++++++++++++++++++++++++++++ package.json | 2 +- 2 files changed, 56 insertions(+), 1 deletion(-) create mode 100644 .idx/dev.nix diff --git a/.idx/dev.nix b/.idx/dev.nix new file mode 100644 index 0000000..6633b61 --- /dev/null +++ b/.idx/dev.nix @@ -0,0 +1,55 @@ +# To learn more about how to use Nix to configure your environment +# see: https://developers.google.com/idx/guides/customize-idx-env +{ pkgs, ... }: { + # Which nixpkgs channel to use. + channel = "stable-23.11"; # or "unstable" + + # Use https://search.nixos.org/packages to find packages + packages = [ + pkgs.nodejs_20 + pkgs.corepack_20 + ]; + + env = {}; + idx = { + # Search for the extensions you want on https://open-vsx.org/ and use "publisher.id" + extensions = [ + "ms-vscode.vscode-js-profile-flame" + "vitest.explorer" + "yzhang.markdown-all-in-one" + "unifiedjs.vscode-mdx" + "stylelint.vscode-stylelint" + "pflannery.vscode-versionlens" + ]; + + # Enable previews + previews = { + enable = true; + previews = [ + # { + # # Example: run "npm run dev" with PORT set to IDX's defined port for previews, + # # and show it in IDX's web preview panel + # command = ["npm" "run" "dev"]; + # manager = "web"; + # id = "web"; + # env = { + # # Environment variables to set for your server + # PORT = "$PORT"; + # }; + # } + ]; + }; + + # Workspace lifecycle hooks + workspace = { + # Runs when a workspace is first created + onCreate = { + npm-install = "pnpm install"; + }; + onStart = { + # Example: start a background task to watch and re-build backend code + # watch-backend = "npm run watch-backend"; + }; + }; + }; +} diff --git a/package.json b/package.json index 4bc6474..4f5b7c3 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@ilteoood/re-flusso", - "version": "0.2.0", + "version": "0.2.1", "description": "Utility library to operate with JavaScript Streams API", "type": "module", "author": "Matteo Pietro Dazzi",