Skip to content

Commit f3d99da

Browse files
committed
migrate from webextension-toolbox to wxt
1 parent 66b54df commit f3d99da

27 files changed

Lines changed: 5494 additions & 5342 deletions

.github/workflows/push.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ jobs:
1414
steps:
1515
- uses: actions/checkout@master
1616
- run: npm ci
17-
- run: npm run build chrome
17+
- run: npm run build:chrome
1818
build-firefox:
1919
runs-on: ubuntu-latest
2020
steps:
2121
- uses: actions/checkout@master
2222
- run: npm ci
23-
- run: npm run build firefox
23+
- run: npm run build:firefox

.gitignore

Lines changed: 23 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,26 @@
1-
2-
.DS_Store
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*
39

410
node_modules
5-
npm-debug.log
11+
.output
12+
stats.html
13+
stats-*.json
14+
.wxt
15+
web-ext.config.ts
616

7-
dist/
8-
packages/
9-
10-
.envrc
17+
# Editor directories and files
18+
.vscode/*
19+
!.vscode/extensions.json
20+
.idea
21+
.DS_Store
22+
*.suo
23+
*.ntvs*
24+
*.njsproj
25+
*.sln
26+
*.sw?

app/fonts/.gitkeep

Whitespace-only changes.

app/manifest.json

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

app/scripts/background.ts

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

app/styles/contentscript.scss

Whitespace-only changes.

docs/dev.md

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -11,22 +11,6 @@ $ npm install
1111
## Usage
1212

1313
```bash
14-
$ npm run dev --help
15-
$ npm run dev chrome
16-
$ npm run dev firefox
17-
$ npm run dev opera
18-
$ npm run dev edge
19-
```
20-
21-
## Globals
22-
23-
The build tool also defines a variable named `process.env.NODE_ENV` in your scripts. It will be set to `development` unless you use the `--production` option.
24-
25-
26-
**Example:** `./app/background.ts`
27-
28-
```typescript
29-
if(process.env.NODE_ENV === 'development'){
30-
console.log('We are in development mode!');
31-
}
14+
$ npm run dev:chrome
15+
$ npm run dev:firefox
3216
```

docs/maintainer.md

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,11 @@
11

22
## pack
33

4-
Zips your `dist` directory and saves it in the `packages` directory.
4+
Zips your `dist` directory and saves it in the `.output` directory.
55

66
```bash
7-
$ npm run build --help
8-
$ npm run build chrome
9-
$ npm run build firefox
10-
$ npm run build opera
11-
$ npm run build edge
7+
$ npm run zip:chrome
8+
$ npm run zip:firefox
129
```
1310

1411
## Version

0 commit comments

Comments
 (0)