-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
create new astro project from template
- Loading branch information
0 parents
commit c2589bc
Showing
74 changed files
with
14,555 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# https://EditorConfig.org | ||
|
||
# top-most EditorConfig file | ||
root = true | ||
|
||
[*] | ||
charset = utf-8 | ||
end_of_line = lf | ||
indent_size = 2 | ||
indent_style = space | ||
insert_final_newline = true | ||
trim_trailing_whitespace = false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: GitHub Actions | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Use Node.js v22 | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 22 | ||
cache: npm | ||
- run: npm ci | ||
- run: npm run build | ||
# - run: npm test | ||
|
||
check: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Use Node.js 22 | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 22 | ||
cache: npm | ||
- run: npm ci | ||
- run: npm run check |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# build output | ||
dist/ | ||
.output/ | ||
|
||
# dependencies | ||
node_modules/ | ||
|
||
# logs | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
pnpm-debug.log* | ||
|
||
|
||
# environment variables | ||
.env | ||
.env.production | ||
|
||
# macOS-specific files | ||
.DS_Store | ||
|
||
pnpm-lock.yaml | ||
|
||
.astro |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
dist | ||
node_modules | ||
.github | ||
.changeset |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
/** @type {import('prettier').Config} */ | ||
module.exports = { | ||
printWidth: 120, | ||
semi: true, | ||
singleQuote: true, | ||
tabWidth: 2, | ||
trailingComma: 'es5', | ||
useTabs: false, | ||
|
||
plugins: [require.resolve('prettier-plugin-astro')], | ||
|
||
overrides: [{ files: '*.astro', options: { parser: 'astro' } }], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"startCommand": "npm start", | ||
"env": { | ||
"ENABLE_CJS_IMPORTS": true | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,275 @@ | ||
{ | ||
"$schema": "http://json-schema.org/draft-07/schema#", | ||
"type": "object", | ||
"properties": { | ||
"site": { | ||
"type": "object", | ||
"properties": { | ||
"name": { | ||
"type": "string" | ||
}, | ||
"site": { | ||
"type": "string" | ||
}, | ||
"base": { | ||
"type": "string" | ||
}, | ||
"trailingSlash": { | ||
"type": "boolean" | ||
}, | ||
"googleSiteVerificationId": { | ||
"type": "string" | ||
} | ||
}, | ||
"required": ["name", "site", "base", "trailingSlash"], | ||
"additionalProperties": false | ||
}, | ||
"metadata": { | ||
"type": "object", | ||
"properties": { | ||
"title": { | ||
"type": "object", | ||
"properties": { | ||
"default": { | ||
"type": "string" | ||
}, | ||
"template": { | ||
"type": "string" | ||
} | ||
}, | ||
"required": ["default", "template"] | ||
}, | ||
"description": { | ||
"type": "string" | ||
}, | ||
"robots": { | ||
"type": "object", | ||
"properties": { | ||
"index": { | ||
"type": "boolean" | ||
}, | ||
"follow": { | ||
"type": "boolean" | ||
} | ||
}, | ||
"required": ["index", "follow"] | ||
}, | ||
"openGraph": { | ||
"type": "object", | ||
"properties": { | ||
"site_name": { | ||
"type": "string" | ||
}, | ||
"images": { | ||
"type": "array", | ||
"items": [ | ||
{ | ||
"type": "object", | ||
"properties": { | ||
"url": { | ||
"type": "string" | ||
}, | ||
"width": { | ||
"type": "integer" | ||
}, | ||
"height": { | ||
"type": "integer" | ||
} | ||
}, | ||
"required": ["url", "width", "height"] | ||
} | ||
] | ||
}, | ||
"type": { | ||
"type": "string" | ||
} | ||
}, | ||
"required": ["site_name", "images", "type"] | ||
}, | ||
"twitter": { | ||
"type": "object", | ||
"properties": { | ||
"handle": { | ||
"type": "string" | ||
}, | ||
"site": { | ||
"type": "string" | ||
}, | ||
"cardType": { | ||
"type": "string" | ||
} | ||
}, | ||
"required": ["handle", "site", "cardType"] | ||
} | ||
}, | ||
"required": ["title", "description", "robots", "openGraph", "twitter"] | ||
}, | ||
"i18n": { | ||
"type": "object", | ||
"properties": { | ||
"language": { | ||
"type": "string" | ||
}, | ||
"textDirection": { | ||
"type": "string" | ||
} | ||
}, | ||
"required": ["language", "textDirection"] | ||
}, | ||
"apps": { | ||
"type": "object", | ||
"properties": { | ||
"blog": { | ||
"type": "object", | ||
"properties": { | ||
"isEnabled": { | ||
"type": "boolean" | ||
}, | ||
"postsPerPage": { | ||
"type": "integer" | ||
}, | ||
"isRelatedPostsEnabled": { | ||
"type": "boolean" | ||
}, | ||
"relatedPostsCount": { | ||
"type": "integer" | ||
}, | ||
"post": { | ||
"type": "object", | ||
"properties": { | ||
"isEnabled": { | ||
"type": "boolean" | ||
}, | ||
"permalink": { | ||
"type": "string" | ||
}, | ||
"robots": { | ||
"type": "object", | ||
"properties": { | ||
"index": { | ||
"type": "boolean" | ||
}, | ||
"follow": { | ||
"type": "boolean" | ||
} | ||
}, | ||
"required": ["index"] | ||
} | ||
}, | ||
"required": ["isEnabled", "permalink", "robots"] | ||
}, | ||
"list": { | ||
"type": "object", | ||
"properties": { | ||
"isEnabled": { | ||
"type": "boolean" | ||
}, | ||
"pathname": { | ||
"type": "string" | ||
}, | ||
"robots": { | ||
"type": "object", | ||
"properties": { | ||
"index": { | ||
"type": "boolean" | ||
}, | ||
"follow": { | ||
"type": "boolean" | ||
} | ||
}, | ||
"required": ["index"] | ||
} | ||
}, | ||
"required": ["isEnabled", "pathname", "robots"] | ||
}, | ||
"category": { | ||
"type": "object", | ||
"properties": { | ||
"isEnabled": { | ||
"type": "boolean" | ||
}, | ||
"pathname": { | ||
"type": "string" | ||
}, | ||
"robots": { | ||
"type": "object", | ||
"properties": { | ||
"index": { | ||
"type": "boolean" | ||
}, | ||
"follow": { | ||
"type": "boolean" | ||
} | ||
}, | ||
"required": ["index"] | ||
} | ||
}, | ||
"required": ["isEnabled", "pathname", "robots"] | ||
}, | ||
"tag": { | ||
"type": "object", | ||
"properties": { | ||
"isEnabled": { | ||
"type": "boolean" | ||
}, | ||
"pathname": { | ||
"type": "string" | ||
}, | ||
"robots": { | ||
"type": "object", | ||
"properties": { | ||
"index": { | ||
"type": "boolean" | ||
}, | ||
"follow": { | ||
"type": "boolean" | ||
} | ||
}, | ||
"required": ["index"] | ||
} | ||
}, | ||
"required": ["isEnabled", "pathname", "robots"] | ||
} | ||
}, | ||
"required": ["isEnabled", "postsPerPage", "post", "list", "category", "tag"] | ||
} | ||
}, | ||
"required": ["blog"] | ||
}, | ||
"analytics": { | ||
"type": "object", | ||
"properties": { | ||
"vendors": { | ||
"type": "object", | ||
"properties": { | ||
"googleAnalytics": { | ||
"type": "object", | ||
"properties": { | ||
"id": { | ||
"type": ["string", "null"] | ||
}, | ||
"partytown": { | ||
"type": "boolean", | ||
"default": true | ||
} | ||
}, | ||
"required": ["id"] | ||
} | ||
}, | ||
"required": ["googleAnalytics"] | ||
} | ||
}, | ||
"required": ["vendors"] | ||
}, | ||
"ui": { | ||
"type": "object", | ||
"properties": { | ||
"theme": { | ||
"type": "string" | ||
} | ||
}, | ||
"required": ["theme"] | ||
} | ||
}, | ||
"required": ["site", "metadata", "i18n", "apps", "analytics", "ui"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"recommendations": [ | ||
"astro-build.astro-vscode", | ||
"bradlc.vscode-tailwindcss", | ||
"dbaeumer.vscode-eslint", | ||
"esbenp.prettier-vscode", | ||
"unifiedjs.vscode-mdx" | ||
], | ||
"unwantedRecommendations": [] | ||
} |
Oops, something went wrong.