-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
59 changed files
with
6,389 additions
and
811 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/bin/sh | ||
. "$(dirname "$0")/_/husky.sh" | ||
|
||
yarn lint-staged |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"src/**/*.{ts,tsx,css}": [ | ||
"yarn format" | ||
] | ||
} |
Binary file not shown.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
nodeLinker: "node-modules" | ||
nodeLinker: node-modules | ||
|
||
yarnPath: .yarn/releases/yarn-4.0.2.cjs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,30 @@ | ||
import { defineConfig } from 'astro/config'; | ||
import mdx from '@astrojs/mdx'; | ||
import sitemap from '@astrojs/sitemap'; | ||
import react from "@astrojs/react"; | ||
import partytown from "@astrojs/partytown"; | ||
import netlify from "@astrojs/netlify/functions"; | ||
import react from '@astrojs/react'; | ||
import partytown from '@astrojs/partytown'; | ||
import netlify from '@astrojs/netlify/functions'; | ||
import { astroImageTools } from 'astro-imagetools'; | ||
|
||
export default defineConfig({ | ||
site: 'https://biancafiore.me', | ||
integrations: [mdx(), sitemap(), react(), | ||
integrations: [ | ||
mdx(), sitemap(), react(), astroImageTools, | ||
partytown({ | ||
config: { | ||
forward: ["dataLayer.push"], | ||
}, | ||
})], | ||
output: "server", | ||
config: { | ||
forward: ['dataLayer.push'], | ||
}, | ||
})], | ||
output: 'server', | ||
adapter: netlify(), | ||
vite: { | ||
define: { | ||
'import.meta.env.PUBLIC_GOOGLE_ANALYTICS_ID': process.env.PUBLIC_GOOGLE_ANALYTICS_ID, | ||
}, | ||
server: { | ||
fs: { | ||
strict: false | ||
} | ||
} | ||
strict: false, | ||
}, | ||
}, | ||
}, | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
module.exports = { | ||
extends: ['@commitlint/config-conventional'], | ||
rules: { | ||
'scope-case': [2, 'always', ['lower-case', 'pascal-case', 'camel-case']], | ||
'scope-enum': [2, 'always', ['only-ui', 'deps', 'other']], | ||
'header-max-length': [2, 'always', 130], | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,33 @@ | ||
{ | ||
"name": "biancafiore", | ||
"packageManager": "[email protected]", | ||
"description": "A portfolio for the best content writer ever", | ||
"keywords": [ | ||
"astro", | ||
"typescript", | ||
"css", | ||
"netlify", | ||
"blog", | ||
"portfolio", | ||
"marketing", | ||
"content writing", | ||
"seo" | ||
], | ||
"author": "Ferran Buireu <[email protected]>", | ||
"version": "2.0.0", | ||
"packageManager": "[email protected]", | ||
"type": "module", | ||
"author": "Ferran Buireu <[email protected]>", | ||
"engines": { | ||
"node": ">=20.10.0" | ||
}, | ||
"scripts": { | ||
"dev": "astro dev", | ||
"start": "astro dev", | ||
"start": "yarn dev", | ||
"build": "astro check && astro build", | ||
"preview": "astro preview", | ||
"astro": "astro" | ||
"astro": "astro", | ||
"prepare": "husky install", | ||
"format": "prettier --write \"src/**/*.{ts,tsx}\" --config ./prettier.config.js", | ||
"format:check": "prettier --check \"src/**/*.{ts,tsx}\" --config ./prettier.config.js" | ||
}, | ||
"dependencies": { | ||
"@astrojs/mdx": "^2.0.0", | ||
|
@@ -27,10 +41,18 @@ | |
"@types/react": "^18.0.21", | ||
"@types/react-dom": "^18.0.6", | ||
"astro": "^4.0.3", | ||
"astro-imagetools": "^0.9.0", | ||
"gsap": "^3.12.3", | ||
"react": "^18.0.0", | ||
"react-dom": "^18.0.0" | ||
"react-dom": "^18.0.0", | ||
"react-router-dom": "^6.20.1" | ||
}, | ||
"resolutions": { | ||
"object-inspect": "1.10.2" | ||
"devDependencies": { | ||
"@testing-library/react": "^14.1.2", | ||
"@testing-library/react-hooks": "^8.0.1", | ||
"husky": "^8.0.3", | ||
"lint-staged": "^15.2.0", | ||
"prettier": "3.1.1", | ||
"vitest": "^1.0.4" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
/** @type {import('prettier').Config} */ | ||
const config = { | ||
semi: true, | ||
singleQuote: true, | ||
trailingComma: 'es5', | ||
arrowParens: 'always', | ||
proseWrap: 'always', | ||
xmlWhitespaceSensitivity: 'ignore', | ||
bracketSpacing: true, | ||
}; | ||
|
||
export default config; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
// @ts-check | ||
|
||
const ts = require('typescript'); | ||
const { readFileSync } = require('node:fs'); | ||
const assert = require('node:assert'); | ||
|
||
const tsconfigPath = require.resolve('../tsconfig.json'); | ||
const { config, error } = ts.readConfigFile(tsconfigPath, (path) => | ||
readFileSync(path, 'utf-8'), | ||
); | ||
|
||
assert(!error); | ||
|
||
module.exports = config; |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.