From 61ad0cd2d4c6fdb726c0ea3cd54db7709c8d9509 Mon Sep 17 00:00:00 2001 From: Federico Brigante Date: Tue, 30 Nov 2021 15:42:47 +0700 Subject: [PATCH] Add `awesome-lint` (#71) --- .github/workflows/ci.yml | 26 ++++++-------------------- .github/workflows/link-checker.yml | 26 ++++++++++++++++++++++++++ readme.md | 14 +++++--------- 3 files changed, 37 insertions(+), 29 deletions(-) create mode 100644 .github/workflows/link-checker.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 84d4853..fe1ed24 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,26 +1,12 @@ -name: Links - +name: CI on: - repository_dispatch: - workflow_dispatch: - schedule: - - cron: "00 1 10 * *" - + pull_request: + branches: [main] jobs: - linkChecker: + Awesome_Lint: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - - - name: Link Checker - uses: lycheeverse/lychee-action@v1.1.1 with: - args: --verbose --no-progress **/*.md **/*.html - env: - GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} - - - name: Create Issue From File - uses: peter-evans/create-issue-from-file@v3 - with: - title: Link Checker Report - content-filepath: ./lychee/out.md + fetch-depth: 0 + - run: npx awesome-lint diff --git a/.github/workflows/link-checker.yml b/.github/workflows/link-checker.yml new file mode 100644 index 0000000..84d4853 --- /dev/null +++ b/.github/workflows/link-checker.yml @@ -0,0 +1,26 @@ +name: Links + +on: + repository_dispatch: + workflow_dispatch: + schedule: + - cron: "00 1 10 * *" + +jobs: + linkChecker: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + + - name: Link Checker + uses: lycheeverse/lychee-action@v1.1.1 + with: + args: --verbose --no-progress **/*.md **/*.html + env: + GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} + + - name: Create Issue From File + uses: peter-evans/create-issue-from-file@v3 + with: + title: Link Checker Report + content-filepath: ./lychee/out.md diff --git a/readme.md b/readme.md index bb50aea..3517a5b 100644 --- a/readme.md +++ b/readme.md @@ -1,8 +1,10 @@ # Awesome WebExtensions [![Awesome](https://awesome.re/badge.svg)](https://awesome.re) -> A curated list of awesome resources for [WebExtensions](https://developer.mozilla.org/en-US/Add-ons/WebExtensions) development. +> A curated list of awesome resources for WebExtensions development. -WebExtensions are a cross-browser system for developing browser add-ons. To a large extent the system is compatible with the [extension API](https://developer.chrome.com/docs/extensions/reference) supported by Google Chrome and Opera. Extensions written for these browsers will in most cases run in Firefox or Microsoft Edge with just [a few changes](https://developer.mozilla.org/en-US/Add-ons/WebExtensions/Porting_a_Google_Chrome_extension). +WebExtensions are a cross-browser system for developing browser add-ons. To a large extent the system is compatible with the extension API supported by Google Chrome. Extensions written for this browser will in most cases run in Firefox with just [a few changes](https://developer.mozilla.org/en-US/Add-ons/WebExtensions/Porting_a_Google_Chrome_extension). + +Follow [@fregante](https://fregante.com) for more webext-related news. ## Contents @@ -60,7 +62,7 @@ Apps that help you manage your extensions. - [wext-manifest-loader](https://github.com/abhijithvijayan/wext-manifest-loader) - Webpack loader that lets you specify `manifest.json` properties to appear only in specific browsers. - [webextension-manifest-loader](https://github.com/jsmnbom/webextension-manifest-loader) - Webpack loader that loads browser tailored manifest.json. It also imports all importable properties, allowing you to have 'manifest.json' as your only webpack entry point. - [webpack-extension-reloader](https://github.com/rubenspgcavalcante/webpack-extension-reloader) - A Webpack plugin to automatically reload browser extensions during development. -- [webpack-target-webextension](https://github.com/awesome-webextension/webpack-target-webextension) - Adds code-splitting support to WebExtensions build with Webpack +- [webpack-target-webextension](https://github.com/awesome-webextension/webpack-target-webextension) - Adds code-splitting support to WebExtensions build with Webpack. ## Testing @@ -86,9 +88,3 @@ These are simple and modern WebExtensions repositories that could help you figur - [npmhub](https://github.com/npmhub/npmhub) - [Hide Files on GitHub](https://github.com/sindresorhus/hide-files-on-github) - [mdn/webextension-examples](https://github.com/mdn/webextensions-examples) - Various example extensions curated for the MDN documentation. - -## License - -[![CC0](https://mirrors.creativecommons.org/presskit/buttons/88x31/svg/cc-zero.svg)](https://creativecommons.org/publicdomain/zero/1.0/) - -To the extent possible under law, [Federico Brigante](https://fregante.com) has waived all copyright and related or neighboring rights to this work.