mirror of
https://github.com/DIYgod/RSSHub.git
synced 2026-10-17 05:11:57 +08:00
chore(flake): bump nodejs from 22 to 24
This commit is contained in:
@@ -1,63 +0,0 @@
|
||||
# To learn more about how to use Nix to configure your environment
|
||||
# see: https://firebase.google.com/docs/studio/customize-workspace
|
||||
{ pkgs, ... }: {
|
||||
# Which nixpkgs channel to use.
|
||||
channel = "unstable"; # or "unstable"
|
||||
|
||||
# Use https://search.nixos.org/packages to find packages
|
||||
packages = [
|
||||
# pkgs.go
|
||||
# pkgs.python311
|
||||
# pkgs.python311Packages.pip
|
||||
pkgs.nodejs_22
|
||||
pkgs.pnpm_9
|
||||
# pkgs.nodePackages.nodemon
|
||||
pkgs.cacert
|
||||
pkgs.valkey
|
||||
];
|
||||
|
||||
# Sets environment variables in the workspace
|
||||
env = {};
|
||||
idx = {
|
||||
# Search for the extensions you want on https://open-vsx.org/ and use "publisher.id"
|
||||
extensions = [
|
||||
"cweijan.vscode-database-client2"
|
||||
"dbaeumer.vscode-eslint"
|
||||
"eamodio.gitlens"
|
||||
"EditorConfig.EditorConfig"
|
||||
"oxc.oxc-vscode"
|
||||
"sonarsource.sonarlint-vscode"
|
||||
];
|
||||
|
||||
# Enable previews
|
||||
previews = {
|
||||
enable = true;
|
||||
previews = {
|
||||
# web = {
|
||||
# # 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";
|
||||
# env = {
|
||||
# # Environment variables to set for your server
|
||||
# PORT = "$PORT";
|
||||
# };
|
||||
# };
|
||||
};
|
||||
};
|
||||
|
||||
# Workspace lifecycle hooks
|
||||
workspace = {
|
||||
# Runs when a workspace is first created
|
||||
onCreate = {
|
||||
# Example: install JS dependencies from NPM
|
||||
pnpm-install = "pnpm i && pnpm rb && pnpx rebrowser-puppeteer browsers install chrome";
|
||||
};
|
||||
# Runs when the workspace is (re)started
|
||||
onStart = {
|
||||
# Example: start a background task to watch and re-build backend code
|
||||
# watch-backend = "npm run watch-backend";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user