Skip to content

Commit

Permalink
feat: migrate to Vuetify
Browse files Browse the repository at this point in the history
BREAKING CHANGE: browser versions older than Chrome 92, Edge 92,
Firefox 91, and Opera 78 are no longer supported
  • Loading branch information
dessant committed Dec 14, 2022
1 parent 64b4ce7 commit c921f65
Show file tree
Hide file tree
Showing 76 changed files with 45,508 additions and 13,962 deletions.
14 changes: 14 additions & 0 deletions .browserslistrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
[chrome]
Chrome >= 92
Edge >= 92
Opera >= 78

[edge]
Edge >= 92

[firefox]
Firefox >= 91
FirefoxAndroid >= 91

[opera]
Opera >= 78
9 changes: 0 additions & 9 deletions .eslintrc.json

This file was deleted.

82 changes: 23 additions & 59 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,99 +5,63 @@ on: push
jobs:
build:
name: Build
runs-on: ubuntu-18.04
runs-on: ubuntu-22.04
permissions:
contents: read
steps:
- name: Clone repository
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
persist-credentials: 'false'
- name: Get Node.js version
id: nvm
run: echo ::set-output name=NODE_VERSION::$(cat .nvmrc)
- name: Setup Node.js
uses: actions/setup-node@v1
uses: actions/setup-node@v3
with:
node-version: ${{ steps.nvm.outputs.NODE_VERSION }}
node-version-file: '.nvmrc'
cache: 'npm'
- name: Install dependencies
run: yarn
run: npm install --legacy-peer-deps
- name: Build artifacts
run: yarn build:prod:zip:all
run: |
npm run build:prod:zip:chrome
npm run build:prod:zip:edge
npm run build:prod:zip:firefox
npm run build:prod:zip:opera
env:
BUSTER_SECRETS: ${{ secrets.BUSTER_SECRETS }}
- name: Hash artifacts
run: sha256sum artifacts/*/*
if: startsWith(github.ref, 'refs/tags/v')
- name: Upload artifacts
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
if: startsWith(github.ref, 'refs/tags/v')
with:
name: artifacts
path: artifacts/
retention-days: 1
release:
name: Release on GitHub
runs-on: ubuntu-18.04
runs-on: ubuntu-22.04
needs: [build]
if: startsWith(github.ref, 'refs/tags/v')
permissions:
contents: write
steps:
- name: Get release information
id: release_info
run: |
echo ::set-output name=TAG::${GITHUB_REF/refs\/tags\//}
echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\/v/}
- name: Download artifacts
uses: actions/download-artifact@v2
uses: actions/download-artifact@v3
with:
name: artifacts
path: artifacts/
- name: Hash artifacts
run: sha256sum artifacts/*/*
- name: Create GitHub release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ github.token }}
uses: softprops/action-gh-release@v1
with:
tag_name: ${{ steps.release_info.outputs.TAG }}
release_name: ${{ steps.release_info.outputs.TAG }}
tag_name: ${{ github.ref_name }}
name: ${{ github.ref_name }}
body: |
Download and install the extension from the [extension store](https://github.com/dessant/buster#readme) of your browser.
Learn more about this release from the [changelog](https://github.com/dessant/buster/blob/master/CHANGELOG.md#changelog).
files: artifacts/*/*
fail_on_unmatched_files: true
draft: true
- name: Upload GitHub release assets
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ github.token }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: artifacts/chrome/buster_captcha_solver_for_humans-${{ steps.release_info.outputs.VERSION }}-chrome.zip
asset_name: buster_captcha_solver_for_humans-${{ steps.release_info.outputs.VERSION }}-chrome.zip
asset_content_type: application/octet-stream
- name: Upload GitHub release assets
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ github.token }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: artifacts/edge/buster_captcha_solver_for_humans-${{ steps.release_info.outputs.VERSION }}-edge.zip
asset_name: buster_captcha_solver_for_humans-${{ steps.release_info.outputs.VERSION }}-edge.zip
asset_content_type: application/octet-stream
- name: Upload GitHub release assets
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ github.token }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: artifacts/firefox/buster_captcha_solver_for_humans-${{ steps.release_info.outputs.VERSION }}-firefox.zip
asset_name: buster_captcha_solver_for_humans-${{ steps.release_info.outputs.VERSION }}-firefox.zip
asset_content_type: application/octet-stream
- name: Upload GitHub release assets
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ github.token }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: artifacts/opera/buster_captcha_solver_for_humans-${{ steps.release_info.outputs.VERSION }}-opera.zip
asset_name: buster_captcha_solver_for_humans-${{ steps.release_info.outputs.VERSION }}-opera.zip
asset_content_type: application/octet-stream
20 changes: 10 additions & 10 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
.assets/
secrets.json
/.assets/
/secrets.json

node_modules/
artifacts/
dist/
/artifacts/
/dist/

web-ext-config.js
/.vscode

npm-debug.log
yarn-debug.log
yarn-error.log
.yarn-integrity
/web-ext-config.js

report.json
/npm-debug.log

/report.json
/report.html
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
12.18.4
18.12.1
2 changes: 1 addition & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
package.json
.travis.yml
*.md
34 changes: 34 additions & 0 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
const path = require('node:path');

const corejsVersion = require(path.join(
path.dirname(require.resolve('core-js')),
'package.json'
)).version;

module.exports = function (api) {
const presets = [
[
'@babel/env',
{
modules: false,
bugfixes: true,
useBuiltIns: 'usage',
corejs: {version: corejsVersion}
}
]
];

const plugins = [];

const ignore = [
new RegExp(`node_modules\\${path.sep}(?!(vueton|wesa)\\${path.sep}).*`)
];

const parserOpts = {plugins: ['importAssertions']};

if (api.env('production')) {
plugins.push('lodash');
}

return {presets, plugins, ignore, parserOpts};
};
Loading

0 comments on commit c921f65

Please sign in to comment.