Skip to content

Commit

Permalink
feat: add initial header
Browse files Browse the repository at this point in the history
  • Loading branch information
fbuireu committed Dec 14, 2023
1 parent 19fb839 commit f3d9ace
Show file tree
Hide file tree
Showing 59 changed files with 6,389 additions and 811 deletions.
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

yarn lint-staged
5 changes: 5 additions & 0 deletions .lintstagedrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"src/**/*.{ts,tsx,css}": [
"yarn format"
]
}
Binary file modified .yarn/install-state.gz
Binary file not shown.
893 changes: 893 additions & 0 deletions .yarn/releases/yarn-4.0.2.cjs

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion .yarnrc.yml
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
29 changes: 17 additions & 12 deletions astro.config.mjs
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,
},
},
},
});
8 changes: 8 additions & 0 deletions commitlint.config.js
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],
},
};
36 changes: 29 additions & 7 deletions package.json
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",
Expand All @@ -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"
}
}
12 changes: 12 additions & 0 deletions prettier.config.js
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;
14 changes: 14 additions & 0 deletions scripts/get-tsconfig.js
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;
52 changes: 0 additions & 52 deletions src/components/BaseHead.astro

This file was deleted.

62 changes: 0 additions & 62 deletions src/components/Footer.astro

This file was deleted.

17 changes: 0 additions & 17 deletions src/components/FormattedDate.astro

This file was deleted.

85 changes: 0 additions & 85 deletions src/components/Header.astro

This file was deleted.

Loading

0 comments on commit f3d9ace

Please sign in to comment.