version 0.1.0

This commit is contained in:
Ivan Dimitrov 2023-12-19 16:33:47 +02:00
parent 59e5d22a5a
commit 54bd70ddc5
6 changed files with 1590 additions and 52 deletions

1
.gitignore vendored
View File

@ -1,3 +1,4 @@
node_modules
outputs
pid
result

BIN
bun.lockb

Binary file not shown.

View File

@ -15,11 +15,11 @@
};
outputs = { self, nixpkgs, flake-utils, systems, ide }:
flake-utils.lib.eachDefaultSystem (system:
let
system = "x86_64-linux";
pkgs = nixpkgs.legacyPackages.${system};
pname = "cv";
version = "0.0.1";
version = "0.1.0";
src = ./.;
nvim = ide.nvim.${system}.standalone {
plugins = {
@ -32,11 +32,10 @@
};
buildInputs = with pkgs; [
nvim
inotify-tools
];
nativeBuildInputs = with pkgs; [
nodejs_20
bun
inotify-tools
];
shellHook = ''
echo "$$" > ./pid
@ -54,11 +53,14 @@
devShells.default = pkgs.mkShell {
inherit pname buildInputs nativeBuildInputs shellHook;
};
packages.default = pkgs.stdenv.mkDerivation {
inherit buildInputs nativeBuildInputs pname version src;
packages.${system}.default = pkgs.buildNpmPackage rec {
inherit nativeBuildInputs pname version src;
npmDepsHash = "sha256-1fqP3HFhziup3U97t+Kx8JMAd+ZpJmz5WZATR1CaQZY=";
postInstall = ''
ls -alh
mkdir -p $out
rm -rf $out/lib
'';
};
};
});
}

View File

@ -2,12 +2,12 @@ main = $(pname).tsx
default: all
all:
-bun $(main)
bun $(main)
clean:
rm -f $(pname)
install: $(pname)
mkdir -p $(out)/bin
install $(pname).pdf $(out)/bin/$(pname)
mkdir -p $(out)
install $(pname).pdf $(out)/$(pname)

1531
package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

View File

@ -1,19 +1,23 @@
{
"name": "cv",
"version": "0.1.0",
"module": "cv.tsx",
"type": "module",
"devDependencies": {
"bun-types": "latest"
},
"scripts": {
"build": "bun cv.tsx"
},
"peerDependencies": {
"typescript": "^5.0.0"
"typescript": "latest"
},
"dependencies": {
"@react-pdf/renderer": "^3.1.14",
"@types/node": "^20.9.0",
"@types/react": "^18.2.37",
"react": "^18.2.0",
"react-pdf-tailwind": "^2.1.0"
"@react-pdf/renderer": "latest",
"@types/node": "latest",
"@types/react": "latest",
"react": "latest",
"react-pdf-tailwind": "latest"
},
"prettier": {
"trailingComma": "es5",