-
-
Notifications
You must be signed in to change notification settings - Fork 256
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/main' into analytics-module
- Loading branch information
Showing
85 changed files
with
3,994 additions
and
2,790 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
extends: | ||
- '@commitlint/config-conventional' | ||
rules: | ||
subject-case: | ||
- 0 | ||
- always | ||
- - sentence-case | ||
- start-case | ||
- pascal-case | ||
- upper-case |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,13 @@ | ||
# See https://git-scm.com/docs/gitattributes#_pattern_format for more about `.gitattributes`. | ||
|
||
# Normalize EOL for all files that Git considers text files | ||
* text=auto eol=lf | ||
|
||
# Mark lock files as generated to avoid diffing | ||
pnpm-lock.yaml linguist-generated | ||
package-lock.json linguist-generated | ||
bun.lockb linguist-generated | ||
yarn.lock linguist-generated | ||
|
||
# Exclude templates from language statistics | ||
templates/**/* linguist-vendored |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# Set default | ||
* @aklinker1 @Timeraa | ||
|
||
# Secure Directories | ||
/.github/ @aklinker1 | ||
|
||
# Creator of specific wxt modules | ||
/packages/auto-icons/ @Timeraa | ||
/packages/unocss/ @Timeraa |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,3 @@ | ||
# These are supported funding model platforms | ||
# https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/displaying-a-sponsor-button-in-your-repository#about-funding-files | ||
|
||
github: [wxt-dev] # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2] | ||
patreon: # Replace with a single Patreon username | ||
open_collective: # Replace with a single Open Collective username | ||
ko_fi: # Replace with a single Ko-fi username | ||
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel | ||
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry | ||
liberapay: # Replace with a single Liberapay username | ||
issuehunt: # Replace with a single IssueHunt username | ||
lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry | ||
polar: # Replace with a single Polar username | ||
buy_me_a_coffee: # Replace with a single Buy Me a Coffee username | ||
thanks_dev: # Replace with a single thanks.dev username | ||
custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2'] | ||
github: wxt-dev |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,31 @@ | ||
name: Basic Setup | ||
description: Install PNPM, Node, and dependencies | ||
|
||
inputs: | ||
install: | ||
default: 'true' | ||
type: boolean | ||
description: Whether or not to run 'pnpm install' | ||
|
||
installArgs: | ||
default: '' | ||
type: string | ||
description: Additional args to append to "pnpm install" | ||
|
||
runs: | ||
using: composite | ||
|
||
steps: | ||
- name: Setup PNPM | ||
- name: 🛠️ Setup PNPM | ||
uses: pnpm/action-setup@v4 | ||
- name: Setup NodeJS | ||
|
||
- name: 🛠️ Setup NodeJS | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 18 | ||
cache: pnpm | ||
- name: Install Dependencies | ||
|
||
- name: 📦 Install Dependencies | ||
if: ${{ inputs.install == 'true' }} | ||
shell: bash | ||
run: pnpm install ${{ inputs.installArgs }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
### Overview | ||
|
||
<!-- Describe your changes and why you made them --> | ||
|
||
### Manual Testing | ||
|
||
<!-- Describe how to test your changes to make sure the PR works as intended --> | ||
|
||
### Related Issue | ||
|
||
<!-- If this PR is related to an issue, please link it here --> | ||
|
||
This PR closes #<issue_number> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: 🎉 PR closed | ||
|
||
on: | ||
pull_request_target: | ||
types: | ||
- closed | ||
|
||
permissions: | ||
contents: read | ||
pull-requests: write | ||
|
||
jobs: | ||
thank-you: | ||
runs-on: ubuntu-latest | ||
if: github.event.pull_request.merged == true | ||
|
||
steps: | ||
- name: Post Thank You Comment | ||
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1 | ||
env: | ||
comment: Thanks for helping make WXT better! | ||
with: | ||
script: | | ||
github.rest.issues.createComment({ | ||
issue_number: context.issue.number, | ||
owner: context.repo.owner, | ||
repo: context.repo.repo, | ||
body: process.env.comment | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
name: 🛡️ Check PR Title | ||
|
||
on: | ||
pull_request: | ||
types: [opened, edited] | ||
|
||
jobs: | ||
lint-pr-title: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | ||
with: | ||
# Only fetch the config file from the repository | ||
sparse-checkout-cone-mode: false | ||
sparse-checkout: .commitlintrc.yml | ||
|
||
- name: Install dependencies | ||
run: npm install --global @commitlint/config-conventional commitlint | ||
|
||
- name: Check PR title with commitlint | ||
env: | ||
PR_TITLE: ${{ github.event.pull_request.title }} | ||
HELP_URL: https://github.com/wxt-dev/wxt/blob/main/CONTRIBUTING.md#conventional-pr-titles | ||
run: echo "$PR_TITLE" | npx commitlint --help-url $HELP_URL |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: Release | ||
name: 🚀 Release | ||
on: | ||
workflow_dispatch: | ||
inputs: | ||
|
@@ -18,38 +18,51 @@ on: | |
- unocss | ||
- wxt | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
validate: | ||
name: Validate | ||
uses: './.github/workflows/validate.yml' | ||
secrets: inherit | ||
|
||
publish: | ||
name: Publish | ||
runs-on: ubuntu-22.04 | ||
permissions: | ||
contents: write | ||
needs: | ||
- validate | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- uses: ./.github/actions/setup | ||
- name: Setup | ||
uses: ./.github/actions/setup | ||
|
||
- name: Configure Git | ||
run: | | ||
git config user.name 'github-actions[bot]' | ||
git config user.email 'github-actions[bot]@users.noreply.github.com' | ||
git config --global push.followTags true | ||
- name: Bump and Tag | ||
run: | | ||
git config user.email "[email protected]" | ||
git config user.name "GitHub Actions" | ||
pnpm tsx scripts/bump-package-version.ts ${{ inputs.package }} | ||
git push | ||
git push --tags | ||
- name: NPM | ||
- name: Publish to NPM | ||
working-directory: packages/${{ inputs.package }} | ||
run: | | ||
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_AUTH_TOKEN }}" > ~/.npmrc | ||
pnpm build | ||
pnpm publish | ||
working-directory: packages/${{ inputs.package }} | ||
- name: GitHub Release | ||
- name: Create GitHub release | ||
run: pnpm tsx scripts/create-github-release.ts ${{ inputs.package }} | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.