Skip to content

Commit

Permalink
feat: add base
Browse files Browse the repository at this point in the history
  • Loading branch information
Vexcited committed May 28, 2023
0 parents commit 57ace3f
Show file tree
Hide file tree
Showing 17 changed files with 3,820 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Build output.
dist/

# Generated types.
.astro/

# Dependencies.
node_modules/

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

# Environment variables.
.env*
!.env.example

# Miscs.
.DS_Store
6 changes: 6 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"recommendations": [
"astro-build.astro-vscode",
"antfu.unocss"
]
}
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"
}
]
}
7 changes: 7 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"editor.detectIndentation": false,
"editor.insertSpaces": true,
"editor.tabSize": 2,

"unocss.root": "."
}
18 changes: 18 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Blog

Where we write most of our stuff.

## Development

### Scripts

All commands are run from the root of the project, from a terminal:

| Command | Action |
| :------------------------- | :----------------------------------------------- |
| `pnpm install` | Installs dependencies |
| `pnpm run dev` | Starts local dev server at `localhost:3000` |
| `pnpm run build` | Build your production site to `./dist/` |
| `pnpm run preview` | Preview your build locally, before deploying |
| `pnpm run astro ...` | Run CLI commands like `astro add`, `astro check` |
| `pnpm run astro -- --help` | Get help using the Astro CLI |
10 changes: 10 additions & 0 deletions astro.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { defineConfig } from "astro/config";
import UnoCSS from "unocss/astro";
import solidJs from "@astrojs/solid-js";

// https://astro.build/config
export default defineConfig({
integrations: [UnoCSS({
injectReset: true
}), solidJs()]
});
25 changes: 25 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"name": "blog",
"description": "Where we write some stuff.",
"version": "0.0.0",
"type": "module",
"license": "MIT",
"scripts": {
"dev": "astro dev",
"start": "astro dev",
"build": "astro build",
"preview": "astro preview",
"astro": "astro"
},
"dependencies": {
"@astrojs/solid-js": "^2.2.0",
"astro": "^2.5.5",
"solid-js": "^1.7.5"
},
"devDependencies": {
"@unocss/astro": "^0.52.4",
"@unocss/reset": "^0.52.4",
"@unocss/transformer-variant-group": "^0.52.4",
"unocss": "^0.52.4"
}
}
Loading

0 comments on commit 57ace3f

Please sign in to comment.