Skip to content

Commit

Permalink
Merge branch 'main' into Community_Section
Browse files Browse the repository at this point in the history
  • Loading branch information
err53 authored Oct 2, 2023
2 parents 8f7aebd + 5b6db84 commit 807b1fc
Show file tree
Hide file tree
Showing 16 changed files with 545 additions and 132 deletions.
4 changes: 4 additions & 0 deletions .prettierrc.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/** @type {import("prettier").Config} */
export default {
plugins: ["prettier-plugin-astro", "prettier-plugin-tailwindcss"],
};
6 changes: 5 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
{
"editor.formatOnSave": true,
"editor.defaultFormatter": "esbenp.prettier-vscode"
"editor.defaultFormatter": "esbenp.prettier-vscode",
"prettier.documentSelectors": [
"**/*.astro"
],
"prettier.requireConfig": true
}
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,16 @@
- [Astro](https://astro.build/)
- [Tailwind CSS](https://tailwindcss.com/)
- [Lighthouse CI](https://github.com/GoogleChrome/lighthouse-ci)

## Getting Started

### Prerequisites

- NodeJS
- pnpm

### Steps

1. Pull the repo
2. `pnpm install`
3. `pnpm run dev`
13 changes: 11 additions & 2 deletions astro.config.mjs
Original file line number Diff line number Diff line change
@@ -1,9 +1,18 @@
import { defineConfig } from "astro/config";
import tailwind from "@astrojs/tailwind";

import critters from "astro-critters";

import partytown from "@astrojs/partytown";

// https://astro.build/config
export default defineConfig({
integrations: [tailwind(), critters()],
integrations: [
tailwind(),
partytown({
config: {
forward: ["dataLayer.push"],
},
}),
critters(),
],
});
4 changes: 3 additions & 1 deletion lighthouserc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ module.exports = {
// see: https://github.com/GoogleChrome/lighthouse/issues/14784
"bf-cache": "off",
// don't think it's possible to properly evaluate csp either
"csp-xss": ["off"],
"csp-xss": "off",
// google analytics has unused js, since we don't own it there's nothing we can do
"unused-javascript": "warn",
},
},
},
Expand Down
7 changes: 6 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@
"format": "prettier --write . --plugin=prettier-plugin-tailwindcss --plugin=prettier-plugin-astro"
},
"dependencies": {
"@astrojs/partytown": "^2.0.0",
"@astrojs/tailwind": "^5.0.0",
"@fontsource-variable/inter": "^5.0.8",
"@fontsource/poppins": "^5.0.8",
"@types/canvas-confetti": "^1.6.0",
"astro": "^3.0.7",
"astro-critters": "^2.0.11",
Expand All @@ -25,7 +28,9 @@
"lint-staged": "^14.0.1",
"prettier": "^3.0.3",
"prettier-plugin-astro": "^0.12.0",
"prettier-plugin-tailwindcss": "^0.5.4"
"prettier-plugin-tailwindcss": "^0.5.4",
"sharp": "^0.32.6",
"tailwindcss-text-fill-stroke": "^1.1.2"
},
"volta": {
"node": "18.17.1",
Expand Down
Loading

0 comments on commit 807b1fc

Please sign in to comment.