Skip to content

Commit b71ac6d

Browse files
committed
change webpack to vite
1 parent 4625d08 commit b71ac6d

47 files changed

Lines changed: 3962 additions & 9633 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.babelrc

Lines changed: 0 additions & 6 deletions
This file was deleted.

.editorconfig

Lines changed: 0 additions & 9 deletions
This file was deleted.

.eslintrc.cjs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
/* eslint-env node */
2+
require("@rushstack/eslint-patch/modern-module-resolution");
3+
4+
module.exports = {
5+
root: true,
6+
extends: [
7+
"plugin:vue/essential",
8+
"eslint:recommended",
9+
"@vue/eslint-config-prettier",
10+
],
11+
};

.eslintrc.js

Lines changed: 0 additions & 19 deletions
This file was deleted.
Lines changed: 15 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,12 @@ jobs:
2323
# Steps represent a sequence of tasks that will be executed as part of the job
2424
steps:
2525
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
26-
- uses: actions/checkout@v2
26+
- uses: actions/checkout@v3
2727

2828
- name: Setup Node.js environment
29-
uses: actions/setup-node@v2.1.2
29+
uses: actions/setup-node@v3
3030
with:
31-
node-version: '15.14.0'
31+
node-version: '16'
3232

3333
- name: install modules
3434
run: npm install
@@ -40,27 +40,21 @@ jobs:
4040
run: |
4141
git config --global user.email [email protected]
4242
git config --global user.name meow.zang
43-
mkdir result
44-
mv css/ result/css/
45-
mv dist/ result/dist/
46-
mv images/ result/images/
47-
mv js/ result/js/
48-
mv index.html result/
49-
mv manifest.json result/
50-
mv options.html result/
43+
mv assets/ dist/assets/
44+
mv js/ dist/js/
45+
mv manifest.json dist/
46+
mv popup.html dist/
5147
git rm -r --cached .
52-
mv result/* ../*
53-
rm -rf result
54-
touch .gitignore && echo >> "node_modules/*"
55-
git add .gitignore
56-
git add css/*
48+
mv dist/* ../*
49+
rm -rf dist
5750
git add js/*
58-
git add images/*
59-
git add dist/*
60-
git add *.json
61-
git add *.html
51+
git add assets/*
52+
git add manifest.json
53+
git add index.html
54+
git add popup.html
55+
git add icon.png
6256
git commit -m "auto build from github workflow"
63-
git remote set-url origin https://zmisgod:${{secrets.ACCESS_TOKEN}}@github.com/zhimin-dev/chrome-extension.git
57+
git remote set-url origin https://zmisgod:${{secrets.ACCESS_TOKEN}}@github.com/zhimin-dev/iptv-checker.git
6458
git remote -v
6559
git checkout -b production
6660
git push origin HEAD:production --force

.gitignore

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,28 @@
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
pnpm-debug.log*
8+
lerna-debug.log*
9+
10+
node_modules
111
.DS_Store
2-
node_modules/
3-
npm-debug.log
4-
yarn-error.log
12+
dist
13+
dist-ssr
14+
*.local
15+
16+
/cypress/videos/
17+
/cypress/screenshots/
518

619
# Editor directories and files
20+
.vscode
21+
!.vscode/extensions.json
722
.idea
823
*.suo
924
*.ntvs*
1025
*.njsproj
1126
*.sln
27+
*.sw?
28+
dist

README.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,6 @@
66
- it has some useful functions you will use it frequently
77
- you can add your custom script to some websites
88

9-
## environment
10-
11-
This project need node <= `15.14.0`, we recommend you use `15.14.0` to develop
12-
139
## Add your custom script
1410

1511
1. find `src/script/content/`folder

css/fonts/element-icons.ttf

-54.6 KB
Binary file not shown.

css/fonts/element-icons.woff

-27.5 KB
Binary file not shown.

css/index.css

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)