Skip to content

Commit

Permalink
feat(vite/dependencies): updated to Vite and all dependencies
Browse files Browse the repository at this point in the history
- change from yarn to pnpm
- change svg plugin with vite support

BREAKING CHANGE: changed to Vite and updated all dependencies
  • Loading branch information
bennyxguo committed Jul 2, 2023
1 parent 20639d3 commit 162df85
Show file tree
Hide file tree
Showing 135 changed files with 7,794 additions and 13,900 deletions.
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/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
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: Build
run: pnpm build

- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npx semantic-release
8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,14 @@ node_modules
coverage
/dist

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


# local env files
.env.local
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"
Empty file added .prettiercignore
Empty file.
4 changes: 2 additions & 2 deletions .prettierrc
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
"useTabs": false,
"trailingComma": "none",
"printWidth": 80,
"arrowParens": "avoid",
"htmlWhitespaceSensitivity": "ignore"
"arrowParens": "avoid"
// "htmlWhitespaceSensitivity": "ignore"
}
28 changes: 28 additions & 0 deletions .releaserc
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
module.exports = {
branches: [
'main',
{
name: 'beta',
prerelease: true
}
],
plugins: [
'@semantic-release/commit-analyzer',
'@semantic-release/release-notes-generator',
[
'@semantic-release/changelog',
{
changelogFile: 'CHANGELOG.md'
}
],
'@semantic-release/npm',
'@semantic-release/github',
[
'@semantic-release/git',
{
assets: ['README.md', 'README_CN.md', 'CHANGELOG.md', 'LICENSE', 'sources/**', 'layout/**', 'build/**', 'data/**', '__config.yml'],
message: 'chore(release): set `package.json` to ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}'
}
]
]
}
874 changes: 0 additions & 874 deletions .yarn/releases/yarn-3.6.0.cjs

This file was deleted.

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

0 comments on commit 162df85

Please sign in to comment.