Skip to content

Commit

Permalink
💥 [Astro] Complete refactor 2024
Browse files Browse the repository at this point in the history
  • Loading branch information
beefchimi committed Jul 21, 2024
1 parent 6a4d866 commit 52c2316
Show file tree
Hide file tree
Showing 309 changed files with 17,749 additions and 17,680 deletions.
13 changes: 0 additions & 13 deletions .babelrc

This file was deleted.

2 changes: 0 additions & 2 deletions .browserslistrc

This file was deleted.

2 changes: 1 addition & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# editorconfig.org
root = true

[*]
charset = utf-8
end_of_line = lf
indent_size = 2
indent_style = space
insert_final_newline = true
Expand Down
4 changes: 0 additions & 4 deletions .eslintignore

This file was deleted.

26 changes: 0 additions & 26 deletions .eslintrc.js

This file was deleted.

35 changes: 35 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
🧰 Dependency:
- changed-files:
- any-glob-to-any-file: 'package-lock.json'

📚 Documentation:
- changed-files:
- any-glob-to-any-file: ['README.md', 'docs/**']

⚖️ Legal:
- changed-files:
- any-glob-to-any-file: 'LICENSE'

🧪 Testing:
- changed-files:
- any-glob-to-any-file: '**/*.test.ts'

🛠️ Tooling:
- changed-files:
- any-glob-to-any-file:
[
'.astro/**',
'.github/**',
'.vscode/**',
'.editorconfig',
'.gitignore',
'.npmignore',
'.nvmrc',
'.prettierignore',
'.prettierrc',
'config/**',
'astro.config.mjs',
'eslint.config.mjs',
'package.json',
'tsconfig.json',
]
19 changes: 19 additions & 0 deletions .github/workflows/labels.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: 🗃️ PR Labels
on: [pull_request_target]

jobs:
triage:
runs-on: ubuntu-latest

permissions:
contents: read
pull-requests: write

steps:
- name: 🗳️ Checkout repo
uses: actions/checkout@v4

- name: 🍭 Apply PR labels
uses: actions/labeler@v5
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
26 changes: 26 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: 🤖 Lint
on: [push]

jobs:
lint:
name: Lint the codebase
runs-on: ubuntu-latest

steps:
- name: 🗳️ Checkout repo
uses: actions/checkout@v4

- name: 🔧 Setup Node 20.x
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
cache: 'npm'

- name: 📦 Install dependencies
run: npm ci

- name: 🎨 Lint
run: npm run lint

- name: 💄 Prettier
run: npm run format
23 changes: 23 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: 🧪 Test
on: [push]

jobs:
test:
name: Run test suites
runs-on: ubuntu-latest

steps:
- name: 🗳️ Checkout repo
uses: actions/checkout@v4

- name: 🔧 Setup Node 20.x
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
cache: 'npm'

- name: 📦 Install dependencies
run: npm ci

- name: 🧑‍🔬 Test
run: npm run test
77 changes: 64 additions & 13 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,34 +1,52 @@
scrap

# OS files
.DS_Store
._*

# Files that might appear in the root of a volume
.DocumentRevisions-V100
.fseventsd
.Spotlight-V100
.TemporaryItems
.Trashes
.VolumeIcon.icns
.com.apple.timemachine.donotpresent

# Directories potentially created on remote AFP share
.AppleDB
.AppleDesktop
Network Trash Folder
Temporary Items
.apdisk

# Caches
.astro/
.cache
.eslintcache
.sass-cache
.npm
*.tsbuildinfo

# Dev
.dev
# Build
build
dev-dist
dist
dist-ssr
storybook-static

# Environment
.env
.env.test
.env.production

# Build
scrap
dist
# Vite
*.local

# Secrets
secrets.json

# Reports
assets-manifest.json
bundle-report.html

# Node/yarn
node_modules
.yarn-integrity
# Maps
# *.*.map

# Coverage
coverage
Expand All @@ -41,9 +59,42 @@ logs
npm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*
.pnpm-debug.log*
*storybook.log

# Reports
assets-manifest.json
bundle-report.html
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json

# Runtime data
pids
*.pid
*.seed
*.pid.lock

# Dependencies
.lock-wscript
.node_repl_history
.npm
.yarn-integrity
node_modules
web_modules/

# Output of 'npm pack'
*.tgz

# Yarn common
.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions

# Yarn Zero-Installs
# !.yarn/cache

# Yarn Non-Zero
.pnp.*
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v13.5.0
22.4
6 changes: 0 additions & 6 deletions .prettierignore

This file was deleted.

6 changes: 2 additions & 4 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
{
"arrowParens": "always",
"plugins": ["prettier-plugin-astro"],
"bracketSpacing": false,
"printWidth": 100,
"singleQuote": true,
"trailingComma": "all"
"singleQuote": true
}
6 changes: 0 additions & 6 deletions .stylelintignore

This file was deleted.

32 changes: 0 additions & 32 deletions .stylelintrc

This file was deleted.

18 changes: 8 additions & 10 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,15 @@
{
"recommendations": [
"bungcip.better-toml",
"astro-build.astro-vscode",
"codezombiech.gitignore",
"github.vscode-github-actions",
"EditorConfig.editorconfig",
"christian-kohler.npm-intellisense",
"christian-kohler.path-intellisense",
"codezombiech.gitignore",
"aaron-bond.better-comments",
"DavidAnson.vscode-markdownlint",
"dbaeumer.vscode-eslint",
"EditorConfig.editorconfig",
"esbenp.prettier-vscode",
"Gruntfuggly.todo-tree",
"hex-ci.stylelint-plus",
"mariusschulz.yarn-lock-syntax",
"mrmlnc.vscode-scss",
"ronnidc.nunjucks"
]
"esbenp.prettier-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"
}
]
}
Loading

0 comments on commit 52c2316

Please sign in to comment.