use yarn, add nix package
This commit is contained in:
parent
d492f3e06a
commit
90dff5ed7b
1
.gitignore
vendored
1
.gitignore
vendored
@ -9,3 +9,4 @@ node_modules
|
|||||||
vite.config.js.timestamp-*
|
vite.config.js.timestamp-*
|
||||||
vite.config.ts.timestamp-*
|
vite.config.ts.timestamp-*
|
||||||
/.direnv
|
/.direnv
|
||||||
|
/result*
|
@ -2,9 +2,12 @@
|
|||||||
|
|
||||||
# Development
|
# Development
|
||||||
|
|
||||||
- Get `pnpm` and `nodejs`.
|
- Get `yarn` and `nodejs`.
|
||||||
- Run `pnpm dev` for development server.
|
- Run `yarn dev` for development server.
|
||||||
- Run `pnpm build` for production build.
|
- 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
|
# TODOs
|
||||||
|
|
||||||
|
22
flake.nix
22
flake.nix
@ -9,15 +9,31 @@
|
|||||||
outputs = inp:
|
outputs = inp:
|
||||||
inp.parts.lib.mkFlake {inputs = inp;} {
|
inp.parts.lib.mkFlake {inputs = inp;} {
|
||||||
systems = import inp.systems;
|
systems = import inp.systems;
|
||||||
imports = [inp.naked-shell.flakeModule];
|
imports = [
|
||||||
perSystem = {config, pkgs, ...}: {
|
inp.naked-shell.flakeModule
|
||||||
|
];
|
||||||
|
perSystem = {
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
|
system,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
devShells.default = config.mk-naked-shell.lib.mkNakedShell {
|
devShells.default = config.mk-naked-shell.lib.mkNakedShell {
|
||||||
name = "musikspider-devshell";
|
name = "musikspider-devshell";
|
||||||
packages = with pkgs; [
|
packages = with pkgs; [
|
||||||
nodejs
|
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