Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Dependencies and Workflows #53

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions .github/workflows/automerge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,16 @@ on:
types:
- opened

permissions:
contents: write

jobs:
automerge:
runs-on: ubuntu-latest
steps:
- id: automerge
name: automerge
uses: "pascalgn/[email protected]"
permissions:
contents: write
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
MERGE_FILTER_AUTHOR: dependabot[bot]
Expand Down
40 changes: 26 additions & 14 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,40 +19,52 @@ jobs:

- name: Use Node.js
uses: actions/setup-node@v4

- name: Run with Node.js + yarn pnp
with:
node-version-file: package.json

- name: Setup yarn pnp
run: |
corepack enable
yarn set version stable
yarn config set enableImmutableInstalls false
yarn config set enableScripts false
yarn config set nodeLinker pnp

- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "dir=$(yarn config get cacheFolder)" >> $GITHUB_OUTPUT

- name: Cache yarn cache directory
uses: actions/cache@v4
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: ${{ runner.os }}-yarn-

- name: Install dependencies
run: yarn --immutable

- name: Lint
run: yarn lint

- name: Build
run: yarn build

- name: Update major version number
if: contains(github.event.head_commit.message, '#major')
run: npm version major --no-git-tag-version
if: ${{ github.ref == 'refs/heads/master' && contains(github.event.head_commit.message, '#major') }}
run: yarn version major -i

- name: Update minor version number
if: contains(github.event.head_commit.message, '#minor')
run: npm version minor --no-git-tag-version
if: ${{ github.ref == 'refs/heads/master' && contains(github.event.head_commit.message, '#minor') }}
run: yarn version minor -i

- name: Update patch version number
if: "!contains(github.event.head_commit.message, '#major') && !contains(github.event.head_commit.message, '#minor')"
run: npm version patch --no-git-tag-version
if: ${{ github.ref == 'refs/heads/master' && !contains(github.event.head_commit.message, '#major') && !contains(github.event.head_commit.message, '#minor') }}
run: yarn version patch -i

- name: Update manifest.json version
if: github.ref == 'refs/heads/master'
run: |
# Update manifest.json version
echo "VERSION=$(npm pkg get version | tr -d '"')" >> $GITHUB_ENV
sed -i "s/\"version\": \".*\"/\"version\": \"$(npm pkg get version | tr -d '"')\"/g" public/manifest.json
sed -i "s/\"version\": \".*\"/\"version\": \"$(npm pkg get version | tr -d '"')\"/g" dist/manifest.json
sed -i "s/\"version\": \".*\"/\"version\": \"${{ env.VERSION }}\"/g" public/manifest.json
sed -i "s/\"version\": \".*\"/\"version\": \"${{ env.VERSION }}\"/g" dist/manifest.json

