Skip to content

Commit

Permalink
feat: remove editorconfig since prettier is here
Browse files Browse the repository at this point in the history
And format code & add EOL
  • Loading branch information
GabsEdits committed Jun 2, 2024
1 parent 0697d00 commit 0e938c9
Show file tree
Hide file tree
Showing 42 changed files with 2,873 additions and 2,747 deletions.
14 changes: 0 additions & 14 deletions .editorconfig

This file was deleted.

8 changes: 4 additions & 4 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
version: 2

updates:
- package-ecosystem: npm
schedule:
interval: "daily"
directory: /
- package-ecosystem: npm
schedule:
interval: "daily"
directory: /
30 changes: 15 additions & 15 deletions .github/workflows/mirror.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
name: Mirror to Codeberg

on:
push:
branches: ["main"]
push:
branches: ["main"]

workflow_dispatch:
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: mirror-repository
uses: spyoungtech/[email protected]
with:
REMOTE: "https://codeberg.org/aplos/aplos.git"
GIT_USERNAME: gxbs
GIT_PASSWORD: ${{ secrets.GIT_PASSWORD }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: mirror-repository
uses: spyoungtech/[email protected]
with:
REMOTE: "https://codeberg.org/aplos/aplos.git"
GIT_USERNAME: gxbs
GIT_PASSWORD: ${{ secrets.GIT_PASSWORD }}
70 changes: 35 additions & 35 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
@@ -1,46 +1,46 @@
name: Release Package

on:
push:
branches:
- main
workflow_dispatch:
push:
branches:
- main
workflow_dispatch:

permissions:
actions: write
contents: read
actions: write
contents: read

env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

jobs:
build:
if: contains(github.event.comment.body, 'Publish this Release') || startsWith(github.event.head_commit.message, 'release:') || github.event_name == 'workflow_dispatch'
runs-on: ubuntu-latest
build:
if: contains(github.event.comment.body, 'Publish this Release') || startsWith(github.event.head_commit.message, 'release:') || github.event_name == 'workflow_dispatch'
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: latest
- uses: pnpm/action-setup@v3
with:
version: latest
- run: pnpm install
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: latest
- uses: pnpm/action-setup@v3
with:
version: latest
- run: pnpm install

publish-npm:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: latest
registry-url: https://registry.npmjs.org/
- uses: pnpm/action-setup@v3
with:
version: latest
- run: pnpm install
- run: pnpm publish --no-git-checks
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
publish-npm:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: latest
registry-url: https://registry.npmjs.org/
- uses: pnpm/action-setup@v3
with:
version: latest
- run: pnpm install
- run: pnpm publish --no-git-checks
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
72 changes: 36 additions & 36 deletions .github/workflows/unreleased-publish.yml
Original file line number Diff line number Diff line change
@@ -1,45 +1,45 @@
name: Publish Unreleased Package

on:
push:
branches:
- main
workflow_dispatch:
push:
branches:
- main
workflow_dispatch:

env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

jobs:
build:
if: ${{ github.event_name != 'workflow_dispatch' && startsWith(github.event.head_commit.message, 'next:') }}
runs-on: ubuntu-latest
build:
if: ${{ github.event_name != 'workflow_dispatch' && startsWith(github.event.head_commit.message, 'next:') }}
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: latest
- uses: pnpm/action-setup@v3
with:
version: latest
- run: pnpm install
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: latest
- uses: pnpm/action-setup@v3
with:
version: latest
- run: pnpm install

publish-npm:
needs: build
permissions:
packages: write
contents: read
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: latest
registry-url: https://registry.npmjs.org/
- uses: pnpm/action-setup@v3
with:
version: latest
- run: pnpm install
- run: pnpm publish --no-git-checks --tag next
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
publish-npm:
needs: build
permissions:
packages: write
contents: read
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: latest
registry-url: https://registry.npmjs.org/
- uses: pnpm/action-setup@v3
with:
version: latest
- run: pnpm install
- run: pnpm publish --no-git-checks --tag next
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
66 changes: 33 additions & 33 deletions .github/workflows/weekly-release.yml
Original file line number Diff line number Diff line change
@@ -1,42 +1,42 @@
name: Weekly Release

on:
workflow_dispatch:
schedule:
- cron: "0 16 * * 6"
workflow_dispatch:
schedule:
- cron: "0 16 * * 6"

env:
token: ${{ secrets.GITHUB_TOKEN }}
token: ${{ secrets.GITHUB_TOKEN }}

permissions:
contents: write
contents: write

jobs:
release:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: latest

- name: Remove version suffix
run: |
sed -i 's/"version": "\([0-9]\+\.[0-9]\+\.[0-9]\+\)-[0-9]\+",/"version": "\1",/g' package.json
- name: Update CHANGELOG.md
run: |
today=$(date +'%Y-%m-%d')
sed -i "s/upcoming/$today/" CHANGELOG.md
- name: Commit changes
run: |
git config --global user.name "GitHub Actions"
git config --global user.email "[email protected]"
git add .
git commit -am "release: $(jq -r '.version' package.json)"
git push
release:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: latest

- name: Remove version suffix
run: |
sed -i 's/"version": "\([0-9]\+\.[0-9]\+\.[0-9]\+\)-[0-9]\+",/"version": "\1",/g' package.json
- name: Update CHANGELOG.md
run: |
today=$(date +'%Y-%m-%d')
sed -i "s/upcoming/$today/" CHANGELOG.md
- name: Commit changes
run: |
git config --global user.name "GitHub Actions"
git config --global user.email "[email protected]"
git add .
git commit -am "release: $(jq -r '.version' package.json)"
git push
4 changes: 3 additions & 1 deletion .prettierrc
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
{}
{
"endOfLine": "lf"
}
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@

### For Development

- Add `Prettier` to the project for better code consistency
- Add `Prettier` to the project for better code consistency (replaceing `EditorConfig`)

- Add an [Contributing](https://aplos.gxbs.me/contributing) page for clear steps on how to contribute

Expand Down
36 changes: 18 additions & 18 deletions Layout.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,22 +13,22 @@ const { site, frontmatter, page } = useData();
</script>

<template>
<Navigation />
<main id="content-main">
<div v-if="frontmatter.home">
<h1>{{ site.title }}</h1>
</div>
<div v-if="frontmatter.layout === 'article'">
<ArticleHead />
</div>
<NotFound v-if="page.isNotFound" />
<div v-else :class="frontmatter.pageClass">
<Content />
</div>
<HelpfulLayout v-if="frontmatter.layout == 'helpful'" />
<div v-if="frontmatter.layout == 'article'">
<ArticleFooter />
</div>
</main>
<SiteFooter />
<Navigation />
<main id="content-main">
<div v-if="frontmatter.home">
<h1>{{ site.title }}</h1>
</div>
<div v-if="frontmatter.layout === 'article'">
<ArticleHead />
</div>
<NotFound v-if="page.isNotFound" />
<div v-else :class="frontmatter.pageClass">
<Content />
</div>
<HelpfulLayout v-if="frontmatter.layout == 'helpful'" />
<div v-if="frontmatter.layout == 'article'">
<ArticleFooter />
</div>
</main>
<SiteFooter />
</template>
Loading

0 comments on commit 0e938c9

Please sign in to comment.