Skip to content

Commit d79268a

Browse files
Merge pull request #519 from willtheorangeguy/new
Update to Astro v5 and AstroPaper v5
2 parents 019ce84 + 989eb88 commit d79268a

File tree

325 files changed

+13316
-16772
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

325 files changed

+13316
-16772
lines changed

.eslintignore

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

.eslintrc.js

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

.github/workflows/astro.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
# Sample workflow for building and deploying an Astro site to GitHub Pages
2-
#
3-
# To get started with Astro see: https://docs.astro.build/en/getting-started/
4-
#
51
name: Deploy Astro site to Pages
62

73
on:

.github/workflows/ci.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: CI
2+
3+
on:
4+
pull_request:
5+
types:
6+
- opened
7+
- edited
8+
- synchronize
9+
- reopened
10+
workflow_call:
11+
12+
jobs:
13+
build:
14+
name: Code standards & build
15+
runs-on: ubuntu-latest
16+
timeout-minutes: 3
17+
18+
strategy:
19+
matrix:
20+
node-version: [20]
21+
22+
steps:
23+
- name: "☁️ Checkout repository"
24+
uses: actions/checkout@v4
25+
26+
- name: "📦 Install pnpm"
27+
uses: pnpm/action-setup@v4
28+
with:
29+
version: 10
30+
31+
- name: Use Node.js ${{ matrix.node-version }}
32+
uses: actions/setup-node@v4
33+
with:
34+
node-version: ${{ matrix.node-version }}
35+
cache: "pnpm"
36+
37+
- name: "📦 Install dependencies"
38+
run: pnpm install
39+
40+
- name: "🔎 Lint code"
41+
run: pnpm run lint
42+
43+
- name: "📝 Checking code format"
44+
run: pnpm run format:check
45+
46+
- name: "🚀 Build the project"
47+
run: pnpm run build

.gitignore

Lines changed: 18 additions & 124 deletions
Original file line numberDiff line numberDiff line change
@@ -1,134 +1,28 @@
1-
# Logs
2-
logs
3-
*.log
4-
npm-debug.log*
5-
yarn-debug.log*
6-
yarn-error.log*
7-
lerna-debug.log*
8-
.pnpm-debug.log*
9-
10-
# Diagnostic reports (https://nodejs.org/api/report.html)
11-
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
12-
13-
# Runtime data
14-
pids
15-
*.pid
16-
*.seed
17-
*.pid.lock
18-
19-
# Directory for instrumented libs generated by jscoverage/JSCover
20-
lib-cov
21-
22-
# Coverage directory used by tools like istanbul
23-
coverage
24-
*.lcov
25-
26-
# nyc test coverage
27-
.nyc_output
28-
29-
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
30-
.grunt
1+
# build output
2+
dist/
313

32-
# Bower dependency directory (https://bower.io/)
33-
bower_components
34-
35-
# node-waf configuration
36-
.lock-wscript
37-
38-
# Compiled binary addons (https://nodejs.org/api/addons.html)
39-
build/Release
40-
41-
# Dependency directories
42-
node_modules/
43-
jspm_packages/
4+
# generated types
445
.astro/
45-
.husky/
46-
.vscode/
47-
.frontmatter/
48-
49-
# Snowpack dependency directory (https://snowpack.dev/)
50-
web_modules/
51-
52-
# TypeScript cache
53-
*.tsbuildinfo
54-
55-
# Optional npm cache directory
56-
.npm
57-
58-
# Optional eslint cache
59-
.eslintcache
606

61-
# Optional stylelint cache
62-
.stylelintcache
63-
64-
# Microbundle cache
65-
.rpt2_cache/
66-
.rts2_cache_cjs/
67-
.rts2_cache_es/
68-
.rts2_cache_umd/
69-
70-
# Optional REPL history
71-
.node_repl_history
72-
73-
# Output of 'npm pack'
74-
*.tgz
7+
# dependencies
8+
node_modules/
759

76-
# Yarn Integrity file
77-
.yarn-integrity
10+
# logs
11+
npm-debug.log*
12+
yarn-debug.log*
13+
yarn-error.log*
14+
pnpm-debug.log*
7815

