Skip to content

Commit 0872519

Browse files
authored
Merge pull request #11 from milan-codes/dev
Updated dependencies, config changes
2 parents 40404b6 + 78debf5 commit 0872519

11 files changed

Lines changed: 76 additions & 35 deletions

File tree

.editorconfig

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
root = true
2+
end_of_line = lf
3+
charset = utf-8

.envrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
use flake

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,5 @@ pnpm-debug.log*
1919

2020
# macOS-specific files
2121
.DS_Store
22+
23+
.direnv

.vscode/extensions.json

Lines changed: 0 additions & 4 deletions
This file was deleted.

.vscode/launch.json

Lines changed: 0 additions & 11 deletions
This file was deleted.

README.md

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,16 @@ This is my personal portfolio and blog template. It allows you to create blog po
1111
- Plausible Analytics: Analytics integration with Plausible allows you to track visitor statistics and gain insights into the site's performance.
1212
- Light and Dark Theme: The site includes both light and dark themes, and the current theme is set based on system settings.
1313

14-
## Installation
14+
## Development
1515

16-
1. Clone the repository to your local machine.
17-
2. Install the necessary dependencies by running `bun install`.
18-
3. Customize the site's content and configuration files to reflect your personal information and preferences.
19-
4. Deploy the site, according to [Astro's documentation](https://docs.astro.build/en/guides/deploy/), to your hosting provider of choice.
16+
This repository includes a Nix Flakes-based development environment. If Nix is configured on your system, run `nix develop` to enter the development environment. Optionally, [direnv](https://github.com/direnv/direnv) can automatically do this for you, when you change into the directory.
17+
18+
1. Install the necessary dependencies by running `bun install`.
19+
2. Start the development server by running `bun dev`.
20+
21+
## Deployment
22+
23+
This repository contains a workflow that automatically deploys to GitHub Pages, for other options refer to [Astro's deployment guide](https://docs.astro.build/en/guides/deploy/).
2024

2125
## Usage
2226

bun.lockb

16 KB
Binary file not shown.

eslint.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,6 @@ export default [
3939
},
4040
},
4141
{
42-
ignores: [".astro/**"],
42+
ignores: [".astro/**", "dist/**"],
4343
},
4444
];

flake.lock

Lines changed: 25 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
description = "A Nix-flake-based Bun development environment";
3+
inputs = {
4+
nixpkgs.url = "https://flakehub.com/f/NixOS/nixpkgs/*";
5+
};
6+
outputs = { self, nixpkgs }:
7+
let
8+
supportedSystems = [ "x86_64-linux" "aarch64-darwin" "x86_64-darwin" "aarch64-linux" ];
9+
forEachSupportedSystem = f: nixpkgs.lib.genAttrs supportedSystems (system: f {
10+
pkgs = import nixpkgs { inherit system; };
11+
});
12+
in {
13+
devShells = forEachSupportedSystem ({ pkgs }: {
14+
default = pkgs.mkShell {
15+
packages = with pkgs; [
16+
bun
17+
];
18+
};
19+
});
20+
};
21+
}

0 commit comments

Comments
 (0)