Skip to content

Commit acebb11

Browse files
Initial commit
0 parents  commit acebb11

35 files changed

+5518
-0
lines changed

.devcontainer/devcontainer.json

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
2+
// README at: https://github.com/devcontainers/templates/tree/main/src/javascript-node
3+
{
4+
"name": "Node.js",
5+
"image": "mcr.microsoft.com/devcontainers/javascript-node:16-bullseye"
6+
7+
// Features to add to the dev container. More info: https://containers.dev/features.
8+
// "features": {},
9+
10+
// Use 'forwardPorts' to make a list of ports inside the container available locally.
11+
// "forwardPorts": [],
12+
13+
// Use 'postCreateCommand' to run commands after the container is created.
14+
// "postCreateCommand": "yarn install",
15+
16+
// Configure tool-specific properties.
17+
// "customizations": {},
18+
19+
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
20+
// "remoteUser": "root"
21+
}

.gitignore

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# build output
2+
dist/
3+
.output/
4+
5+
# dependencies
6+
node_modules/
7+
8+
# logs
9+
npm-debug.log*
10+
yarn-debug.log*
11+
yarn-error.log*
12+
pnpm-debug.log*
13+
14+
# environment variables
15+
.env
16+
.env.production
17+
18+
# macOS-specific files
19+
.DS_Store
20+
21+
# we use pnpm for package management
22+
package-lock.json
23+
yarn.lock
24+
25+
# other folders
26+
.vercel
27+
.netlify

.vscode/extensions.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"recommendations": ["astro-build.astro-vscode"],
3+
"unwantedRecommendations": []
4+
}

.vscode/launch.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"version": "0.2.0",
3+
"configurations": [
4+
{
5+
"command": "./node_modules/.bin/astro dev",
6+
"name": "Development server",
7+
"request": "launch",
8+
"type": "node-terminal"
9+
}
10+
]
11+
}

.vscode/settings.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"deno.enable": true,
3+
"deno.enablePaths": ["netlify/edge-functions"],
4+
"deno.unstable": true,
5+
"deno.importMap": ".netlify/edge-functions-import-map.json",
6+
"deno.path": "/home/codespace/.config/netlify/deno-cli/deno"
7+
}

astro.config.ts

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
import { defineConfig } from "astro/config";
2+
import compress from "astro-compress";
3+
import sitemap from "@astrojs/sitemap";
4+
import tailwind from "@astrojs/tailwind";
5+
import mdx from "@astrojs/mdx";
6+
import image from "@astrojs/image";
7+
import astroLayouts from "astro-layouts";
8+
import codeTitle from "remark-code-title";
9+
10+
// https://astro.build/config
11+
export default defineConfig({
12+
site: "https://basicblog.pages.dev",
13+
markdown: {
14+
extendDefaultPlugins: true,
15+
shikiConfig: {
16+
theme: "dark-plus",
17+
},
18+
remarkPlugins: [
19+
[
20+
astroLayouts,
21+
{
22+
default: "@layouts/Layout.astro",
23+
posts: "@layouts/BlogLayout.astro",
24+
},
25+
],
26+
codeTitle,
27+
],
28+
},
29+
30+
base: "/",
31+
integrations: [
32+
compress({
33+
css: true,
34+
html: true,
35+
js: true,
36+
img: true,
37+
svg: true,
38+
logger: 0,
39+
}),
40+
tailwind(),
41+
sitemap(),
42+
mdx(),
43+
image({
44+
serviceEntryPoint: "@astrojs/image/sharp",
45+
}),
46+
],
47+
});

license

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2022 Lance Ross
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

package.json

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
"name": "basicblog",
3+
"version": "1.0.0",
4+
"private": true,
5+
"scripts": {
6+
"dev": "astro dev",
7+
"build": "astro build",
8+
"preview": "astro build && astro preview"
9+
},
10+
"devDependencies": {
11+
"@astrojs/image": "^0.11.6",
12+
"@astrojs/mdx": "^0.11.6",
13+
"@astrojs/rss": "^1.2.1",
14+
"@astrojs/sitemap": "^1.0.0",
15+
"@astrojs/tailwind": "^2.1.3",
16+
"@fontsource/fira-code": "^4.5.12",
17+
"@fontsource/inter": "^4.5.14",
18+
"@tailwindcss/typography": "^0.5.8",
19+
"astro": "^1.7.2",
20+
"astro-compress": "1.0.8",
21+
"astro-icon": "^0.8.0",
22+
"astro-layouts": "^0.0.6",
23+
"remark-code-title": "^0.2.2",
24+
"sharp": "^0.31.2",
25+
"tailwind-scrollbar": "^2.0.1",
26+
"tailwindcss": "^3.2.4"
27+
}
28+
}

0 commit comments

Comments
 (0)