Skip to content

Commit

Permalink
chore: init
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon-He95 committed Sep 10, 2023
0 parents commit cfd7245
Show file tree
Hide file tree
Showing 26 changed files with 4,836 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
node_modules
dist
pnpm-lock.yaml
!.*
.history
*.md
.eslintcache
3 changes: 3 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": "@antfu"
}
2 changes: 2 additions & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
github: Simon-He95
custom: ["https://github.com/Simon-He95/sponsor"]
46 changes: 46 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Test

on:
push:
branches:
- master

pull_request:
branches:
- master

jobs:
build:
runs-on: ${{ matrix.os }}

timeout-minutes: 10

strategy:
matrix:
node_version: [14.x, 16.x]
os: [ubuntu-latest, windows-latest]
fail-fast: false

steps:
- uses: actions/checkout@v2

- name: Install pnpm
uses: pnpm/action-setup@v2

- name: Set node version to ${{ matrix.node_version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node_version }}
cache: pnpm

- name: Install
run: pnpm i

- name: Build
run: pnpm run build

- name: Test
run: pnpm run test

- name: Lint
run: pnpm run lint
24 changes: 24 additions & 0 deletions .github/workflows/cr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Code Review

permissions:
contents: read
pull-requests: write

on:
pull_request:
types: [opened, reopened, synchronize]

jobs:
test:
if: ${{ contains(github.event.*.labels.*.name, 'gpt review') }} # Optional; to run only when a label is attached
runs-on: ubuntu-latest
steps:
- uses: anc95/ChatGPT-CodeReview@main
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
# Optional
LANGUAGE: Chinese
MODEL:
top_p: 1
temperature: 1
25 changes: 25 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Release

permissions:
contents: write

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}}
13 changes: 13 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
.cache
.DS_Store
.idea
*.log
*.tgz
*.vsix
coverage
dist
lib-cov
logs
node_modules
temp
.eslintcache
2 changes: 2 additions & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
ignore-workspace-root-check=true
node-linker=hoisted
5 changes: 5 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"recommendations": [
"amodio.tsl-problem-matcher"
]
}
18 changes: 18 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"version": "0.2.0",
"configurations": [
{
"name": "Extension",
"type": "extensionHost",
"request": "launch",
"runtimeExecutable": "${execPath}",
"args": [
"--extensionDevelopmentPath=${workspaceFolder}"
],
"outFiles": [
"${workspaceFolder}/dist/**/*.js"
],
"preLaunchTask": "npm: dev"
}
]
}
26 changes: 26 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
{
"version": "2.0.0",
"tasks": [
{
"type": "npm",
"script": "dev",
"isBackground": true,
"presentation": {
"reveal": "never"
},
"problemMatcher": [
{
"base": "$tsc-watch",
"background": {
"activeOnStart": true,
"beginsPattern": "Build start",
"endsPattern": "Build success"
}
}
],
"group": "build"
}
]
}
5 changes: 5 additions & 0 deletions .vscodeignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
src
node_modules
test
.github
.vscode
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2023 Simon He

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<p align="center">
<img height="200" src="./assets/kv.png" alt="to unocss">
</p>
<p align="center"> English | <a href="./README_zh.md">简体中文</a></p>

Use the rimraf quick delete tool to complete the operation by right-clicking the quick delete.

## Thanks 💕
- [rimraf](https://github.com/isaacs/rimraf)

## :coffee:

[buy me a cup of coffee](https://github.com/Simon-He95/sponsor)

## License

[MIT](./license)
18 changes: 18 additions & 0 deletions README_zh.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<p align="center">
<img height="200" src="./assets/kv.png" alt="to unocss">
</p>
<p align="center"> <a href="./README.md">English</a> | 简体中文</p>

使用rimraf的快速删除工具,通过右键选择快速删除完成操作

## 感谢 💕
- [rimraf](https://github.com/isaacs/rimraf)


## :coffee:

[请我喝一杯咖啡](https://github.com/Simon-He95/sponsor)

## License

[MIT](./license)
1 change: 1 addition & 0 deletions assets/dark/add.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/kv.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions assets/light/add.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
80 changes: 80 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
{
"publisher": "simonhe",
"name": "vscode-fast-empty",
"displayName": "vscode-fast-empty",
"version": "0.0.0",
"packageManager": "[email protected]",
"description": "vscode-fast-empty",
"author": "Simon He <https://github.com/Simon-He95>",
"license": "MIT",
"funding": "https://github.com/sponsors/Simon-He95",
"homepage": "https://github.com/Simon-He95/vscode-fast-empty#readme",
"repository": {
"type": "git",
"url": "https://github.com/Simon-He95/vscode-fast-empty"
},
"bugs": {
"url": "https://github.com/Simon-He95/vscode-fast-empty/issues"
},
"sponsor": {
"url": "https://github.com/Simon-He95/sponsor"
},
"categories": [
"Other"
],
"main": "./dist/index.js",
"icon": "icon.png",
"files": [
"dist"
],
"engines": {
"vscode": "^1.77.0"
},
"activationEvents": [
"onStartupFinished"
],
"contributes": {
"commands": [
{
"command": "fastEmpty.delete",
"title": "快速删除"
}
],
"menus": {
"explorer/context": [
{
"command": "fastEmpty.delete",
"group": "editor",
"when": "sideBarFocus && (resourceExtname || resourceDirname)"
}
]
}
},
"scripts": {
"dev": "pnpm build --watch",
"test": "vitest",
"build": "tsup src/index.ts --external vscode",
"pack": "vsce package --no-dependencies",
"lint": "eslint . --ext .vue,.js,.ts,.jsx,.tsx,.md,.json --max-warnings 0 --cache",
"lint:fix": "eslint . --ext .vue,.js,.ts,.jsx,.tsx,.md,.json --max-warnings 0 --cache --fix",
"publish": "vsce publish --no-dependencies",
"typecheck": "tsc --noEmit",
"release": "bumpp && pnpm run publish"
},
"devDependencies": {
"@antfu/eslint-config": "^0.38.4",
"@types/node": "^18.15.11",
"@types/vscode": "^1.77.0",
"@vscode-use/utils": "^0.0.36",
"bumpp": "^9.1.0",
"eslint": "^8.37.0",
"esno": "^0.16.3",
"pnpm": "^8.1.1",
"rimraf": "^4.4.1",
"tsup": "^6.7.0",
"typescript": "^5.0.3",
"vite": "^4.2.1",
"vitest": "^0.29.8",
"vsce": "^2.15.0"
}
}
Loading

0 comments on commit cfd7245

Please sign in to comment.