-
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #30 from alovajs/feat/split-extension-package
Feat/split extension package
- Loading branch information
Showing
177 changed files
with
44,633 additions
and
3,914 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,22 @@ | ||
{ | ||
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json", | ||
"changelog": ["@changesets/changelog-github", { "repo": "alovajs/devtools" }], | ||
"commit": false, | ||
"fixed": [], | ||
"linked": [], | ||
"ignore": [ | ||
"api-v3-js-commonjs-test", | ||
"api-js-commonjs-test", | ||
"api-v3-js-test", | ||
"api-v3-ts-test", | ||
"api-js-test", | ||
"api-ts-test", | ||
"api-common" | ||
], | ||
"access": "public", | ||
"baseBranch": "main", | ||
"updateInternalDependencies": "minor", | ||
"___experimentalUnsafeOptions_WILL_CHANGE_IN_PATCH": { | ||
"onlyUpdatePeerDependentsWhenOutOfRange": true | ||
} | ||
} |
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,5 @@ | ||
--- | ||
'alova-vscode-extension': major | ||
--- | ||
|
||
the first GA version |
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,5 @@ | ||
--- | ||
'@alova/wormhole': patch | ||
--- | ||
|
||
initial version |
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,2 @@ | ||
service_name: github-action | ||
repo_token: k4mCwLORlEDAb7wQcYXgMbvAwx2CadBOE |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,3 @@ | ||
github: alovajs | ||
open_collective: alova | ||
custom: https://afdian.net/a/huzhen555 |
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 @@ | ||
# See https://github.com/actions/labeler | ||
|
||
'🚨 action': | ||
- .github/workflows/** | ||
|
||
'wormhole': | ||
- packages/wormhole/** | ||
|
||
'vscode': | ||
- packages/vscode-extension/** |
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,15 @@ | ||
# Automatically labels PRs based on the configuration file | ||
# you are probably looking for 👉 `.github/labeler.yml` | ||
name: Label PRs | ||
|
||
on: | ||
- pull_request_target | ||
|
||
jobs: | ||
triage: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/labeler@v4 | ||
with: | ||
repo-token: '${{ secrets.GITHUB_TOKEN }}' | ||
sync-labels: true |
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,43 @@ | ||
name: pull_request check | ||
|
||
# trigger condition: pull_request to any branch | ||
on: | ||
pull_request: | ||
paths-ignore: | ||
- '.vscode/**' | ||
- '**/*.md' | ||
- '.github/**' | ||
- '.changeset/**' | ||
|
||
jobs: | ||
quality: | ||
runs-on: ubuntu-latest | ||
if: ${{ !contains(github.event.pull_request.head.ref, 'changeset-release') }} | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
persist-credentials: false | ||
|
||
# install pnpm version by `packageManager` in package.json | ||
- name: Setup PNPM | ||
uses: pnpm/[email protected] | ||
|
||
- name: Setup Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20 | ||
registry-url: 'https://registry.npmjs.org' | ||
cache: 'pnpm' | ||
|
||
- name: Install deps | ||
run: pnpm install | ||
|
||
- name: Lint check | ||
run: pnpm run lint | ||
|
||
- name: Format | ||
run: pnpm run format | ||
|
||
- name: Unit tests | ||
run: pnpm run test |
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,76 @@ | ||
name: Release | ||
|
||
# trigger condition: pull_request to any branch | ||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
quality: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
persist-credentials: false | ||
|
||
# install pnpm version by `packageManager` in package.json | ||
- name: Setup PNPM | ||
uses: pnpm/[email protected] | ||
|
||
- name: Setup Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20 | ||
registry-url: 'https://registry.npmjs.org' | ||
cache: 'pnpm' | ||
|
||
- name: Install deps | ||
run: pnpm install | ||
|
||
- name: Lint check | ||
run: pnpm run lint | ||
|
||
- name: Format | ||
run: pnpm run format | ||
|
||
release: | ||
runs-on: ubuntu-latest | ||
needs: [quality] | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
persist-credentials: false | ||
|
||
# install pnpm version by `packageManager` in package.json | ||
- name: Setup PNPM | ||
uses: pnpm/[email protected] | ||
|
||
- name: Setup Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20 | ||
registry-url: 'https://registry.npmjs.org' | ||
cache: 'pnpm' | ||
|
||
- name: Install deps | ||
run: pnpm install | ||
|
||
- name: Create Release Pull Request or Publish | ||
id: changesets | ||
uses: changesets/[email protected] | ||
with: | ||
# Note: pnpm install after versioning is necessary to refresh lockfile | ||
version: pnpm run changeset:version | ||
publish: pnpm run release | ||
commit: 'ci: release' | ||
title: 'ci: release' | ||
env: | ||
# Needs access to push to main | ||
GITHUB_TOKEN: ${{ secrets.ALOVA_GITHUB_TOKEN }} | ||
# Needs access to publish to npm | ||
NPM_TOKEN: ${{ secrets.NPM_ALOVA_PUBLISH_TOKEN }} | ||
# publish vscode extension to marketplace | ||
VSCE_PAT: ${{ secrets.VSCODE_EXTENSION_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
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 @@ | ||
#!/usr/bin/env sh | ||
. "$(dirname -- "$0")/_/husky.sh" | ||
|
||
npx --no-install commitlint --edit "$1" |
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,2 @@ | ||
#!/usr/bin/env sh | ||
. "$(dirname -- "$0")/_/husky.sh" | ||
|
||
# Ensure files are linted before commit | ||
pnpm lint-staged |
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 +0,0 @@ | ||
enable-pre-post-scripts = true | ||
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
Oops, something went wrong.