Skip to content

Commit

Permalink
refactor: init
Browse files Browse the repository at this point in the history
  • Loading branch information
rqbazan committed Jul 14, 2024
1 parent ac7e338 commit 1dce27a
Show file tree
Hide file tree
Showing 80 changed files with 1,290 additions and 7,772 deletions.
29 changes: 0 additions & 29 deletions .eslintrc.json

This file was deleted.

37 changes: 6 additions & 31 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,36 +15,11 @@ jobs:
- name: ⬇️ Checkout repo
uses: actions/checkout@master

- name: ⎔ Setup node
uses: actions/setup-node@v3
with:
node-version: 16

- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: 7
run_install: false

- name: Get pnpm store directory
id: pnpm-cache
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
- name: Setup pnpm cache
uses: actions/cache@v3
with:
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: 📥 Install dependencies
run: pnpm install
- name: 🍞 Setup bun.sh
uses: oven-sh/setup-bun@v1

- name: 🔎 Static testing
run: pnpm run test:static
- name: 📦 Install dependencies
run: bun install

- name: ⚡ Unit testing
run: pnpm run test:unit --passWithNoTests
- name: 🔎 Static testing
run: bun test:static
59 changes: 14 additions & 45 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,55 +1,24 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
# build output
dist/

# dependencies
/node_modules
/.pnp
.pnp.js

# testing
/coverage

# next.js
/.next/
/out/
# generated types
.astro/

# production
/build

# misc
.DS_Store
*.pem
# dependencies
node_modules/

# debug
# logs
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*

# local env files
# environment variables
.env
.env.local
.env.development.local
.env.test.local
.env.production.local
!.env.example

# vercel
.vercel

# typescript
*.tsbuildinfo
.env.production

# storybook
storybook-static
storybook

# cypress
cypress/videos
cypress/screenshots
# macOS-specific files
.DS_Store

# custom
*.log
.yalc
yalc.lock
public/sitemap.xml
public/robots.txt
.vscode
# jetbrains setting folder
.idea/
1 change: 0 additions & 1 deletion .nvmrc

This file was deleted.

4 changes: 4 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"recommendations": ["astro-build.astro-vscode"],
"unwantedRecommendations": []
}
11 changes: 11 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"version": "0.2.0",
"configurations": [
{
"command": "./node_modules/.bin/astro dev",
"name": "Development server",
"request": "launch",
"type": "node-terminal"
}
]
}
18 changes: 18 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"[typescript]": {
"editor.defaultFormatter": "biomejs.biome"
},
"[typescriptreact]": {
"editor.defaultFormatter": "biomejs.biome"
},
"[javascript]": {
"editor.defaultFormatter": "biomejs.biome"
},
"[javascriptreact]": {
"editor.defaultFormatter": "biomejs.biome"
},
"editor.codeActionsOnSave": {
"quickfix.biome": "explicit",
"source.organizeImports.biome": "explicit"
}
}
12 changes: 8 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,18 @@
# rcrd.space 🦉

- **Framework**: [Next.js](https://nextjs.org)
- **Framework**: [Astro](https://astro.build)
- **Deployment**: [Vercel](https://vercel.com)
- **Styling**: [Tailwind CSS](https://tailwindcss.com) and [Stitches](https://stitches.dev)
- **Styling**: [Tailwind CSS](https://tailwindcss.com)

## Running Locally

```bash
git clone https://github.com/rqbazan/rcrd.space.git
cd rcrd.space
pnpm i
pnpm dev
bun i
bun dev
```

## Documentation

- [Definition of Done](./docs/definition-of-done.md)
20 changes: 20 additions & 0 deletions astro.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import react from "@astrojs/react";
import sitemap from "@astrojs/sitemap";
import tailwind from "@astrojs/tailwind";
import { defineConfig } from "astro/config";

// https://astro.build/config
export default defineConfig({
site: "https://rcrd.space",
integrations: [
react(),
tailwind({
applyBaseStyles: false,
nesting: true,
}),
sitemap({
changefreq: "daily",
lastmod: new Date(),
}),
],
});
28 changes: 28 additions & 0 deletions biome.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"$schema": "https://biomejs.dev/schemas/1.8.3/schema.json",
"vcs": {
"enabled": true,
"clientKind": "git",
"useIgnoreFile": true
},
"organizeImports": {
"enabled": true
},
"linter": {
"enabled": true,
"rules": {
"recommended": true
}
},
"formatter": {
"enabled": true,
"indentStyle": "space"
},
"javascript": {
"globals": ["Astro"],
"formatter": {
"quoteStyle": "double",
"semicolons": "always"
}
}
}
Binary file added bun.lockb
Binary file not shown.
42 changes: 42 additions & 0 deletions docs/definition-of-done.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# Definition of Done

- Pages

- [x] Home
- [x] Uses
- [x] Projects
- [ ] Blog

- Quality

- [x] Custom Font
- [ ] Responsive Images
- [ ] Blur Placeholder Images
- [ ] Fluid Typography

- SEO

- [x] Basics
- [x] Favicon
- [x] Sitemap
- [x] Robots.txt
- [x] Open Graph
- [x] Twitter Card
- [ ] RSS
- [ ] Analytics

- Theme

- [x] Color Scheme
- [x] Avoid Flashing

- Animation

- [x] Page Transitions
- [ ] Disable Animations on Reduced Motion

- Deployment

- [x] CI/CD: Github Actions
- [x] Deploy Provider: Vercel
- [x] Redirects: `vercel.json`
7 changes: 0 additions & 7 deletions jest.config.js

This file was deleted.

5 changes: 0 additions & 5 deletions next-env.d.ts

This file was deleted.

18 changes: 0 additions & 18 deletions next.config.js

This file was deleted.

Loading

0 comments on commit 1dce27a

Please sign in to comment.