Skip to content

Commit 7fc9c81

Browse files
committed
Configure Astro
1 parent ae47ab6 commit 7fc9c81

10 files changed

+1828
-922
lines changed

.gitignore

+5
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,11 @@ out/
107107
# Overmind files
108108
.overmind.sock
109109

110+
# build output
111+
dist/
112+
# generated types
113+
.astro/
114+
110115
# Generated files
111116
.build
112117
.assets

.vscode/extensions.json

+4
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

+11
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

+5-5
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
"editor.tabSize": 2,
33
"editor.insertSpaces": true,
44
"editor.detectIndentation": false,
5-
"eslint.autoFixOnSave": true,
65
"git.detectSubmodules": false,
76
"editor.rulers": [
87
80
@@ -17,13 +16,14 @@
1716
"editor.formatOnSaveMode": "file",
1817
"editor.defaultFormatter": "esbenp.prettier-vscode",
1918
},
20-
"[javascriptreact]": {
19+
"[scss]": {
2120
"editor.formatOnSaveMode": "file",
2221
"editor.defaultFormatter": "esbenp.prettier-vscode",
2322
},
24-
"[scss]": {
23+
"[astro]": {
2524
"editor.formatOnSaveMode": "file",
26-
"editor.defaultFormatter": "esbenp.prettier-vscode",
25+
"editor.defaultFormatter": "esbenp.prettier-vscode"
2726
},
28-
"workbench.editor.labelFormat": "short"
27+
"workbench.editor.labelFormat": "short",
28+
"prettier.documentSelectors": ["**/*.astro"]
2929
}

astro.config.mjs

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import { defineConfig } from 'astro/config';
2+
import settings from './src/settings/global.json';
3+
4+
// https://astro.build/config
5+
export default defineConfig({
6+
site: settings.websiteUrl,
7+
});

consts.ts

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
// Place any global data in this file.
2+
// You can import this data from anywhere in your site by using the `import` keyword.
3+
4+
export const SITE_TITLE = '30 seconds of code';
5+
export const SITE_DESCRIPTION = 'Short code snippets for all your development needs';

env.d.ts

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
/// <reference path="../.astro/types.d.ts" />
2+
/// <reference types="astro/client" />

0 commit comments

Comments
 (0)