Skip to content

Commit

Permalink
Merge pull request #1 from lastsunday/chore/webpack_to_vite
Browse files Browse the repository at this point in the history
chore: webpack to vite
  • Loading branch information
lastsunday authored Jun 6, 2024
2 parents 2668c2b + 839e2fc commit 08d0584
Show file tree
Hide file tree
Showing 69 changed files with 4,193 additions and 16,433 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,5 @@ jobs:
uses: JamesIves/[email protected]
with:
branch: gh-pages
folder: build
folder: dist

33 changes: 24 additions & 9 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,13 +1,28 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*

# production
/build
node_modules
dist
dist-ssr
*.local

# misc
# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?

npm-debug.log*
size-plugin.json
# Config files
.webextrc
.webextrc.*
2 changes: 1 addition & 1 deletion .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"recommendations": ["emeraldwalk.runonsave"]
"recommendations": ["Vue.volar", "Vue.vscode-typescript-vue-plugin"]
}
15 changes: 0 additions & 15 deletions .vscode/settings.json

This file was deleted.

9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,15 @@
1. (SidePanel)修改表格排序为远程排序。
2. (SidePanel)新增Job Record时,对为空串的内容设置为NULL。

### 🚀 Performance

1. (build)将webpack替换为vite,加快开发期间的编译速度。

### 🛀 Refactor

1. 重构项目的目录结构,根据Chrome Extension的概念进行分类:background,contentScript,offscreen,sidepanel。
2. 使用vite-plugin-web-extension进行插件编译的管理。

## 1.4.0(2024-06-01)

### ⭐ Added
Expand Down
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,11 +115,11 @@ Modern browsers
1. 安装,编译

```bash
npm i
npm run build
pnpm i
pnpm run build
```

2. 打开chrome,选择加载已解压的扩展程序,选择当前项目的 build 目录
2. 打开chrome,选择加载已解压的扩展程序,选择当前项目的 dist 目录

3. 打开页面
* boss直聘: <https://www.zhipin.com/web/geek/job>
Expand All @@ -133,15 +133,15 @@ Modern browsers
1. 安装,编译

```bash
npm i
npm run watch
pnpm i
pnpm run dev
```

2. chrome 浏览器打开 chrome://extensions/ 页面

3. 点击`加载已解压的扩展程序`

4. 选择项目中生成的 build 文件夹即可
4. 选择项目中生成的 dist 文件夹即可

5. 每次保存都会重新编译,扩展程序需要***重新点一次刷新按钮***才生效

Expand Down
11 changes: 0 additions & 11 deletions config/paths.js

This file was deleted.

63 changes: 0 additions & 63 deletions config/webpack.common.js

This file was deleted.

22 changes: 0 additions & 22 deletions config/webpack.config.js

This file was deleted.

9 changes: 0 additions & 9 deletions config/webpack.offscreen.js

This file was deleted.

23 changes: 0 additions & 23 deletions config/webpack.sidepanel.js

This file was deleted.

92 changes: 0 additions & 92 deletions config/webpack.vue.js

This file was deleted.

9 changes: 0 additions & 9 deletions eslint.config.mjs

This file was deleted.

Loading

0 comments on commit 08d0584

Please sign in to comment.