Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Version 2.0 major update #249

Merged
merged 23 commits into from
Jul 24, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
20639d3
chore: upgrade to yarn 2+
bennyxguo Jun 28, 2023
162df85
feat(vite/dependencies): updated to Vite and all dependencies
bennyxguo Jul 2, 2023
8b37960
chore(github-actions): added PR and release actions
bennyxguo Jul 2, 2023
75e99da
fix: remove qod since it's rated limited to 5 calls a day
bennyxguo Jul 17, 2023
667e1df
fix: main author not able to load in home page
bennyxguo Jul 17, 2023
6d1b078
fix: use new import for default image instead of require
bennyxguo Jul 17, 2023
9e715b9
refactor: move scripts to a separate hexo plugin package
bennyxguo Jul 17, 2023
83c04c5
refactor: moved all language files to hexo-plugin-aurora package
bennyxguo Jul 17, 2023
a34063f
refactor: update the usage of i18n
bennyxguo Jul 17, 2023
19a9b17
refactor: svg icons and svg-icon component
bennyxguo Jul 19, 2023
e85109a
refactor: remove source folder from git
bennyxguo Jul 19, 2023
1c58e55
fix: typescript typing issue for Post
bennyxguo Jul 19, 2023
93f645c
chore: updated to using pnpm and semantic-release
bennyxguo Jul 19, 2023
b9c9001
chore: removed default logo and avatar
bennyxguo Jul 23, 2023
c94e104
chore: update development build scripts to latest
bennyxguo Jul 24, 2023
91358ad
fix: recent comment is not hiding with correct setting
bennyxguo Jul 24, 2023
bfcf168
fix: incorrect recent comment gavatar url with valine #225
bennyxguo Jul 24, 2023
3879e31
chore: fix recent comment typing
bennyxguo Jul 24, 2023
8148b0e
chore: changed leancloud script to latest
bennyxguo Jul 24, 2023
05450c5
fix: code clip-board copy button style
bennyxguo Jul 24, 2023
2e4d0cd
fix: mobile view not able to fetch author data
bennyxguo Jul 24, 2023
c009525
chore: remove layout folder
bennyxguo Jul 24, 2023
677d1b9
chore: ignore layout folder on git
bennyxguo Jul 24, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 0 additions & 31 deletions .circleci/config.yml

This file was deleted.

6 changes: 3 additions & 3 deletions .env
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# App name
VUE_APP_PROJECT_TITLE = 'Aurora Blog'
VITE_APP_PROJECT_TITLE = 'Aurora Blog'

# base api
VUE_APP_BASE_API = 'api'
VUE_APP_PUBLIC_PATH = '/'
VITE_APP_BASE_API = 'api'
VITE_APP_PUBLIC_PATH = '/'
18 changes: 0 additions & 18 deletions .env.development

This file was deleted.

10 changes: 5 additions & 5 deletions .env.production
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# just a flag
ENV = 'production'
VITE_MODE = 'production'

# App name
VUE_APP_PROJECT_TITLE = 'Aurora Blog'
VITE_APP_PROJECT_TITLE = 'Aurora Blog'

# base api
VUE_APP_BASE_API = 'api'
VITE_APP_BASE_API = 'api'

# Edit this if you want to change the public path.
# E.g, if you want to host your blog on https://name.github.io/blog/, then you ned to set
# VUE_APP_PUBLIC_PATH to `/blog/`
# VITE_APP_PUBLIC_PATH to `/blog/`
# Else leave it as `/`
VUE_APP_PUBLIC_PATH = '/'
VITE_APP_PUBLIC_PATH = '/'
5 changes: 3 additions & 2 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
module.exports = {
root: true,
es2022: true,
env: {
node: true
},
Expand All @@ -16,8 +17,8 @@ module.exports = {
rules: {
'@typescript-eslint/no-explicit-any': ['off'],
'prettier/prettier': ['error', { semi: false }],
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off'
'no-console': import.meta.env.NODE_ENV === 'production' ? 'warn' : 'off',
'no-debugger': import.meta.env.NODE_ENV === 'production' ? 'warn' : 'off'
},
overrides: [
{
Expand Down
52 changes: 52 additions & 0 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: PR Check

permissions:
pull-requests: write
contents: write

on:
pull_request:
branches:
- main
workflow_dispatch:

jobs:
pr-build-check:
name: PR Build Check
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v3

- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 18

- uses: pnpm/action-setup@v2
name: Install pnpm
id: pnpm-install
with:
version: 8
run_install: false

- name: Get pnpm store directory
id: pnpm-cache
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT

- uses: actions/cache@v3
name: Setup pnpm cache
with:
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-

- name: Install dependencies
run: pnpm install

- name: Build
run: pnpm build
55 changes: 55 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: Release

on:
push:
branches: [main, beta]

jobs:
release:
name: Release
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v3

- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 18

- uses: pnpm/action-setup@v2
name: Install pnpm
id: pnpm-install
with:
version: 8
run_install: false

- name: Get pnpm store directory
id: pnpm-cache
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT

- uses: actions/cache@v3
name: Setup pnpm cache
with:
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-

- name: Install dependencies
run: pnpm install

- name: Install semantic-release extra plugins
run: pnpm install --save-dev @semantic-release/changelog @semantic-release/git

- name: Build
run: pnpm build

- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npx semantic-release
10 changes: 10 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,16 @@ _config.*.yml
node_modules
coverage
/dist
/source
/layout

.pnp.*
.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions


# local env files
Expand Down
4 changes: 4 additions & 0 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npx --no-install commitlint --edit "$1"
4 changes: 4 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,7 @@ postcss.config.js
tailwind.config.js
tsconfig.json
vue.config.js
.github
.husky
commitlint.config.js
release.config.js
Empty file added .prettiercignore
Empty file.
3 changes: 1 addition & 2 deletions .prettierrc
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,5 @@
"useTabs": false,
"trailingComma": "none",
"printWidth": 80,
"arrowParens": "avoid",
"htmlWhitespaceSensitivity": "ignore"
"arrowParens": "avoid"
}
3 changes: 3 additions & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
nodeLinker: node-modules

yarnPath: .yarn/releases/yarn-3.6.0.cjs
9 changes: 0 additions & 9 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,3 @@
# Changelog

All notable changes to the "aurora-future" extension will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]

## [1.5.5] - 2021-06-25

I have being busy with life and advancing my career path. Updates for this theme will potentially be slowing down a bit. But hey! Keep the issue coming, leave me all the ideas, I will definitely get to them as soon as I get spare time from time to time of my busy life!
Expand Down
Loading