Skip to content

Commit a8ee2d1

Browse files
committed
format and add prettier
1 parent 33be2b0 commit a8ee2d1

36 files changed

+6236
-4430
lines changed

.github/workflows/deploy.yml

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,42 @@
11
name: Deploy to GitHub Pages
22

33
on:
4-
# Trigger the workflow every time you push to the `main` branch
5-
# Using a different branch name? Replace `main` with your branch’s name
6-
push:
7-
branches: [main]
8-
# Allows you to run this workflow manually from the Actions tab on GitHub.
9-
workflow_dispatch:
4+
# Trigger the workflow every time you push to the `main` branch
5+
# Using a different branch name? Replace `main` with your branch’s name
6+
push:
7+
branches: [main]
8+
# Allows you to run this workflow manually from the Actions tab on GitHub.
9+
workflow_dispatch:
1010

1111
# Allow this job to clone the repo and create a page deployment
1212
permissions:
13-
contents: read
14-
pages: write
15-
id-token: write
13+
contents: read
14+
pages: write
15+
id-token: write
1616

1717
# Allow one concurrent deployment
1818
concurrency:
19-
group: "pages"
20-
cancel-in-progress: true
19+
group: "pages"
20+
cancel-in-progress: true
2121

2222
jobs:
23-
build:
24-
runs-on: ubuntu-latest
25-
steps:
26-
- name: Checkout your repository using git
27-
uses: actions/checkout@v3
28-
- name: Install, build, and upload your site output
29-
uses: withastro/action@v0
30-
with:
31-
package-manager: pnpm # The Node package manager that should be used to install dependencies and build your site. Automatically detected based on your lockfile. (optional)
23+
build:
24+
runs-on: ubuntu-latest
25+
steps:
26+
- name: Checkout your repository using git
27+
uses: actions/checkout@v3
28+
- name: Install, build, and upload your site output
29+
uses: withastro/action@v0
30+
with:
31+
package-manager: pnpm # The Node package manager that should be used to install dependencies and build your site. Automatically detected based on your lockfile. (optional)
3232

33-
deploy:
34-
needs: build
35-
runs-on: ubuntu-latest
36-
environment:
37-
name: github-pages
38-
url: ${{ steps.deployment.outputs.page_url }}
39-
steps:
40-
- name: Deploy to GitHub Pages
41-
id: deployment
42-
uses: actions/deploy-pages@v1
33+
deploy:
34+
needs: build
35+
runs-on: ubuntu-latest
36+
environment:
37+
name: github-pages
38+
url: ${{ steps.deployment.outputs.page_url }}
39+
steps:
40+
- name: Deploy to GitHub Pages
41+
id: deployment
42+
uses: actions/deploy-pages@v1

astro.config.mjs

Lines changed: 17 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -9,23 +9,21 @@ import { remarkReadingTime } from "./src/utils/remark-reading-time.mjs";
99

1010
// https://astro.build/config
1111
export default defineConfig({
12-
site: "https://mcpshsf.com/",
13-
integrations: [
14-
tailwind(),
15-
image({
16-
serviceEntryPoint: "@astrojs/image/sharp",
17-
}),
18-
svelte(),
19-
sitemap(),
20-
],
21-
vite: {
22-
ssr: {
23-
external: ["svgo"],
24-
},
25-
},
26-
markdown: {
27-
remarkPlugins: [
28-
remarkReadingTime,
29-
]
30-
}
12+
site: "https://mcpshsf.com/",
13+
integrations: [
14+
tailwind(),
15+
image({
16+
serviceEntryPoint: "@astrojs/image/sharp",
17+
}),
18+
svelte(),
19+
sitemap(),
20+
],
21+
vite: {
22+
ssr: {
23+
external: ["svgo"],
24+
},
25+
},
26+
markdown: {
27+
remarkPlugins: [remarkReadingTime],
28+
},
3129
});

package.json

Lines changed: 41 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,43 @@
11
{
2-
"name": "hsf-landing-page",
3-
"type": "module",
4-
"version": "0.0.1",
5-
"private": true,
6-
"scripts": {
7-
"dev": "astro dev",
8-
"build": "astro build",
9-
"preview": "astro preview",
10-
"astro": "astro",
11-
"format": "prettier --write .",
12-
"clean": "rimraf dist .astro node_modules"
13-
},
14-
"devDependencies": {
15-
"@astrojs/image": "^0.13.1",
16-
"@astrojs/tailwind": "^3.0.1",
17-
"@iconify/svelte": "^3.1.4",
18-
"@tailwindcss/typography": "^0.5.9",
19-
"@types/micromodal": "^0.3.3",
20-
"astro": "^2.1.9",
21-
"astro-icon": "^0.8.0",
22-
"prettier": "2.8.3",
23-
"prettier-plugin-tailwindcss": "^0.2.0",
24-
"rimraf": "^4.3.1",
25-
"svgo": "2.8.0",
26-
"tailwindcss-fluid-type": "^2.0.3"
27-
},
28-
"dependencies": {
29-
"@astrojs/sitemap": "^2.0.2",
30-
"@astrojs/svelte": "^2.1.0",
31-
"@fontsource-variable/lexend": "^5.0.8",
32-
"@fontsource-variable/lexend-exa": "^5.0.8",
33-
"github-slugger": "^2.0.0",
34-
"mdast-util-to-string": "^4.0.0",
35-
"micromodal": "^0.4.10",
36-
"reading-time": "^1.5.0",
37-
"sharp": "^0.31.3",
38-
"strip-bom": "^5.0.0",
39-
"svelte": "^3.58.0",
40-
"tailwindcss": "^3.2.4",
41-
"tiny-invariant": "^1.3.1"
42-
}
2+
"name": "hsf-landing-page",
3+
"type": "module",
4+
"version": "0.0.1",
5+
"private": true,
6+
"scripts": {
7+
"dev": "astro dev",
8+
"build": "astro build",
9+
"preview": "astro preview",
10+
"astro": "astro",
11+
"format": "prettier --use-tabs --tab-width=4 --write . --plugin=prettier-plugin-astro --plugin=prettier-plugin-tailwindcss",
12+
"clean": "rimraf dist .astro node_modules"
13+
},
14+
"devDependencies": {
15+
"@astrojs/image": "^0.13.1",
16+
"@astrojs/tailwind": "^3.0.1",
17+
"@iconify/svelte": "^3.1.4",
18+
"@tailwindcss/typography": "^0.5.9",
19+
"@types/micromodal": "^0.3.3",
20+
"astro": "^2.1.9",
21+
"astro-icon": "^0.8.0",
22+
"prettier": "2.8.3",
23+
"prettier-plugin-tailwindcss": "^0.2.0",
24+
"rimraf": "^4.3.1",
25+
"svgo": "2.8.0",
26+
"tailwindcss-fluid-type": "^2.0.3"
27+
},
28+
"dependencies": {
29+
"@astrojs/sitemap": "^2.0.2",
30+
"@astrojs/svelte": "^2.1.0",
31+
"@fontsource-variable/lexend": "^5.0.8",
32+
"@fontsource-variable/lexend-exa": "^5.0.8",
33+
"github-slugger": "^2.0.0",
34+
"mdast-util-to-string": "^4.0.0",
35+
"micromodal": "^0.4.10",
36+
"reading-time": "^1.5.0",
37+
"sharp": "^0.31.3",
38+
"strip-bom": "^5.0.0",
39+
"svelte": "^3.58.0",
40+
"tailwindcss": "^3.2.4",
41+
"tiny-invariant": "^1.3.1"
42+
}
4343
}

0 commit comments

Comments
 (0)