use yarn, add nix package

This commit is contained in:
dusk 2023-05-05 11:02:20 +03:00
parent d492f3e06a
commit 90dff5ed7b
Signed by: dusk
GPG Key ID: 1D8F8FAF2294D6EA
5 changed files with 1989 additions and 2285 deletions

3
.gitignore vendored
View File

@ -8,4 +8,5 @@ node_modules
!.env.example
vite.config.js.timestamp-*
vite.config.ts.timestamp-*
/.direnv
/.direnv
/result*

View File

@ -2,9 +2,12 @@
# Development
- Get `pnpm` and `nodejs`.
- Run `pnpm dev` for development server.
- Run `pnpm build` for production build.
- Get `yarn` and `nodejs`.
- Run `yarn dev` for development server.
- Run `yarn build` for production build.
You can also use the provided Nix development shell if you are using Nix flakes.
A production build is also available at `packages.x86_64-linux.musikspider`.
# TODOs

View File

@ -9,15 +9,31 @@
outputs = inp:
inp.parts.lib.mkFlake {inputs = inp;} {
systems = import inp.systems;
imports = [inp.naked-shell.flakeModule];
perSystem = {config, pkgs, ...}: {
imports = [
inp.naked-shell.flakeModule
];
perSystem = {
config,
pkgs,
system,
...
}: {
devShells.default = config.mk-naked-shell.lib.mkNakedShell {
name = "musikspider-devshell";
packages = with pkgs; [
nodejs
nodePackages.pnpm
yarn
yarn2nix
];
};
packages.musikspider = pkgs.mkYarnPackage {
src = ./.;
buildPhase = "HOME=$TMPDIR yarn --offline build";
distPhase = "true";
installPhase = "mv deps/musikspider/build $out";
};
packages.default = config.packages.musikspider;
};
};
}

File diff suppressed because it is too large Load Diff

1962
yarn.lock Normal file

File diff suppressed because it is too large Load Diff