Skip to content

Commit

Permalink
feat: introducing Astro, sunsetting Gatsby.js
Browse files Browse the repository at this point in the history
  • Loading branch information
maxpou committed Feb 5, 2024
1 parent 57d5efb commit 3ea2576
Show file tree
Hide file tree
Showing 518 changed files with 8,021 additions and 25,478 deletions.
25 changes: 19 additions & 6 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,21 @@
# build output
dist/
# generated types
.astro/

# dependencies
node_modules/
public
.gatsby-context.js

# logs
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*


# environment variables
.env
.env.production

# macOS-specific files
.DS_Store
.intermediate-representation/
.cache/
.yalc
.vscode
29 changes: 16 additions & 13 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -1,16 +1,19 @@
{
arrowParens: 'avoid',
endOfLine: 'lf',
printWidth: 80,
proseWrap: 'always',
semi: false,
singleQuote: true,
tabWidth: 2,
trailingComma: 'es5',
overrides: [{
files: ['*.md', '*.mdx'],
options: {
printWidth: 100
"arrowParens": "avoid",
"endOfLine": "lf",
"printWidth": 80,
"proseWrap": "always",
"semi": false,
"singleQuote": true,
"useTabs": false,

"plugins": ["prettier-plugin-astro"],
"overrides": [
{
"files": ["*.md", "*.mdx"],
"options": {
"printWidth": 100
}
}
}]
]
}
11 changes: 11 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"version": "0.2.0",
"configurations": [
{
"command": "./node_modules/.bin/astro dev",
"name": "Development server",
"request": "launch",
"type": "node-terminal"
}
]
}
6 changes: 6 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"editor.formatOnSave": true,
"editor.defaultFormatter": "esbenp.prettier-vscode",
"prettier.documentSelectors": ["**/*.astro"],
"tailwindCSS.classAttributes": ["class", "class:list", "className", "ngClass"]
}
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2015-2020 Maxence Poutord
Copyright (c) 2014-2024 Maxence Poutord

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
24 changes: 24 additions & 0 deletions astro.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
import { defineConfig } from 'astro/config'
import mdx from '@astrojs/mdx'
import sitemap from '@astrojs/sitemap'
import preact from '@astrojs/preact'
import tailwind from '@astrojs/tailwind'

import { SITE_URL } from './src/consts'
import { getLegacyPostRedirections } from './src/utils/301'

// https://astro.build/config
export default defineConfig({
site: SITE_URL,
markdown: {
syntaxHighlight: 'prism',
shikiConfig: {
theme: 'one-dark-pro',
},
},
redirects: {
'/blog/pages/1': '/blog',
...getLegacyPostRedirections(),
},
integrations: [mdx(), sitemap(), tailwind(), preact()],
})
133 changes: 0 additions & 133 deletions content/_drafts/2020-code-review/code-review.md

This file was deleted.

Binary file removed content/_drafts/2020-code-review/cover.jpeg
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
49 changes: 0 additions & 49 deletions content/_drafts/2022-05-08-git-log-next-level/index.mdx

This file was deleted.

40 changes: 0 additions & 40 deletions content/_drafts/JS-snippets/index.mdx

This file was deleted.

Loading

0 comments on commit 3ea2576

Please sign in to comment.