feat: add svelte

the functionality for a svelte package
isn't here yet though :(
This commit is contained in:
Artur Manuel 2024-09-12 19:48:23 +01:00
commit 9e65814ef1
Failed to generate hash of commit
22 changed files with 4285 additions and 0 deletions

View file

@ -0,0 +1,12 @@
{ mkYarnPackage }:
let
pname = "svelte-example";
version = "0.1.0";
in
mkYarnPackage {
inherit pname version;
src = ../.;
yarnLock = ../yarn.lock;
yarnNix = ../yarn.nix;
packageJSON = ../package.json;
}

View file

@ -0,0 +1,22 @@
{
mkShell,
nodePackages_latest,
typescript,
yarn2nix,
nixd,
}:
mkShell {
name = "svelte";
packages = builtins.attrValues {
inherit (nodePackages_latest)
nodejs
npm
yarn
typescript-language-server
prettier
svelte-language-server
eslint
;
inherit yarn2nix typescript nixd;
};
}