Skip to content

Commit

Permalink
Handle base, update packages and eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristineTham committed Jun 12, 2023
1 parent 1f53883 commit ad7f0d9
Show file tree
Hide file tree
Showing 8 changed files with 1,128 additions and 416 deletions.
6 changes: 5 additions & 1 deletion .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
/** @type {import("eslint").Linter.Config} */
module.exports = {
extends: ['plugin:astro/recommended'],
extends: [
'plugin:mdx/recommended',
'plugin:markdown/recommended',
'plugin:astro/recommended'
],
parser: '@typescript-eslint/parser',
parserOptions: {
tsconfigRootDir: __dirname,
Expand Down
13 changes: 13 additions & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# These are supported funding model platforms

github: hellotham # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
patreon: # Replace with a single Patreon username
open_collective: # Replace with a single Open Collective username
ko_fi: # Replace with a single Ko-fi username
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
liberapay: # Replace with a single Liberapay username
issuehunt: # Replace with a single IssueHunt username
otechie: # Replace with a single Otechie username
lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry
custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
39 changes: 39 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Github Pages Astro CI

on:
# Trigger the workflow every time you push to the `main` branch
# Using a different branch name? Replace `main` with your branch’s name
push:
branches: [main]
# Allows you to run this workflow manually from the Actions tab on GitHub.
workflow_dispatch:

# Allow this job to clone the repo and create a page deployment
permissions:
contents: read
pages: write
id-token: write

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout your repository using git
uses: actions/checkout@v3
- name: Install, build, and upload your site
uses: withastro/action@v0
with:
package-manager: pnpm
node-version: 18
# path: . # The root location of your Astro project inside the repository. (optional)

deploy:
needs: build
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1
16 changes: 9 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,24 +14,26 @@
"dependencies": {
"@astrojs/rss": "^2.4.3",
"@astrojs/sitemap": "^1.3.3",
"astro": "^2.5.7"
"astro": "^2.6.3"
},
"devDependencies": {
"@iconify-json/heroicons": "^1.1.10",
"@iconify-json/heroicons": "^1.1.11",
"@iconify-json/logos": "^1.1.31",
"@julr/unocss-preset-forms": "^0.0.5",
"@types/node": "^20.2.5",
"@typescript-eslint/parser": "^5.59.8",
"@unocss/reset": "^0.52.7",
"@types/node": "^20.3.0",
"@typescript-eslint/parser": "^5.59.9",
"@unocss/reset": "^0.53.1",
"eslint": "^8.42.0",
"eslint-plugin-astro": "^0.27.1",
"eslint-plugin-jsx-a11y": "^6.7.1",
"eslint-plugin-markdown": "^3.0.0",
"eslint-plugin-mdx": "^2.1.0",
"prettier": "^2.8.8",
"prettier-config-standard": "^5.0.0",
"prettier-plugin-astro": "^0.10.0",
"prettier-plugin-tailwindcss": "^0.3.0",
"typescript": "^5.1.3",
"unocss": "^0.52.7",
"typescript": "^5.0.4",
"unocss": "^0.53.1",
"vite": "^4.3.9"
}
}
Loading

0 comments on commit ad7f0d9

Please sign in to comment.