Skip to content

Commit

Permalink
feat!: refactor with vue
Browse files Browse the repository at this point in the history
  • Loading branch information
holazz committed Jun 26, 2022
1 parent 0d68d10 commit 2a9a7ae
Show file tree
Hide file tree
Showing 25 changed files with 4,607 additions and 460 deletions.
2 changes: 1 addition & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"extends": "@holazz"
"extends": ["@holazz", "@holazz/eslint-config-prettier"]
}
22 changes: 22 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Release

on:
push:
tags:
- 'v*'

jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0

- uses: actions/setup-node@v3
with:
node-version: 16.x

- run: npx changelogithub
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
# github1s
<p text-align="center">⚡️ 1s to GitHub1s!</p>
55 changes: 55 additions & 0 deletions auto-imports.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
// Generated by 'unplugin-auto-import'
export {}
declare global {
const EffectScope: typeof import('vue')['EffectScope']
const computed: typeof import('vue')['computed']
const createApp: typeof import('vue')['createApp']
const customRef: typeof import('vue')['customRef']
const defineAsyncComponent: typeof import('vue')['defineAsyncComponent']
const defineComponent: typeof import('vue')['defineComponent']
const effectScope: typeof import('vue')['effectScope']
const getCurrentInstance: typeof import('vue')['getCurrentInstance']
const getCurrentScope: typeof import('vue')['getCurrentScope']
const h: typeof import('vue')['h']
const inject: typeof import('vue')['inject']
const isProxy: typeof import('vue')['isProxy']
const isReactive: typeof import('vue')['isReactive']
const isReadonly: typeof import('vue')['isReadonly']
const isRef: typeof import('vue')['isRef']
const markRaw: typeof import('vue')['markRaw']
const nextTick: typeof import('vue')['nextTick']
const onActivated: typeof import('vue')['onActivated']
const onBeforeMount: typeof import('vue')['onBeforeMount']
const onBeforeUnmount: typeof import('vue')['onBeforeUnmount']
const onBeforeUpdate: typeof import('vue')['onBeforeUpdate']
const onDeactivated: typeof import('vue')['onDeactivated']
const onErrorCaptured: typeof import('vue')['onErrorCaptured']
const onMounted: typeof import('vue')['onMounted']
const onRenderTracked: typeof import('vue')['onRenderTracked']
const onRenderTriggered: typeof import('vue')['onRenderTriggered']
const onScopeDispose: typeof import('vue')['onScopeDispose']
const onServerPrefetch: typeof import('vue')['onServerPrefetch']
const onUnmounted: typeof import('vue')['onUnmounted']
const onUpdated: typeof import('vue')['onUpdated']
const provide: typeof import('vue')['provide']
const reactive: typeof import('vue')['reactive']
const readonly: typeof import('vue')['readonly']
const ref: typeof import('vue')['ref']
const resolveComponent: typeof import('vue')['resolveComponent']
const shallowReactive: typeof import('vue')['shallowReactive']
const shallowReadonly: typeof import('vue')['shallowReadonly']
const shallowRef: typeof import('vue')['shallowRef']
const toRaw: typeof import('vue')['toRaw']
const toRef: typeof import('vue')['toRef']
const toRefs: typeof import('vue')['toRefs']
const triggerRef: typeof import('vue')['triggerRef']
const unref: typeof import('vue')['unref']
const useAttrs: typeof import('vue')['useAttrs']
const useCssModule: typeof import('vue')['useCssModule']
const useCssVars: typeof import('vue')['useCssVars']
const useSlots: typeof import('vue')['useSlots']
const watch: typeof import('vue')['watch']
const watchEffect: typeof import('vue')['watchEffect']
const watchPostEffect: typeof import('vue')['watchPostEffect']
const watchSyncEffect: typeof import('vue')['watchSyncEffect']
}
15 changes: 0 additions & 15 deletions background.js

This file was deleted.

7 changes: 0 additions & 7 deletions config.js

This file was deleted.

37 changes: 0 additions & 37 deletions content-script.js

This file was deleted.

7 changes: 7 additions & 0 deletions env.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
/// <reference types="vite/client" />

declare module '*.vue' {
import { DefineComponent } from 'vue'
const component: DefineComponent<{}, {}, any>
export default component
}
44 changes: 0 additions & 44 deletions manifest.json

This file was deleted.

38 changes: 31 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,42 @@
{
"name": "webext-github1s",
"displayName": "GitHub1s",
"version": "0.0.0",
"private": true,
"description": "",
"keywords": [],
"description": "⚡️ 1s to GitHub1s!",
"keywords": [
"webextension",
"chrome",
"github",
"github1s"
],
"license": "MIT",
"author": "zz",
"scripts": {
"lint": "eslint ."
"dev": "vite",
"build": "vite build",
"pack": "vite build && crx pack dist -o ./dist/extension.crx",
"start": "web-ext run --source-dir ./dist --target=chromium",
"lint": "eslint .",
"release": "bumpp --commit --push --tag"
},
"dependencies": {
"vue": "^3.2.37"
},
"devDependencies": {
"@holazz/eslint-config": "^1.0.7",
"@types/chrome": "^0.0.186",
"eslint": "^8.15.0",
"typescript": "^4.6.4"
"@crxjs/vite-plugin": "^1.0.12",
"@holazz/eslint-config": "^1.2.2",
"@holazz/eslint-config-prettier": "^1.2.2",
"@types/chrome": "^0.0.190",
"@vitejs/plugin-vue": "^2.3.3",
"bumpp": "^8.2.1",
"crx": "^5.0.1",
"eslint": "^8.18.0",
"prettier": "^2.7.1",
"typescript": "^4.7.4",
"unocss": "^0.41.0",
"unplugin-auto-import": "^0.9.1",
"vite": "^2.9.12",
"web-ext": "^7.1.0"
}
}
Loading

0 comments on commit 2a9a7ae

Please sign in to comment.