79-
# dotenv environment variable files
16+
# environment variables
8017
.env
81-
.env.development.local
82-
.env.test.local
83-
.env.production.local
84-
.env.local
85-
86-
# parcel-bundler cache (https://parceljs.org/)
87-
.cache
88-
.parcel-cache
89-
90-
# Next.js build output
91-
.next
92-
out
93-
94-
# Nuxt.js build / generate output
95-
.nuxt
96-
dist
97-
98-
# Gatsby files
99-
.cache/
100-
# Comment in the public line in if your project uses Gatsby and not Next.js
101-
# https://nextjs.org/blog/next-9-1#public-directory-support
102-
# public
103-
104-
# vuepress build output
105-
.vuepress/dist
106-
107-
# vuepress v2.x temp and cache directory
108-
.temp
109-
.cache
110-
111-
# Docusaurus cache and generated files
112-
.docusaurus
113-
114-
# Serverless directories
115-
.serverless/
116-
117-
# FuseBox cache
118-
.fusebox/
18+
.env.production
11919

120-
# DynamoDB Local files
121-
.dynamodb/
20+
# macOS-specific files
21+
.DS_Store
12222

123-
# TernJS port file
124-
.tern-port
23+
# jetbrains setting folder
24+
.idea/
12525

126-
# Stores VSCode versions used for testing VSCode extensions
127-
.vscode-test
26+
# pagefind
12827

129-
# yarn v2
130-
.yarn/cache
131-
.yarn/unplugged
132-
.yarn/build-state.yml
133-
.yarn/install-state.gz
134-
.pnp.*
28+
public/pagefind

.npmrc

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

.prettierignore

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,9 @@
66
!/public
77
!/.github
88
!tsconfig.json
9-
!astro.config.mjs
9+
!astro.config.ts
10+
!.prettierrc.mjs
1011
!package.json
1112
!.prettierrc
12-
!.eslintrc.js
13+
!eslint.config.js
1314
!README.md

.prettierrc

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

.prettierrc.mjs

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
/** @type {import("prettier").Config} */
2+
export default {
3+
arrowParens: "avoid",
4+
semi: true,
5+
tabWidth: 2,
6+
printWidth: 80,
7+
singleQuote: false,
8+
jsxSingleQuote: false,
9+
trailingComma: "es5",
10+
bracketSpacing: true,
11+
endOfLine: "lf",
12+
plugins: ["prettier-plugin-astro", "prettier-plugin-tailwindcss"],
13+
tailwindStylesheet: "./src/styles/global.css",
14+
overrides: [
15+
{
16+
files: "*.astro",
17+
options: {
18+
parser: "astro",
19+
},
20+
},
21+
],
22+
};

.vscode/astro-paper.code-snippets

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
{
2+
"Frontmatter": {
3+
"scope": "markdown",
4+
"prefix": "frontmatter",
5+
"body": [
6+
"---",
7+
"author: $1",
8+
"pubDatetime: $CURRENT_YEAR-$CURRENT_MONTH-${CURRENT_DATE}T$CURRENT_HOUR:$CURRENT_MINUTE:$CURRENT_SECOND.000$CURRENT_TIMEZONE_OFFSET",
9+
"modDatetime: $3",
10+
"title: $4",
11+
"featured: ${5|false,true|}",
12+
"draft: ${6|true,false|}",
13+
"tags:",
14+
" - $7",
15+
"description: $8",
16+
"---",
17+
],
18+
"description": "Adds the frontmatter block for the AstroPaper Blog post"
19+
},
20+
"Blog Template": {
21+
"scope": "markdown",
22+
"prefix": "template",
23+
"body": [
24+
"${1:frontmatter}",
25+
"",
26+
"${2: Introductory Sentence}",
27+
"",
28+
"## Table of contents",
29+
"",
30+
"## ${3: heading 1}",
31+
],
32+
"description": "Adds the template for the AstroPaper Blog post. You will need to trigger the snippet modal on the 'frontmatter' line to insert the other snipper."
33+
}
34+
}

0 commit comments

Comments
 (0)