Skip to content

Commit

Permalink
Initial blog implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
JCapucho committed Jun 18, 2023
1 parent f4ed989 commit 876ded2
Show file tree
Hide file tree
Showing 37 changed files with 3,832 additions and 449 deletions.
32 changes: 32 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
module.exports = {
env: {
es2022: true,
browser: true,
},
extends: [
// Order is important here
"eslint:recommended",
"plugin:astro/recommended",
"plugin:astro/jsx-a11y-strict",
],
overrides: [
{
files: ["*.astro"],
parser: "astro-eslint-parser",
parserOptions: {
parser: "@typescript-eslint/parser",
extraFileExtensions: [".astro"],
},
rules: {},
},
{
// Define the configuration for `<script>` tag.
// Script in `<script>` is assigned a virtual file name with the `.js` extension.
files: ["**/*.astro/*.js", "*.astro/*.js"],
parser: "@typescript-eslint/parser",
rules: {
"prettier/prettier": "off",
},
},
],
};
25 changes: 23 additions & 2 deletions astro.config.mjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,25 @@
import { defineConfig } from 'astro/config';
import { defineConfig } from "astro/config";
import mdx from "@astrojs/mdx";
import prefetch from "@astrojs/prefetch";
import sitemap from "@astrojs/sitemap";
import tailwind from "@astrojs/tailwind";
import compress from "astro-compress";

import robotsTxt from "astro-robots-txt";

// https://astro.build/config
export default defineConfig({});
export default defineConfig({
site: "https://www.jcapucho.com",
integrations: [
mdx(),
prefetch(),
sitemap(),
tailwind({
config: {
applyBaseStyles: false,
},
}),
robotsTxt(),
compress(),
],
});
58 changes: 58 additions & 0 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

26 changes: 26 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
inputs.flake-utils.url = "github:numtide/flake-utils";

outputs = {
self,
nixpkgs,
flake-utils,
}:
flake-utils.lib.eachDefaultSystem
(
system: let
pkgs = nixpkgs.legacyPackages.${system};
in {
devShell = pkgs.mkShell {
buildInputs = with pkgs; [
nodejs
nodePackages.pnpm
nodePackages."@astrojs/language-server"
nodePackages.typescript-language-server
nodePackages.vscode-langservers-extracted
nodePackages."@tailwindcss/language-server"
];
};
}
);
}
29 changes: 26 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,32 @@
"start": "astro dev",
"build": "astro build",
"preview": "astro preview",
"astro": "astro"
"astro": "astro",
"format": "prettier --plugin-search-dir=. --write src",
"lint": "eslint src",
"lint:fix": "eslint src --fix"
},
"dependencies": {
"astro": "^2.4.1"
"@astrojs/mdx": "^0.19.7",
"@astrojs/prefetch": "^0.2.3",
"@astrojs/rss": "^2.4.3",
"@astrojs/sitemap": "^1.3.3",
"@astrojs/tailwind": "^3.1.3",
"astro": "^2.6.4",
"astro-compress": "^1.1.47",
"astro-icon": "^0.8.1",
"astro-robots-txt": "^0.5.0",
"tailwindcss": "^3.3.2",
"typescript": "^5.1.3"
},
"devDependencies": {
"@tailwindcss/typography": "^0.5.9",
"@typescript-eslint/parser": "^5.59.11",
"eslint": "^8.43.0",
"eslint-plugin-astro": "^0.27.1",
"eslint-plugin-jsx-a11y": "^6.7.1",
"prettier": "^2.8.8",
"prettier-plugin-astro": "^0.9.1",
"prettier-plugin-tailwindcss": "^0.3.0"
}
}
}
Loading

0 comments on commit 876ded2

Please sign in to comment.