Skip to content

Commit

Permalink
Empty
Browse files Browse the repository at this point in the history
  • Loading branch information
aabccd021 committed Dec 5, 2024
1 parent 7171d9b commit 9fbad16
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 23 deletions.
3 changes: 0 additions & 3 deletions .envrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,2 @@
if ! has nix_direnv_version || ! nix_direnv_version 2.1.1; then
source_url "https://raw.githubusercontent.com/nix-community/nix-direnv/2.1.1/direnvrc" "sha256-b6qJ4r34rbE23yWjMqbmu3ia2z4b2wIlZUksBke/ol0="
fi
use flake
layout node
9 changes: 5 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,13 @@ jobs:
steps:
- uses: actions/checkout@v3

- name: Install Nix
uses: DeterminateSystems/nix-installer-action@main
- uses: DeterminateSystems/nix-installer-action@main

- run: nix run .#prettier-check
- uses: HatsuneMiku3939/direnv-action@v1

- run: nix run .#typescript-check
- run: prettier --check .

- run: tsc

- uses: JS-DevTools/npm-publish@v3
with:
Expand Down
Binary file modified bun.lockb
Binary file not shown.
19 changes: 4 additions & 15 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,29 +6,18 @@
outputs = { nixpkgs, ... }:
let
pkgs = nixpkgs.legacyPackages.x86_64-linux;

in
{

devShells.x86_64-linux.default = pkgs.mkShellNoCC {
shellHook = ''
export PLAYWRIGHT_BROWSERS_PATH=${pkgs.playwright-driver.browsers-chromium}
'';
buildInputs = [
pkgs.bun
pkgs.typescript
];
};

apps.x86_64-linux.prettier-check = {
type = "app";
program = toString(pkgs.writeShellScript "prettier-check" ''
${pkgs.nodePackages.prettier}/bin/prettier --check .
'');
};

apps.x86_64-linux.typescript-check = {
type = "app";
program = toString(pkgs.writeShellScript "typescript-check" ''
${pkgs.typescript}/bin/tsc --noEmit
'');
};

};
}
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@
"lint": "eslint . --ext ts"
},
"devDependencies": {
"@types/bun": "^1.1.14"
"@types/bun": "^1.1.14",
"playwright": "1.47.2",
"prettier": "^3.4.2",
"typescript": "^5.7.2"
}
}

0 comments on commit 9fbad16

Please sign in to comment.