Skip to content

Commit 0e0aca8

Browse files
committed
feat: init
0 parents  commit 0e0aca8

24 files changed

+8010
-0
lines changed

.gitignore

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# build output
2+
dist/
3+
4+
# generated types
5+
.astro/
6+
7+
# dependencies
8+
node_modules/
9+
10+
# logs
11+
npm-debug.log*
12+
yarn-debug.log*
13+
yarn-error.log*
14+
pnpm-debug.log*
15+
16+
# environment variables
17+
.env
18+
.env.production
19+
20+
.DS_Store
21+
.idea/
22+
.vscode/

.prettierignore

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
dist/
2+
.astro/
3+
4+
.git
5+
.svn
6+
.hg
7+
node_modules/
8+
9+
package-lock.json
10+
11+
.env
12+
.env.production
13+
14+
.DS_Store
15+
.idea/
16+
.vscode/

.prettierrc

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"trailingComma": "es5",
3+
"tabWidth": 2,
4+
"semi": true,
5+
"singleQuote": true,
6+
"endOfLine": "auto",
7+
"arrowParens": "avoid",
8+
"printWidth": 120,
9+
"plugins": ["prettier-plugin-astro"],
10+
"overrides": [
11+
{
12+
"files": "*.astro",
13+
"options": {
14+
"parser": "astro"
15+
}
16+
}
17+
]
18+
}

README.md

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
# Astro Starter Kit: Basics
2+
3+
```sh
4+
npm create astro@latest -- --template basics
5+
```
6+
7+
[![Open in StackBlitz](https://developer.stackblitz.com/img/open_in_stackblitz.svg)](https://stackblitz.com/github/withastro/astro/tree/latest/examples/basics)
8+
[![Open with CodeSandbox](https://assets.codesandbox.io/github/button-edit-lime.svg)](https://codesandbox.io/p/sandbox/github/withastro/astro/tree/latest/examples/basics)
9+
[![Open in GitHub Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/withastro/astro?devcontainer_path=.devcontainer/basics/devcontainer.json)
10+
11+
> 🧑‍🚀 **Seasoned astronaut?** Delete this file. Have fun!
12+
13+
![just-the-basics](https://github.com/withastro/astro/assets/2244813/a0a5533c-a856-4198-8470-2d67b1d7c554)
14+
15+
## 🚀 Project Structure
16+
17+
Inside of your Astro project, you'll see the following folders and files:
18+
19+
```text
20+
/
21+
├── public/
22+
│ └── favicon.svg
23+
├── src
24+
│   ├── assets
25+
│   │   └── astro.svg
26+
│   ├── components
27+
│   │   └── Welcome.astro
28+
│   ├── layouts
29+
│   │   └── Layout.astro
30+
│   └── pages
31+
│   └── index.astro
32+
└── package.json
33+
```
34+
35+
To learn more about the folder structure of an Astro project, refer to [our guide on project structure](https://docs.astro.build/en/basics/project-structure/).
36+
37+
## 🧞 Commands
38+
39+
All commands are run from the root of the project, from a terminal:
40+
41+
| Command | Action |
42+
| :------------------------ | :----------------------------------------------- |
43+
| `npm install` | Installs dependencies |
44+
| `npm run dev` | Starts local dev server at `localhost:4321` |
45+
| `npm run build` | Build your production site to `./dist/` |
46+
| `npm run preview` | Preview your build locally, before deploying |
47+
| `npm run astro ...` | Run CLI commands like `astro add`, `astro check` |
48+
| `npm run astro -- --help` | Get help using the Astro CLI |
49+
50+
## 👀 Want to learn more?
51+
52+
Feel free to check [our documentation](https://docs.astro.build) or jump into our [Discord server](https://astro.build/chat).

astro.config.mjs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import { defineConfig } from 'astro/config';
2+
import tailwindcss from '@tailwindcss/vite';
3+
import sitemap from '@astrojs/sitemap';
4+
5+
export default defineConfig({
6+
site: 'https://vslvv.com',
7+
vite: {
8+
plugins: [tailwindcss()],
9+
},
10+
integrations: [sitemap()],
11+
});

eslint.config.mjs

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
import js from '@eslint/js';
2+
import astro from 'eslint-plugin-astro';
3+
import tseslint from 'typescript-eslint';
4+
import globals from 'globals';
5+
import { defineConfig } from 'eslint/config';
6+
import prettier from 'eslint-plugin-prettier';
7+
8+
export default defineConfig([
9+
{
10+
languageOptions: {
11+
globals: {
12+
...globals.browser,
13+
...globals.node,
14+
},
15+
},
16+
},
17+
js.configs.recommended,
18+
tseslint.configs.recommended,
19+
{
20+
plugins: {
21+
prettier: prettier,
22+
},
23+
rules: {
24+
'prettier/prettier': 'error',
25+
},
26+
},
27+
astro.configs.recommended,
28+
{
29+
files: ['**/*.astro'],
30+
languageOptions: {
31+
parser: astro.parser,
32+
parserOptions: {
33+
parser: tseslint.parser,
34+
extraFileExtensions: ['.astro'],
35+
sourceType: 'module',
36+
ecmaVersion: 'latest',
37+
project: './tsconfig.json',
38+
},
39+
},
40+
rules: {
41+
'no-undef': 'off',
42+
'@typescript-eslint/no-explicit-any': 'off',
43+
},
44+
},
45+
{
46+
ignores: ['dist/', 'node_modules/', '.astro/', 'public/'],
47+
},
48+
]);

0 commit comments

Comments
 (0)