- name: Commit changes
if: github.ref == 'refs/heads/master'
Expand Down
19 changes: 17 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ Alternatively, download the `extension.zip` file from the [latest release](https

This extension is intended for legitimate and ethical use only. Please use this extension responsibly. The developers and owners are not responsible for any misuse or abuse of the extension.

## Issues

If you encounter any problems or have any questions, please check the [Issues](https://github.com/marcosvrs/WTF/issues) section on GitHub. You can search for existing issues to see if your problem has already been reported and, if not, open a new issue.

## Building from Source

If you prefer to build the extension from source code, follow these steps:
Expand Down Expand Up @@ -67,20 +71,31 @@ This project uses the following packages:
- [@playwright/test](https://github.com/microsoft/playwright) (Apache License 2.0)
- [@tsconfig/recommended](https://github.com/tsconfig/bases) (MIT License)
- [@types](https://github.com/DefinitelyTyped/DefinitelyTyped) (MIT License)
- [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint) (MIT License)
- [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint) (BSD 2-Clause License)
- [@wppconnect/wa-js](https://github.com/wppconnect-team/wa-js) (Apache License 2.0)
- [autoprefixer](https://github.com/postcss/autoprefixer) (MIT License)
- [copy-webpack-plugin](https://github.com/webpack-contrib/copy-webpack-plugin) (MIT License)
- [css-loader](https://github.com/webpack-contrib/css-loader) (MIT License)
- [cssnano](https://github.com/cssnano/cssnano) (MIT License)
- [eslint-config-prettier](https://github.com/prettier/eslint-config-prettier) (MIT License)
- [eslint-import-resolver-typescript](https://github.com/import-js/eslint-plugin-import) (MIT License)
- [eslint-plugin-import](https://github.com/import-js/eslint-plugin-import) (MIT License)
- [eslint-plugin-prettier](https://github.com/prettier/eslint-plugin-prettier) (MIT License)
- [eslint-plugin-react](https://github.com/yannickcr/eslint-plugin-react) (MIT License)
- [eslint](https://github.com/eslint/eslint) (MIT License)
- [husky](https://github.com/typicode/husky) (MIT License)
- [lint-staged](https://github.com/okonet/lint-staged) (MIT License)
- [postcss-loader](https://github.com/webpack-contrib/postcss-loader) (MIT License)
- [postcss](https://github.com/postcss/postcss) (MIT License)
- [prettier](https://github.com/prettier/prettier) (MIT License)
- [qrcode-terminal](https://github.com/gtanner/qrcode-terminal) (Apache License 2.0)
- [react-dom](https://github.com/facebook/react) (MIT License)
- [react](https://github.com/facebook/react) (MIT License)
- [rimraf](https://github.com/isaacs/rimraf) (ISC License)
- [speed-measure-webpack-plugin](https://github.com/stephencookdev/speed-measure-webpack-plugin) (MIT License)
- [style-loader](https://github.com/webpack-contrib/style-loader) (MIT License)
- [tailwindcss](https://github.com/tailwindlabs/tailwindcss) (MIT License)
- [ts-loader](https://github.com/TypeStrong/ts-loader) (MIT License)
- [typescript](https://github.com/microsoft/TypeScript) (Apache License 2.0)
- [webpack-cli](https://github.com/webpack/webpack-cli) (MIT License)
- [webpack-merge](https://github.com/survivejs/webpack-merge) (MIT License)
- [webpack](https://github.com/webpack/webpack) (MIT License)
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"watch": "webpack --mode development --watch --progress",
"dev": "tsc && webpack --mode development",
"build": "tsc && webpack",
"lint": "eslint .",
"lint": "eslint . --max-warnings=0",
"lint:fix": "eslint . --fix && yarn format",
"format": "prettier --write .",
"clean": "rimraf dist",
Expand Down Expand Up @@ -52,13 +52,13 @@
"lint-staged": "^15.2.7",
"postcss": "8.4.38",
"postcss-loader": "^8.1.1",
"prettier": "^3.2.5",
"prettier": "^3.3.2",
"qrcode-terminal": "^0.12.0",
"rimraf": "^5.0.7",
"style-loader": "^4.0.0",
"tailwindcss": "^3.4.3",
"tailwindcss": "^3.4.4",
"ts-loader": "^9.5.1",
"typescript": "^5.4.5",
"typescript": "^5.5.2",
"webpack": "^5.92.1",
"webpack-cli": "^5.1.4"
},
Expand Down
20 changes: 10 additions & 10 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1927,9 +1927,9 @@ __metadata:
linkType: hard

"es-module-lexer@npm:^1.2.1":
version: 1.5.3
resolution: "es-module-lexer@npm:1.5.3"
checksum: 10c0/0f50b655490d1048432eac6eec94d99d3933119666ae82be578c3db1ea4b2c594118a336f6b7a3c4e2815355dcc9a469d880acef1c45aa656a5aae8c8ae8e5f6
version: 1.5.4
resolution: "es-module-lexer@npm:1.5.4"
checksum: 10c0/300a469488c2f22081df1e4c8398c78db92358496e639b0df7f89ac6455462aaf5d8893939087c1a1cbcbf20eed4610c70e0bcb8f3e4b0d80a5d2611c539408c
languageName: node
linkType: hard

Expand Down Expand Up @@ -4655,7 +4655,7 @@ __metadata:
languageName: node
linkType: hard

"prettier@npm:^3.2.5":
"prettier@npm:^3.3.2":
version: 3.3.2
resolution: "prettier@npm:3.3.2"
bin:
Expand Down Expand Up @@ -5479,7 +5479,7 @@ __metadata:
languageName: node
linkType: hard

"tailwindcss@npm:^3.4.3":
"tailwindcss@npm:^3.4.4":
version: 3.4.4
resolution: "tailwindcss@npm:3.4.4"
dependencies:
Expand Down Expand Up @@ -5722,7 +5722,7 @@ __metadata:
languageName: node
linkType: hard

"typescript@npm:^5.4.5":
"typescript@npm:^5.5.2":
version: 5.5.2
resolution: "typescript@npm:5.5.2"
bin:
Expand All @@ -5732,7 +5732,7 @@ __metadata:
languageName: node
linkType: hard

"typescript@patch:typescript@npm%3A^5.4.5#optional!builtin<compat/typescript>":
"typescript@patch:typescript@npm%3A^5.5.2#optional!builtin<compat/typescript>":
version: 5.5.2
resolution: "typescript@patch:typescript@npm%3A5.5.2#optional!builtin<compat/typescript>::version=5.5.2&hash=379a07"
bin:
Expand Down Expand Up @@ -6073,15 +6073,15 @@ __metadata:
lint-staged: "npm:^15.2.7"
postcss: "npm:8.4.38"
postcss-loader: "npm:^8.1.1"
prettier: "npm:^3.2.5"
prettier: "npm:^3.3.2"
qrcode-terminal: "npm:^0.12.0"
react: "npm:^18.3.1"
react-dom: "npm:^18.3.1"
rimraf: "npm:^5.0.7"
style-loader: "npm:^4.0.0"
tailwindcss: "npm:^3.4.3"
tailwindcss: "npm:^3.4.4"
ts-loader: "npm:^9.5.1"
typescript: "npm:^5.4.5"
typescript: "npm:^5.5.2"
webpack: "npm:^5.92.1"
webpack-cli: "npm:^5.1.4"
languageName: unknown
Expand Down
Loading