use yarn, add nix package
This commit is contained in:
parent
d492f3e06a
commit
90dff5ed7b
3
.gitignore
vendored
3
.gitignore
vendored
@ -8,4 +8,5 @@ node_modules
|
||||
!.env.example
|
||||
vite.config.js.timestamp-*
|
||||
vite.config.ts.timestamp-*
|
||||
/.direnv
|
||||
/.direnv
|
||||
/result*
|
@ -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
|
||||
|
||||
|
22
flake.nix
22
flake.nix
@ -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;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
2278
pnpm-lock.yaml
2278
pnpm-lock.yaml
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user