feat: add svelte
the functionality for a svelte package isn't here yet though :(
This commit is contained in:
parent
fd45c8b11a
commit
9e65814ef1
22 changed files with 4285 additions and 0 deletions
12
templates/svelte/flake/derivation.nix
Normal file
12
templates/svelte/flake/derivation.nix
Normal 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;
|
||||
}
|
22
templates/svelte/flake/devshell.nix
Normal file
22
templates/svelte/flake/devshell.nix
Normal 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;
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue