Skip to content

Commit 6c137a9

Browse files
committed
Init
0 parents  commit 6c137a9

27 files changed

+1849
-0
lines changed

.github/workflows/export.yml

+68
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
name: Build and Deploy
2+
on:
3+
push:
4+
branches: [ "main" ]
5+
paths:
6+
- "src/**/*"
7+
- "*.{js,json,ts}"
8+
- ".github/workflows/export.yml"
9+
workflow_dispatch:
10+
11+
permissions:
12+
contents: read
13+
pages: write
14+
id-token: write
15+
16+
concurrency:
17+
group: build-and-deploy
18+
cancel-in-progress: true
19+
20+
jobs:
21+
build:
22+
runs-on: ubuntu-latest
23+
steps:
24+
- name: Checkout repository
25+
uses: actions/checkout@v4
26+
27+
- name: Setup Node.js
28+
uses: actions/setup-node@v4
29+
with:
30+
node-version: '22.14'
31+
32+
- name: Setup Bun
33+
uses: oven-sh/setup-bun@v2
34+
with:
35+
bun-version: "1.2.5"
36+
37+
- name: Cache dependencies
38+
uses: actions/cache@v4
39+
with:
40+
path: ~/.bun/install/cache
41+
key: "${{ runner.os }}-bun-${{ hashFiles('**/bun.lock', '**/package.json') }}"
42+
restore-keys: |
43+
${{ runner.os }}-bun-
44+
45+
- name: Install dependencies
46+
run: bun install --frozen-lockfile
47+
48+
- name: Build project
49+
run: bun run build
50+
51+
- name: Setup Pages
52+
uses: actions/configure-pages@v5
53+
54+
- name: Upload artifact
55+
uses: actions/upload-pages-artifact@v3
56+
with:
57+
path: ./out
58+
59+
deploy:
60+
needs: build
61+
runs-on: ubuntu-latest
62+
environment:
63+
name: github-pages
64+
url: ${{ steps.deployment.outputs.page_url }}
65+
steps:
66+
- name: Deploy to GitHub Pages
67+
id: deployment
68+
uses: actions/deploy-pages@v4

.gitignore

+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2+
3+
# dependencies
4+
/node_modules
5+
/.pnp
6+
.pnp.*
7+
.yarn/*
8+
!.yarn/patches
9+
!.yarn/plugins
10+
!.yarn/releases
11+
!.yarn/versions
12+
13+
# testing
14+
/coverage
15+
16+
# next.js
17+
/.next/
18+
/out/
19+
20+
# production
21+
/build
22+
23+
# misc
24+
.DS_Store
25+
*.pem
26+
27+
# debug
28+
npm-debug.log*
29+
yarn-debug.log*
30+
yarn-error.log*
31+
32+
# env files (can opt-in for commiting if needed)
33+
.env*
34+
35+
# vercel
36+
.vercel
37+
38+
# typescript
39+
*.tsbuildinfo
40+
next-env.d.ts

.vscode/extensions.json

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"recommendations": [
3+
"yoavbls.pretty-ts-errors",
4+
"bradlc.vscode-tailwindcss"
5+
]
6+
}

.vscode/settings.json

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"files.associations": {
3+
"*.css": "tailwindcss"
4+
}
5+
}

LICENSE

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2025 kvba
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# meowpa.ws
2+
[meowpa.ws](https://meowpa.ws) is my personal page written in [Next.js](https://nextjs.org).
3+
4+
## Development
5+
In this example I'm gonna use [bun](https://bun.sh/) as a package manager and runtime as well as and [git](https://git-scm.com/) for cloning the repo.
6+
```bash
7+
# Clone repo
8+
$ git clone https://github.com/kvba5/kvba5.github.io
9+
10+
# Navigate to the project directory
11+
$ cd "kvba5.github.io"
12+
13+
# Install requirements
14+
$ bun install
15+
16+
# Run development server
17+
$ bun dev
18+
```
19+
If you made everything correctly, your dev server should run on `http://localhost:3000` (Please check terminal if it's otherwise)
20+
21+
## Building
22+
Considering you've followed [steps above](#development) you probably wonder how to build it? It's quite easy.
23+
```bash
24+
# Build the project
25+
$ bun build
26+
```
27+
And to see final results (where unlike with `bun dev` you'd have dev enviornment - with `bun build` you have already optimized files) just run `bun serve` which I included myself to the project.
28+
> [!IMPORTANT]
29+
> Since I'm using [static export](https://nextjs.org/docs/pages/building-your-application/deploying/static-exports) in the project to be able to host it on GitHub Pages, you need to host it on static server. Built-in `bun start` won't work as it works only for standalone/next server.
30+
31+
## Licensing
32+
As stated in [LICENSE file](/LICENSE), you can edit, modify or publish the code I included in here in any way as long as you provide any credit to it.

0 commit comments

Comments
 (0)