Skip to content

Commit

Permalink
feat: IDX configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
ilteoood committed Apr 30, 2024
1 parent 70cfa0d commit 507a8f2
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 1 deletion.
55 changes: 55 additions & 0 deletions .idx/dev.nix
Original file line number Diff line number Diff line change
@@ -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";
};
};
};
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down

0 comments on commit 507a8f2

Please sign in to comment.